I am completely new to wx and rather new to python. What I want to achive
is haveing a "normal" window/frame that contains 2 controls. A wxChoice on
top and a wxListCtrl beneath. Is the correct way to put a panel inside the
frame (which gets maximum size because it is the only object) and put the
two controls onto the panel?
but then, the panel *always* has a size of 400x400, no matter what the size of the frame
containing the panel is.
I'd appreciate any hints how to achive the desired layout, perhaps my whole
approach is wrong.
thanks in advance
/ch
···
--
Wieviele Mitarbeiter von Microsoft benoetigt man fuer das auswechseln
einer defekten Gluehbirne? Keine, Microsoft erklaert die Dunkelheit zum
Marktstandart.
You have your sizer (mostly) set up to size things within the frame, not
within the panel. Since the windows are children of the panel, this doesn't
work. One approach would be to fix that as follows:
A simpler solution is to get rid of the panel altogether: you shouldn't need
it. In that case, remove the panel and replace all instances of self.panel
with self and it should also work.
-tim
Hi,
I am completely new to wx and rather new to python. What I want to achive
is haveing a "normal" window/frame that contains 2 controls. A wxChoice on
top and a wxListCtrl beneath. Is the correct way to put a panel inside the
frame (which gets maximum size because it is the only object) and put the
two controls onto the panel?
but then, the panel *always* has a size of 400x400, no matter what the
size of the frame
containing the panel is.
I'd appreciate any hints how to achive the desired layout, perhaps my
whole
···
approach is wrong.
thanks in advance
/ch
--
Wieviele Mitarbeiter von Microsoft benoetigt man fuer das auswechseln
einer defekten Gluehbirne? Keine, Microsoft erklaert die Dunkelheit zum
Marktstandart.
I am completely new to wx and rather new to python. What I want to achive
is haveing a "normal" window/frame that contains 2 controls. A wxChoice on
top and a wxListCtrl beneath. Is the correct way to put a panel inside the
frame (which gets maximum size because it is the only object) and put the
two controls onto the panel?
but then, the panel *always* has a size of 400x400, no matter what the size of the frame
containing the panel is.
You should set the sizer on the Panel not the frame. The way to remember this is to think about which window's contents need to be managed. The frame is already managing the panel's size and location so you don't need the sizer there. It's the panel's contents that need managed so you attach the sizer to the panel.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
You have your sizer (mostly) set up to size things within the frame, not
within the panel.
well, I feared it was such an obvious thing :). Now it works perfectly
as desired.
A simpler solution is to get rid of the panel altogether: you shouldn't need
it.
I want to place some additional controls onto it later so it might make sense,
won't it?
thanks again for the help,
/ch
···
Am 04.10.2002 um 08:55:16 schrieb Tim Hochberg:
--
Wieviele Mitarbeiter von Microsoft benoetigt man fuer das auswechseln
einer defekten Gluehbirne? Keine, Microsoft erklaert die Dunkelheit zum
Marktstandart.