[Q] wxPython - layout & placement
Rolf Marvin Bøe Lindgren
roffe at aqualene.uio.no
Sat Jul 20 04:53:11 EDT 2002
[Steve Menard]
| One easy solution is to us a wxPanel to do you layout, then put that
| panel in the wxDialog. It should not be too hard to make sure the
| wxPanel fill out the entire dialog ...
oh, I tried that:
dlg = wxDialog(parent,-1,FileName,size=(400,400))
dlgPanel = wxPanel(parent=dlg,-1)
wxButton (parent=dlgPanel,
id = -1,
label = 'This is a button',
pos=(10,10))
dlg.ShowModal()
this gives an entirely blank dialog. is there anything obviously wrong
here?
--
Rolf Lindgren http://www.roffe.com/
roffe at tag.uio.no
More information about the Python-list
mailing list