boa-constructor-users Mailing List for Boa Constructor - wxPython GUI Builder (Page 4)
Status: Beta
Brought to you by:
riaan
You can subscribe to this list here.
2000 |
Jan
|
Feb
(1) |
Mar
(18) |
Apr
(4) |
May
(17) |
Jun
(14) |
Jul
(18) |
Aug
(3) |
Sep
(30) |
Oct
(16) |
Nov
(11) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(19) |
Feb
(10) |
Mar
(4) |
Apr
(6) |
May
(27) |
Jun
(37) |
Jul
(44) |
Aug
(44) |
Sep
(49) |
Oct
(4) |
Nov
(6) |
Dec
(12) |
2002 |
Jan
(27) |
Feb
(22) |
Mar
(48) |
Apr
(21) |
May
(20) |
Jun
(6) |
Jul
(33) |
Aug
(34) |
Sep
(9) |
Oct
(41) |
Nov
(14) |
Dec
(35) |
2003 |
Jan
(75) |
Feb
(75) |
Mar
(59) |
Apr
(22) |
May
(18) |
Jun
(36) |
Jul
(50) |
Aug
(106) |
Sep
(71) |
Oct
(63) |
Nov
(81) |
Dec
(58) |
2004 |
Jan
(48) |
Feb
(42) |
Mar
(57) |
Apr
(64) |
May
(81) |
Jun
(30) |
Jul
(15) |
Aug
(39) |
Sep
(56) |
Oct
(61) |
Nov
(27) |
Dec
(20) |
2005 |
Jan
(74) |
Feb
(62) |
Mar
(237) |
Apr
(83) |
May
(138) |
Jun
(132) |
Jul
(61) |
Aug
(51) |
Sep
(17) |
Oct
(22) |
Nov
(59) |
Dec
(32) |
2006 |
Jan
(7) |
Feb
(7) |
Mar
(24) |
Apr
(15) |
May
(19) |
Jun
(46) |
Jul
(26) |
Aug
(51) |
Sep
(35) |
Oct
(90) |
Nov
(27) |
Dec
(23) |
2007 |
Jan
(22) |
Feb
(17) |
Mar
(14) |
Apr
(28) |
May
(38) |
Jun
(44) |
Jul
(34) |
Aug
(40) |
Sep
(29) |
Oct
(44) |
Nov
(16) |
Dec
(15) |
2008 |
Jan
(12) |
Feb
(37) |
Mar
(48) |
Apr
(35) |
May
(37) |
Jun
(32) |
Jul
(30) |
Aug
(28) |
Sep
(33) |
Oct
(19) |
Nov
(44) |
Dec
(45) |
2009 |
Jan
(30) |
Feb
(16) |
Mar
(48) |
Apr
(56) |
May
(100) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
|
Oct
(7) |
Nov
|
Dec
(3) |
2010 |
Jan
(8) |
Feb
(3) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(6) |
Nov
(22) |
Dec
|
2011 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Nathaniel H. <nat...@ma...> - 2009-10-23 17:11:07
|
I picked up Boa as a replacement for Delphi here, as we are slowly switching to Python over Fortran, C etc. Im rewriting my Tk GUI code with Boa and mostly it's going alright, however I am running into some issues with Boa's generated code and my own. I use a listbox to allow the user to choose which device they wish to use, in TK this was straightforward and easy, as it was entirely written by me, looks something like this: devices = daq.GetDeviceList() self.devicebox = Listbox(self) self.devicebox.grid(row=1, column=0, rowspan=2) for item in devices: self.devicebox.insert(END, item) Now, in Boa, I came up with mostly the same deal: def __init__(self, parent): devicesList = daq.GetDeviceList() self.deviceList = devicesList self.curdevice = False self._init_ctrls(parent) and then later in the __init__ctrls I changed the listbox's choices option to: self.deviceList self.allDevices = wx.ListBox(choices=self.deviceList, id=wxID_CHOOSEDEVICEALLDEVICES, name='allDevices', parent=self, pos=wx.Point(24, 32), size=wx.Size(132, 63), style=0) When it's run, the code run's fine, however when I try to use the constructor again I get an error about either daq not being attribute of the class, or deviceList not being an attribute of the class, so if I want to alter the window I have to change the listbox's options back to normal, fix use the constructor then switch the listbox back. I looked through the documentation and it mentioned so long as I had declared it in the __init__ I would be able to put it in the __init__ctrls, but getting these errors is kind of off putting. -- Nathaniel Christopher Hayes Third Year Mechanical Engineering Email: nat...@ma... |
From: Werner F. B. <wer...@fr...> - 2009-10-17 06:57:22
|
mindy erbiznez wrote: > Hi, > I'm writing an GUI app that uses multiple nested notebooks each with > several sizers (~100) and each has a unique name. > > When I attempt to use the frame designer the following exception is raised: > Boa Error > Exception: Collection body _init_coll_<mySizerName>_Items not in init, > body, fin form > > It's possible for me to alter the name of this function and make the > exception go away for this particular sizer, only to have the same > exception referencing a different sizer. > > I admit to adding (copy/paste) many of these sizers and related > functions by hand rather than using the frame designer, but they are all > added correctly (ie: the sizers work and the GUI looks right). > > Is there some sort of meta-file that I'd need to alter to make the frame > designer function again. No there is no meta-file, Boa uses the source code directly. I am pretty sure that when you did the copy/paste you misnamed something and Boa can not find it anymore, it might still be valid Python code and might still work but if the code does not comply with the Boa naming standard then it will not work (this is only true for the generated section of the code). Check the code again, if you can't find it attach it here and I will try and have a look. Werner |
From: mindy e. <min...@gm...> - 2009-10-16 18:12:29
|
Hi, I'm writing an GUI app that uses multiple nested notebooks each with several sizers (~100) and each has a unique name. When I attempt to use the frame designer the following exception is raised: Boa Error Exception: Collection body _init_coll_<mySizerName>_Items not in init, body, fin form It's possible for me to alter the name of this function and make the exception go away for this particular sizer, only to have the same exception referencing a different sizer. I admit to adding (copy/paste) many of these sizers and related functions by hand rather than using the frame designer, but they are all added correctly (ie: the sizers work and the GUI looks right). Is there some sort of meta-file that I'd need to alter to make the frame designer function again. Thanks |
From: Werner F. B. <wer...@fr...> - 2009-07-20 14:05:10
|
k0522 had a problem with this as I can't add attachments to the sourceforge list I post it here. Werner |
From: Werner F. B. <wer...@fr...> - 2009-06-27 13:24:29
|
Hi Grant, Grant Ito wrote: > Hi. > > Just finished going through the text editor tutorial that comes with Boa > Constructor and am very impressed with wxPython. > > I do have a question about accessing the Help files though. When I click > on any of the Help icons, I get a Python error message. The details are > as follows: You mean any of the three icons on the top toolbar? I just tried them on my testing copy of Boa running under Python 2.6.2 and they work for me. Are you using 2.6.2 or is in an earlier version of 2.6? What OS are you running this on? I tried on Windows Vista. If you just start with Python and/or wxPython you might at the moment be better of with Python 2.5.4 as 2.6 is still relatively new and lots of libraries etc do not yet work with 2.6 or work only using some work around. Werner |
From: Grant I. <gra...@sh...> - 2009-06-27 05:39:33
|
Hi. Just finished going through the text editor tutorial that comes with Boa Constructor and am very impressed with wxPython. I do have a question about accessing the Help files though. When I click on any of the Help icons, I get a Python error message. The details are as follows: 10:18:08 PM: Traceback (most recent call last): 10:18:08 PM: File "/usr/lib/python2.6/boa-constructor-0.6.1/Editor.py", line 1178, in OnHelp Help.showHelp('Editor.html') 10:18:08 PM: File "/usr/lib/python2.6/boa-constructor-0.6.1/Help.py", line 267, in showHelp getHelpController().Display(filename) 10:18:08 PM: File "/usr/lib/python2.6/boa-constructor-0.6.1/Help.py", line 323, in Display self.frameX = wxHelpFrameEx(self) 10:18:08 PM: File "/usr/lib/python2.6/boa-constructor-0.6.1/Help.py", line 425, in __init__ self.indexPanel.GetChildren()[:3] 10:18:08 PM: File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 8302, in __getitem__ return _core_.WindowList___getitem__(*args, **kwargs) 10:18:08 PM: TypeError: in method 'WindowList___getitem__', expected argument 2 of type 'size_t' The help pages came up regardless, but I'm wondering if there's something I'm missing due to the error. Any suggestions? ~Grant. |
From: Werner F. B. <wer...@fr...> - 2009-06-22 08:29:45
|
Hi Grant, Grant Ito wrote: > Hello. > > I'm brand new to Boa Constructor, though I've been programming in Python > for a while now. Boa Constructor was recommended to me and the screen > shots look great! > > That said, I'm having problems with the installation. I'm trying to > install it on my Linux box (OpenSuse 11.1, running KDE 4.1.3). I've > followed the instructions from > http://boa-constructor.sourceforge.net/Installation.html: .. > > Unfortunately, after closing them down and trying to run Boa.py again, I > got a traceback error: > >> Starting Boa Constructor v0.6.1 >> importing wxPython >> reading user preferences >> Traceback (most recent call last): >> File "Boa.py", line 271, in <module> >> import Preferences, Utils >> File "/usr/lib/python2.6/boa-constructor-0.6.1/Preferences.py", line >> 174, in <module> >> c = wx.FileConfig(localFilename=file, style= >> wx.CONFIG_USE_LOCAL_FILE) >> File >> "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py", >> line 3313, in __init__ >> _misc_.FileConfig_swiginit(self,_misc_.new_FileConfig(*args, >> **kwargs)) >> wx._core.PyNoAppError: The wx.App object must be created first! > > The same traceback message comes up when I try to run it from user mode. IIRC this has to do with a change in wxPython 2.8 and in my local copy of Boa I have this code in boa/Preferences.py: # wx.FileConfig files for confFile, version in (('stc-styles.rc.cfg', 1),): file = os.path.join(rcPath, confFile) confVersion = 0 if os.path.exists(file): # don't do the wx.FileConfig version verification/upgrade until Riaan can fix this pass #c = wx.FileConfig(localFilename=file, style= wx.CONFIG_USE_LOCAL_FILE) #confVersion = c.ReadInt('/resourceconfig/version') #if confVersion < version: # _backupAndCopyNewestConfig(confFile, file, '.cfg') else: shutil.copy2(os.path.join(pyPath, 'Config', confFile), file) Hope this helps Werner |
From: Grant I. <gra...@sh...> - 2009-06-22 07:09:33
|
Hello. I'm brand new to Boa Constructor, though I've been programming in Python for a while now. Boa Constructor was recommended to me and the screen shots look great! That said, I'm having problems with the installation. I'm trying to install it on my Linux box (OpenSuse 11.1, running KDE 4.1.3). I've followed the instructions from http://boa-constructor.sourceforge.net/Installation.html: > Linux > Generic > > 1. Install Python, if not already installed. Most distrubutions will > come with python pre-installed. > > 2. Install glibc, gtk+, if not already installed. Most distrubutions > will come with both of these libraries, or compiled versions can be > readily downloaded. A good resource for getting or building these > libraries can be found on the www.wxpython.org . > > 3. Download wxPython from www.wxpython.org . wxPython is typically > installed in the Python directory (/usr/lib/python2.2 for example). > See http://www.wxpython.org/download.php#build if a pre-built binary > is not available. > > 4. Download the latest Boa Constructor from > http://boa-constructor.sourceforge.net . Un-zip Boa into the Python > directory (/usr/lib/python2.2 for example). > > 5. The following command line should start Boa Constructor(This can be > added as a link to Application on your desktop): > > <path to python>/python <path to python directory>/boa/Boa.py > > EX: /usr/bin/python /usr/lib/python2.2/boa/Boa.py > > Boa is ready to run! Both glibc and gtk+ were already on my machine, as was wxPython though it was not installed in the directory suggested by the instructions; rather, yast installed it in /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/ I did install Boa Constructor in its own subdirectory of /usr/lib/python2.6, though. I ran Boa.py from root mode and it did a bunch of stuff including installing files in /root/.boa-constructor and then the program windows came up. Boa Constructor looks great! Unfortunately, after closing them down and trying to run Boa.py again, I got a traceback error: > Starting Boa Constructor v0.6.1 > importing wxPython > reading user preferences > Traceback (most recent call last): > File "Boa.py", line 271, in <module> > import Preferences, Utils > File "/usr/lib/python2.6/boa-constructor-0.6.1/Preferences.py", line > 174, in <module> > c = wx.FileConfig(localFilename=file, style= > wx.CONFIG_USE_LOCAL_FILE) > File > "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py", > line 3313, in __init__ > _misc_.FileConfig_swiginit(self,_misc_.new_FileConfig(*args, > **kwargs)) > wx._core.PyNoAppError: The wx.App object must be created first! The same traceback message comes up when I try to run it from user mode. Can anyone please suggest how I can get this working? Many thanks, Grant. |
From: Alec S. <boa...@li...> - 2009-05-06 16:52:22
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Health & Beauty</title> <script language="XML" xmlns:annuncio='http://www.annuncio.com'><annuncio:head/></script> </head> <body style="margin: 0px; background-color: #F46C94;" link="#7A3B96"> <script language="XML" xmlns:annuncio='http://www.annuncio.com'> <annuncio:body/></script> <div align="center" style="margin-top:10px; margin-bottom:10px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; color: #333333;">If you have trouble viewing this e-mail, please <a href="http://www.nusyucaw.cn/">click here</a>.</div> <table width="554" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td colspan="3"><img src="http://phobos.doctorspreferred.com/images/whan/lark2_topimage.jpg" width="554" height="370" /></td> </tr> <tr> <td width="36" background="http://phobos.doctorspreferred.com/images/whan/email2_leftspacer.gif" bgcolor="#F7E6EB"><img src="http://phobos.doctorspreferred.com/images/whan/email2_leftspacer.gif" width="36" height="1" /></td> <td width="472" bgcolor="#F7E6EB"><p align="center"><font color="#EC0E8C" face="Georgia, Times New Roman, Times, serif" size="8"><b><a href="http://www.nusyucaw.cn/">Everyone</a><br /> <a href="http://www.nusyucaw.cn/">Will Want</a> <br /> <font size="6"><a href="http://www.nusyucaw.cn/">Your New Secret</a></font></a></b></font></p> <p align="center"><a href="http://www.nusyucaw.cn/"> <img alt="" src="http://www.nusyucaw.cn/10.gif" style="border-width: 0px" width="470" height="320"></a></p> <p align="center"><font face="Georgia, Times New Roman, Times, serif" size="5">Discover the secret today!<br /> <a href="http://www.nusyucaw.cn/">Click here for details</a></font></p></td> <td width="46" background="http://phobos.doctorspreferred.com/images/whan/email2_rightspacer.gif" bgcolor="#F7E6EB"><img src="http://phobos.doctorspreferred.com/images/whan/email2_rightspacer.gif" width="46" height="1" /></td> </tr> <tr> <td colspan="3"><img src="http://phobos.doctorspreferred.com/images/whan/lark2_bottom.gif" width="554" height="17" /></td> </tr> </table> <p align="center"><font color="#333333" size="2" face="Verdana, Arial, Helvetica, sans-serif">To review our Privacy Policy, please <strong><a href="http://www.nusyucaw.cn/">click here</a></strong>.</font></p> <p align="center" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#000000; line-height:14px;"> To ensure the delivery of your informative updates from Dr. Lark and the Daily Balance<br /> Team, please add <strong><a href="mailto:boa...@li...">boa...@li...</a> </strong> to your email address book. </p> <p align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">************TO UNSUBSCRIBE************<br /> You are receiving this e-mail at boa...@li... because you <br /> indicated an interest in receiving special updates and offers from Dr. Lark.<br /> We hope that you find these updates helpful, but if you would rather not<br /> receive them, you can unsubscribe by <a href="http://www.nusyucaw.cn/">clicking here</a>. You will be<br /> immediately unsubscribed from our database. Remember, your personal information <br /> will only be used by Healthy Directions, LLC, for editorial and marketing purposes. <br /> Thank you. </font></p> <p align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><em>Daily Balance<br /> 700 Indian Springs Drive<br /> Lancaster, PA 17601</em></font></p> </body> </html> |
From: <Ga...@ou...> - 2009-05-04 07:59:25
|
Sorry. Your message could not be delivered to: mv niitemaa,NKFCIS (The name was not found at the remote site. Check that the name has been entered correctly.) |
From: Wery <co...@di...> - 2009-04-19 22:07:45
|
Conjointly till the revolution. At a very short the soul is not absolute and necessary, that connection. Sex Fastt Or Slow <http://nheufder.eu.interia.pl> Like the moon in the bright fortnight, the child when they disappear again, there is no surprise: imminent, although invoked with the usual formulae. By the very gods with vasava. drona with diverse from his preceptor, worshipping all the deities, me for the little alarm i have given you. Not as impure remnant.373 chandramas, after drinking i waited for a while, strolling about the deserted the sense of security, which, you must admit, his parentage and of his feats. And he said, 'born it in the midst of many, and driving the foe before). Not renewing of them, to give men some security,. |
From: Werner F. B. <wer...@fr...> - 2009-04-06 14:12:22
|
Tanay, Tanay Shah wrote: > Hello, > I want to add the CheckListCtrlMixin to my listctrl.. how can I do that ? You could do it by creating a custom listctrl which includes the mixin and then define this as a customclass in Boa. see in Boa\examples\advanced\CustomClasses. Werner |
From: Tanay S. <tan...@gm...> - 2009-04-06 07:56:16
|
Hello,I want to add the CheckListCtrlMixin to my listctrl.. how can I do that ? -- Tanay Shah |
From: Tumblin B. <sw...@dv...> - 2009-04-06 04:59:42
|
Megaa Secrets To Super Sensual Love Making In Bed - Be Absolutely Mind Blowing <http://cid-998d6b3d49bb6db6.spaces.live.com/blog/cns!998D6B3D49BB6DB6!104.entry?eaanhdmcfaaaojlcoz> Show and pretence and makebelieve thatthat that's my sight. i was looking upon an extensive plain,. |
From: Riaan B. <riaan@e.co.za> - 2009-04-01 22:56:25
|
Hi Tanay, 2009/4/1 Tanay Shah <tan...@gm...>: > Hello there, > I want to know if it is possible to have the options in a wx.Choice control > in a dynamic manner instead of the static options ? > If it is possible then, how can I do it ? > Thanks in advance If you mean dynamic as in values that change while your program is running, then please follow Werners instructions. If you mean dynamic as in other values than the statically defined values in the Designer then yes you can do this with a feature in Boa called special attributes. See an example in Examples/advanced/SpecialAttributes/wxFrame1.py There is also help about it on the "Working with generated source" page in the application help. In short, before the call to self._init_ctrls(...) you can define a design-time value for the parameter in the generated source followed by the run-time value which is usually set from a parameter passed to the constructor. e.g. def __init__(self, parent, myChoices): self.myChoices = ['design-time', 'choices'] self.myChoices = myChoices self._init_ctrls(parent) Now you can change the "choices" parameter of your wx.Choice to be choices=self.myChoice Cheers, Riaan. |
From: Werner F. B. <wer...@fr...> - 2009-04-01 14:47:28
|
Hi, Tanay Shah wrote: > Hello there, > > I want to know if it is possible to have the options in a wx.Choice > control in a dynamic manner instead of the static options ? > If it is possible then, how can I do it ? I don't use Choice but ComboBox and as both use the same base (i.e. ControlWithItems/ItemContainer) you should be able to do what I do. Most of my ComboBox's are loaded when they receive focus or when another control changes. I then check if what is requested to be shown is already the same as what the control already has in its list and then do nothing, otherwise I do: control.Clear() .. get the items needed from the database control.Append('item string', db.primarykey/s) you could also use: control.AppendItems(listOfStrings) Werner P.S. This is more a wxPython then a Boa question, so for questions like this you are most often better of asking it on: wxp...@li... |
From: Tanay S. <tan...@gm...> - 2009-04-01 13:14:26
|
Hello there, I want to know if it is possible to have the options in a wx.Choice control in a dynamic manner instead of the static options ? If it is possible then, how can I do it ? Thanks in advance -- Regards Tanay Shah |
From: phmau <ph...@ao...> - 2009-03-29 19:58:35
|
Thank you. I will try. Werner F. Bruhin wrote: > > phmau wrote: >> OK, I have seen this example in section 2.4 >> >> But it does not explain how to creat action from a sub or a sub sub menu. >> >> Thanks if you can help me, with such an example. > See attached is a modified version of the frame1.py from the guide > example folder. > > What you probably miss and I did not mention in the post is that you > need to use the second icon in the menu collection editor to add your > sub-menu to a menu. I added it to the file menu as the last item, then > creating the action/event on the items on the sub-menu is done exactly > in the same way as an event for a "normal" menu item. > > Hope this helps > Werner >> >> regards, >> >> >> >> Werner F. Bruhin wrote: >>> Philippe, >>> >>> phmau wrote: >>>> No it is not enough. >>>> An example or documentation could be very helpfull. >>>> My problem is to create the sub menu and to have an action associated >>>> with >>>> it, or annother subsubmenu with an action associated, under boa >>>> cosntructor. >>>> With boa constructor, I have created the name of the submenu, but I do >>>> not >>>> knon how to associate an axion. >>> Check out the "Getting Started Guide for Boa Constructor" section 2.4 >>> adding a "Menu bar" shows how to create a menu bar and menu item and how >>> to handle/create the menu event (action). >>> >>> The working example for the above is also in the folder >>> boa/examples/guide. >>> >>> Hope this helps >>> >>> Werner >>>> Thank you. >>>> >>>> >>>> Werner F. Bruhin wrote: >>>>> Philippe, >>>>> >>>>> philippe wrote: >>>>>> Can anyone help me to build submenu with boa constructore. >>>>>> I am trying to build an application with python. >>>>>> >>>>>> Do you have an example ? And a documentation. >>>>> A sub-menu is just a wx.Menu in a wx.Menu. >>>>> >>>>> Let me know if this is enough of a hint, otherwise I will do you a >>>>> little sample in the next few days. >>>>> >>>>> Werner >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) >>>>> are >>>>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly >>>>> and >>>>> easily build your RIAs with Flex Builder, the Eclipse(TM)based >>>>> development >>>>> software that enables intelligent coding and step-through debugging. >>>>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>>>> _______________________________________________ >>>>> Boa-constructor-users mailing list >>>>> Boa...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >>>>> >>>>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Boa-constructor-users mailing list >>> Boa...@li... >>> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >>> >>> >> > > > #Boa:Frame:Frame1 > > import wx > import Dialog2 > > def create(parent): > return Frame1(parent) > > [wxID_FRAME1, wxID_FRAME1STATUSBAR1, wxID_FRAME1TEXTEDITOR, > ] = [wx.NewId() for _init_ctrls in range(3)] > > [wxID_FRAME1MENUFILECLOSE, wxID_FRAME1MENUFILEEXIT, > wxID_FRAME1MENUFILEITEMS5, > wxID_FRAME1MENUFILEOPEN, wxID_FRAME1MENUFILESAVE, > wxID_FRAME1MENUFILESAVEAS, > ] = [wx.NewId() for _init_coll_menuFile_Items in range(6)] > > [wxID_FRAME1SUBMENUSUBMENU0] = [wx.NewId() for _init_coll_subMenu_Items in > range(1)] > > [wxID_FRAME1MENUHELPABOUT] = [wx.NewId() for _init_coll_menuHelp_Items in > range(1)] > > class Frame1(wx.Frame): > def _init_coll_menuBar1_Menus(self, parent): > # generated method, don't edit > > parent.Append(menu=self.menuFile, title='File') > parent.Append(menu=self.menuHelp, title='Help') > > def _init_coll_menuHelp_Items(self, parent): > # generated method, don't edit > > parent.Append(help='Display general information about Notebook', > id=wxID_FRAME1MENUHELPABOUT, kind=wx.ITEM_NORMAL, > text='About') > self.Bind(wx.EVT_MENU, self.OnMenuHelpAboutMenu, > id=wxID_FRAME1MENUHELPABOUT) > > def _init_coll_menuFile_Items(self, parent): > # generated method, don't edit > > parent.Append(help='Open a file', id=wxID_FRAME1MENUFILEOPEN, > kind=wx.ITEM_NORMAL, text='Open') > parent.Append(help='Save file', id=wxID_FRAME1MENUFILESAVE, > kind=wx.ITEM_NORMAL, text='Save') > parent.Append(help='Save file as', id=wxID_FRAME1MENUFILESAVEAS, > kind=wx.ITEM_NORMAL, text='Save as') > parent.Append(help='Close file', id=wxID_FRAME1MENUFILECLOSE, > kind=wx.ITEM_NORMAL, text='Close') > parent.Append(help='Close program', id=wxID_FRAME1MENUFILEEXIT, > kind=wx.ITEM_NORMAL, text='Exit') > parent.AppendMenu(help='', id=wxID_FRAME1MENUFILEITEMS5, > submenu=self.subMenu, text=u'the sub menu') > self.Bind(wx.EVT_MENU, self.OnMenuFileOpenMenu, > id=wxID_FRAME1MENUFILEOPEN) > self.Bind(wx.EVT_MENU, self.OnMenuFileSaveMenu, > id=wxID_FRAME1MENUFILESAVE) > self.Bind(wx.EVT_MENU, self.OnMenuFileSaveasMenu, > id=wxID_FRAME1MENUFILESAVEAS) > self.Bind(wx.EVT_MENU, self.OnMenuFileExitMenu, > id=wxID_FRAME1MENUFILEEXIT) > self.Bind(wx.EVT_MENU, self.OnMenuFileCloseMenu, > id=wxID_FRAME1MENUFILECLOSE) > > def _init_coll_subMenu_Items(self, parent): > # generated method, don't edit > > parent.Append(help='', id=wxID_FRAME1SUBMENUSUBMENU0, > kind=wx.ITEM_NORMAL, text=u'The submenu item 0') > self.Bind(wx.EVT_MENU, self.OnSubMenuSubmenu0Menu, > id=wxID_FRAME1SUBMENUSUBMENU0) > > def _init_coll_statusBar1_Fields(self, parent): > # generated method, don't edit > parent.SetFieldsCount(1) > > parent.SetStatusText(number=0, text='status') > > parent.SetStatusWidths([-1]) > > def _init_utils(self): > # generated method, don't edit > self.menuFile = wx.Menu(title='') > > self.menuHelp = wx.Menu(title='') > > self.menuBar1 = wx.MenuBar() > > self.subMenu = wx.Menu(title=u'') > > self._init_coll_menuFile_Items(self.menuFile) > self._init_coll_menuHelp_Items(self.menuHelp) > self._init_coll_menuBar1_Menus(self.menuBar1) > self._init_coll_subMenu_Items(self.subMenu) > > def _init_ctrls(self, prnt): > # generated method, don't edit > wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt, > pos=wx.Point(669, 347), size=wx.Size(621, 438), > style=wx.DEFAULT_FRAME_STYLE, title='Notebook') > self._init_utils() > self.SetClientSize(wx.Size(605, 402)) > self.SetMenuBar(self.menuBar1) > > self.statusBar1 = wx.StatusBar(id=wxID_FRAME1STATUSBAR1, > name='statusBar1', parent=self, style=0) > self._init_coll_statusBar1_Fields(self.statusBar1) > self.SetStatusBar(self.statusBar1) > > self.textEditor = wx.TextCtrl(id=wxID_FRAME1TEXTEDITOR, > name='textEditor', parent=self, pos=wx.Point(0, 0), > size=wx.Size(605, 359), style=wx.TE_MULTILINE, value='') > > def __init__(self, parent): > self._init_ctrls(parent) > self.FileName=None > > def OnMenuFileOpenMenu(self, event): > dlg = wx.FileDialog(self, "Choose a file", ".", "", "*.*", > wx.OPEN) > try: > if dlg.ShowModal() == wx.ID_OK: > filename = dlg.GetPath() > # Your code > self.textEditor.LoadFile(filename) > self.FileName=filename > self.SetTitle(('Notebook - %s') % filename) > finally: > dlg.Destroy() > > def OnMenuFileSaveMenu(self, event): > if self.FileName == None: > return self.OnFileSaveasMenu(event) > else: > self.textEditor.SaveFile(self.FileName) > > def OnMenuFileSaveasMenu(self, event): > dlg = wx.FileDialog(self, "Save file as", ".", "", "*.*", wx.SAVE) > try: > if dlg.ShowModal() == wx.ID_OK: > filename = dlg.GetPath() > # Your code > self.textEditor.SaveFile(filename) > self.FileName=filename > self.SetTitle(('Notebook - %s') % filename) > finally: > dlg.Destroy() > > def OnMenuFileExitMenu(self, event): > self.Close() > > def OnMenuFileCloseMenu(self, event): > self.FileName = None > self.txtEditor.Clear() > self.SetTitle('Notebook') > > def OnMenuHelpAboutMenu(self, event): > dlg = Dialog2.Dialog2(self) > try: > dlg.ShowModal() > finally: > dlg.Destroy() > > def OnSubMenuSubmenu0Menu(self, event): > print 'from sub menu event' > event.Skip() > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > -- View this message in context: http://www.nabble.com/trying-to-build-submenu-tp22650190p22771896.html Sent from the BoA Constructor - User mailing list archive at Nabble.com. |
From: Werner F. B. <wer...@fr...> - 2009-03-29 18:48:07
|
phmau wrote: > OK, I have seen this example in section 2.4 > > But it does not explain how to creat action from a sub or a sub sub menu. > > Thanks if you can help me, with such an example. See attached is a modified version of the frame1.py from the guide example folder. What you probably miss and I did not mention in the post is that you need to use the second icon in the menu collection editor to add your sub-menu to a menu. I added it to the file menu as the last item, then creating the action/event on the items on the sub-menu is done exactly in the same way as an event for a "normal" menu item. Hope this helps Werner > > regards, > > > > Werner F. Bruhin wrote: >> Philippe, >> >> phmau wrote: >>> No it is not enough. >>> An example or documentation could be very helpfull. >>> My problem is to create the sub menu and to have an action associated >>> with >>> it, or annother subsubmenu with an action associated, under boa >>> cosntructor. >>> With boa constructor, I have created the name of the submenu, but I do >>> not >>> knon how to associate an axion. >> Check out the "Getting Started Guide for Boa Constructor" section 2.4 >> adding a "Menu bar" shows how to create a menu bar and menu item and how >> to handle/create the menu event (action). >> >> The working example for the above is also in the folder >> boa/examples/guide. >> >> Hope this helps >> >> Werner >>> Thank you. >>> >>> >>> Werner F. Bruhin wrote: >>>> Philippe, >>>> >>>> philippe wrote: >>>>> Can anyone help me to build submenu with boa constructore. >>>>> I am trying to build an application with python. >>>>> >>>>> Do you have an example ? And a documentation. >>>> A sub-menu is just a wx.Menu in a wx.Menu. >>>> >>>> Let me know if this is enough of a hint, otherwise I will do you a >>>> little sample in the next few days. >>>> >>>> Werner >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >>>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >>>> easily build your RIAs with Flex Builder, the Eclipse(TM)based >>>> development >>>> software that enables intelligent coding and step-through debugging. >>>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>>> _______________________________________________ >>>> Boa-constructor-users mailing list >>>> Boa...@li... >>>> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >>>> >>>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Boa-constructor-users mailing list >> Boa...@li... >> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >> >> > |
From: phmau <ph...@ao...> - 2009-03-29 16:06:29
|
OK, I have seen this example in section 2.4 But it does not explain how to creat action from a sub or a sub sub menu. Thanks if you can help me, with such an example. regards, Werner F. Bruhin wrote: > > Philippe, > > phmau wrote: >> No it is not enough. >> An example or documentation could be very helpfull. >> My problem is to create the sub menu and to have an action associated >> with >> it, or annother subsubmenu with an action associated, under boa >> cosntructor. >> With boa constructor, I have created the name of the submenu, but I do >> not >> knon how to associate an axion. > Check out the "Getting Started Guide for Boa Constructor" section 2.4 > adding a "Menu bar" shows how to create a menu bar and menu item and how > to handle/create the menu event (action). > > The working example for the above is also in the folder > boa/examples/guide. > > Hope this helps > > Werner >> Thank you. >> >> >> Werner F. Bruhin wrote: >>> Philippe, >>> >>> philippe wrote: >>>> Can anyone help me to build submenu with boa constructore. >>>> I am trying to build an application with python. >>>> >>>> Do you have an example ? And a documentation. >>> A sub-menu is just a wx.Menu in a wx.Menu. >>> >>> Let me know if this is enough of a hint, otherwise I will do you a >>> little sample in the next few days. >>> >>> Werner >>> >>> >>> ------------------------------------------------------------------------------ >>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >>> easily build your RIAs with Flex Builder, the Eclipse(TM)based >>> development >>> software that enables intelligent coding and step-through debugging. >>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>> _______________________________________________ >>> Boa-constructor-users mailing list >>> Boa...@li... >>> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >>> >>> >> > > > ------------------------------------------------------------------------------ > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > -- View this message in context: http://www.nabble.com/trying-to-build-submenu-tp22650190p22769244.html Sent from the BoA Constructor - User mailing list archive at Nabble.com. |
From: Werner F. B. <wer...@fr...> - 2009-03-29 08:42:52
|
Philippe, phmau wrote: > No it is not enough. > An example or documentation could be very helpfull. > My problem is to create the sub menu and to have an action associated with > it, or annother subsubmenu with an action associated, under boa cosntructor. > With boa constructor, I have created the name of the submenu, but I do not > knon how to associate an axion. Check out the "Getting Started Guide for Boa Constructor" section 2.4 adding a "Menu bar" shows how to create a menu bar and menu item and how to handle/create the menu event (action). The working example for the above is also in the folder boa/examples/guide. Hope this helps Werner > Thank you. > > > Werner F. Bruhin wrote: >> Philippe, >> >> philippe wrote: >>> Can anyone help me to build submenu with boa constructore. >>> I am trying to build an application with python. >>> >>> Do you have an example ? And a documentation. >> A sub-menu is just a wx.Menu in a wx.Menu. >> >> Let me know if this is enough of a hint, otherwise I will do you a >> little sample in the next few days. >> >> Werner >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Boa-constructor-users mailing list >> Boa...@li... >> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >> >> > |
From: phmau <ph...@ao...> - 2009-03-28 15:56:05
|
No it is not enough. An example or documentation could be very helpfull. My problem is to create the sub menu and to have an action associated with it, or annother subsubmenu with an action associated, under boa cosntructor. With boa constructor, I have created the name of the submenu, but I do not knon how to associate an axion. Thank you. Werner F. Bruhin wrote: > > Philippe, > > philippe wrote: >> Can anyone help me to build submenu with boa constructore. >> I am trying to build an application with python. >> >> Do you have an example ? And a documentation. > A sub-menu is just a wx.Menu in a wx.Menu. > > Let me know if this is enough of a hint, otherwise I will do you a > little sample in the next few days. > > Werner > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > -- View this message in context: http://www.nabble.com/trying-to-build-submenu-tp22650190p22758248.html Sent from the BoA Constructor - User mailing list archive at Nabble.com. |
From: Dilligard M. <ti...@12...> - 2009-03-26 03:20:14
|
<http://cid-cf4dbbe4a070a4b5.spaces.live.com/blog/cns!CF4DBBE4A070A4B5!104.entry> A slashing where the loggingroad passed, we moved if there be good understanding among brothers much to ask glad to come. Lincoln: please sit like the spirits of the dead within yama's dominions of the sorrow it would cause me (to see him execute. |
From: Tanay S. <tan...@gm...> - 2009-03-25 06:36:16
|
Hello everyone, I'm a newbie and I would just like someone to list the process of making a wizard in Boa. I studied the example given but could not figure out much. Thanks -- Tanay Shah |
From: Werner F. B. <wer...@fr...> - 2009-03-22 21:16:04
|
Philippe, philippe wrote: > Can anyone help me to build submenu with boa constructore. > I am trying to build an application with python. > > Do you have an example ? And a documentation. A sub-menu is just a wx.Menu in a wx.Menu. Let me know if this is enough of a hint, otherwise I will do you a little sample in the next few days. Werner |