Personal tools
You are here: Home Members kedai's Home Building menu and menubars with Boa-constructor
« July 2018 »
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Log in

Forgot your password?
Who - kedai (a) kedai . com . my
Where - Malaysia
What - we do zope/plone, linux solution for network, vpn, mail, etc
Document Actions

Building menu and menubars with Boa-constructor

by kedai last modified Feb. 06, 04 11:14 AM

This is more of a note to self, and probably would help others. I've played with boa-constructors previously, *played* being the operative word. Here's how to create a menubar/menu item with boa-constructor.

I've tried developing with eric/PyQT/Designer, and boa/wxPython. Both have their pros and cons. At this instance, wxPython seems more appropriate since the app I'm building is targeted for Windows users. I want to distribute it with either py2exe or McMillan Installer.

Get boa-constructor

  • let's create a wxApp. it comes with wxFrame1
  • click the blue arrow (to run designer)
  • go back to wxFrame1. the tab should be Data
  • click Utilities(Data). click menuitem, and click at Data area. in this instance, we're going to have a menuitem File (with New/Open/Save/Quit) and About (with About). for File menuitem, clict Constr, and fill in the name/title. Now click Props and click Items. a popup will appear. here we fill in the items (New/Open/Save/Quit). At each, fill in Constr. close when done.

Repeat for other menuitem (About)

  • Now click menubar, and click Data area of wxFrame1. Fill in Constr and Props. Look for Menus, and put in the menuitems we did just now.
  • post all changes to wxFrame1. Run Designer again, and click wxFrame1. Click Props and look for menubar. select the named menubar we created.

that should be it.

statusbar also need these similar steps.

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: