A StaticBoxSizer puts a box sizer into a static box and it provides a border around the box along with a label at the top. Below steps are involved in preparing a statcboxsizer
In below example, two staticbox sizers are created and added into a top vertical box sizer, which controls the layout of the panel inside a frame.
First staticbox sizer is created around a static box named ‘Name’.
A Horizontal box sizer, holding two labels and two text boxes, is added into nmSizer static box sizer.
Similarly, another staticbox sizer holds a static box named ‘Buttons’.
Two button objects, named ‘ok’ and ‘cancel’ are put in a horizontal box sizer, which in turn, is placed inside the second staticbox sizer.
Two static box sizers, ‘name’ and ‘Buttons’ are added into a vertical box sizer acting as the layout manager of the panel in the top level frame.
Following is the complete code
The above code produces the following output
wxPython Related Interview Questions
|Perl Scripting Interview Questions||C++ Interview Questions|
|PHP Interview Questions||C Interview Questions|
|Ruby on Rails Interview Questions||Ruby Interview Questions|
|Django Interview Questions||Lisp programming Interview Questions|
|R Programming language Interview Questions||wxPython Interview Questions|
|Python Automation Testing Interview Questions|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.