wxPython: Plaing widgets in status bar

I

iu2

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top