I just try to play with wxPython.
I use wxGlade for it, since I realy bad in layout
My target is just a basic screen with 2 main part.
1. TOP : With fixed height, even the main frame resized
2. BOTTOM : with resizeable height linear to the main frame height
Step 1: (optional, but highly recommended) Close wxGlade and hide its icon somewhere that you will not be tempted to use it again until you better understand how to do things yourself. IMO GUI builder tools should not be used as a crutch because you don't understand how to do something, but rather as a tool used to extend your reach when you would rather do something yourself but just don't have the time. Another time that GUI builders are helpful is in the prototype phase of a project to quickly bang out some alternative layouts to look at and play with, and then throw away when you decide which one you want to do.
Step 2: Use the WIT. http://wiki.wxpython.org/Widget_Inspection_Tool It has a toolbar item that will cause the selected widget or sizer to be highlighted in the live running program, and it has a python shell where you can interact with items in the live program, calling methods, changing properties, etc.
Step 3: If you don't want the upper portion of the window to be resized vertically then you need to give it a proportion of zero when adding it to sizer_1. The proportion value tells the sizer how much of the free space to give the item. So by giving both sizer_2 and list_ctrl_1 proportion=1 then you are telling sizer_1 to divide up the free space equally between them. If instead you use zero and 1 then the freespace will only be given to the list_ctrl_1.
···
On 9/12/11 7:57 PM, bino wrote:
Dear All
I just try to play with wxPython.
I use wxGlade for it, since I realy bad in layout
My target is just a basic screen with 2 main part.
1. TOP : With fixed height, even the main frame resized
2. BOTTOM : with resizeable height linear to the main frame height
Step 3: If you don't want the upper portion of the window to be resized vertically then you need to give it a proportion of
Thankyou for your enlightment.
I'm playing with it .. add codes to generated one and more.
I face problem with how to decimal entry widget .... but i'll post it at new thread