wxPython: Plaing widgets in status bar

iu2 israelu at elbit.co.il
Thu Jul 2 02:17:00 EDT 2009


Hi all,

I try to placs widgets (button, static text labels) in a status bar,
wxPython.
>From the examples I could place them using exact positioning by the
status bar methof GetFieldRect.
In this case I need to add an EVT_SIZER handler to keep the widgets in
their propotional places
within the status bar.

I try to do it without exact positioning, that is using a sizer.
I tried adding a sizer directly to the status bar, but it didn't work,
it layed out the widgets
at the upper left corner of the status bar, atop of each other.
I tried adding a panel to the status bar and then adding the widgets
to it., but then the widgets partially
cover the status bar. They also don't keep their propotional
positions, although I used it in the sizer.Add method.

How can I position widgets within the status bar like positioning them
in a frame?

thanks



More information about the Python-list mailing list