sizing
Jack Andrews
effbiae at gmail.com
Thu Nov 2 20:04:41 PST 2006
here's a simple wizard page that is meant to display a list view in
most of the page. instead, it shows only a small listview with
scrollbars which i can't scroll.
help much appreciated,
jack.
from wxPython.wx import *
from wxPython.wizard import *
choices = ['ODBC','Access','Excel','Text','Oracle','MySQL' ]
class ListAndStatic(wxPyWizardPage):
def __init__ ( self, parent ):
wxPyWizardPage.__init__(self,parent)
self.panel=wxPanel(self,-1)
self.list=wx.ListView(self,-1,style=wx.LC_LIST|wx.LC_HRULES|wx.LC_VRULES)
for c in choices:
li=wx.ListItem()
li.SetText(c)
self.list.InsertItem(li)
self.tx=wxStaticText(self,-1,'From')
self.sizer = wxBoxSizer ( wxVERTICAL )
self.sizer.Add(self.tx,0,wx.EXPAND,0)
self.sizer.Add(self.list,0,wx.EXPAND,0)
self.panel.SetSizerAndFit ( self.sizer )
def GetNext(self):return None
def GetPrev(self):return None
app=wxPySimpleApp()
wizard = wxWizard ( None, -1, 'DBK' )
p=ListAndStatic(wizard)
wizard.RunWizard(p)
wizard.Destroy()
More information about the wx-users
mailing list