Re: [Boa Constr] trying to build submenu
Status: Beta
Brought to you by:
riaan
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 >> >> > |