Next Page

Up One Level

Previous Page

Getting Started Guide for Boa Constructor

Contents

Next:Getting Started Guide for Boa Constructor Up:Getting Started Guide for Boa Constructor Previous:Adding File Menu Functionality


2.8 Creating an application window using sizers

Sizers are a great way to ensure that your GUI layout is nice and clean. They come in especially handy when you do not know exactly how much space a control needs and/or should be allowed to use, this can be the case when you internationalize your application (I18N) or for such controls as lists or grids where you like to give as much space as possible to them (or maybe as little as practical).

Please note that the following will just explain how to use sizers in Boa (note that this assumes version 0.6.x of Boa). For more detailed information about sizers you should check the wxPython documentation, the wxPython demo and you might also find the following links helpful (if not a must!) to understand sizers.

http://wiki.wxpython.org/index.cgi/UsingSizers
http://wiki.wxpython.org/index.cgi/LearnSizers1
http://wiki.wxpython.org/index.cgi/wxDesigner_20Sizer_20Tutorial


We will use a wx.Frame and create a screen for address information entry.

Designer and Collection Editor Address entry form 1 Address entry form

Address form final


Please note that the file generated during this example is also available in the directory "Examples\guide" under your Boa installation directory.

For coding guide lines you might also want to consult the wxPython style guide  http://wiki.wxpython.org/index.cgi/wxPython_Style_Guide .

 

Next Page

Up One Level

Previous Page

Getting Started Guide for Boa Constructor

Contents

Next:Getting Started Guide for Boa Constructor Up:Getting Started Guide for Boa Constructor Previous:Adding File Menu Functionality