import wx
import wx.gizmos as gizmos
-import images
#----------------------------------------------------------------------
# make an image list
im1 = im2 = -1
self.il = wx.ImageList(16, 16)
- im1 = self.il.Add(images.getFolder1Bitmap())
- im2 = self.il.Add(images.getFile1Bitmap())
+ im1 = self.il.Add(wx.ArtProvider.GetBitmap(wx.ART_FOLDER, wx.ART_TOOLBAR, (16,16)))
+ im2 = self.il.Add(wx.ArtProvider.GetBitmap(wx.ART_NORMAL_FILE, wx.ART_TOOLBAR, (16,16)))
self.SetImageList(self.il)
# Add some items
def __init__(self, parent, style=0):
gizmos.TreeCompanionWindow.__init__(self, parent, -1, style=style)
self.SetBackgroundColour("WHITE")
- self.Bind(wx.EVT_ERASE_BACKGROUND, self.OEB)
-
- def OEB(self, evt):
- pass
# This method is called to draw each item in the value window
def DrawItem(self, dc, itemId, rect):
class TestPanel(wx.Panel):
def __init__(self, parent, log):
- wx.Panel.__init__(self, parent, -1)
+ wx.Panel.__init__(self, parent, -1, size=(640,480))
self.log = log
scroller = gizmos.SplitterScrolledWindow(
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(scroller, 1, wx.EXPAND|wx.ALL, 25)
- self.SetAutoLayout(True)
self.SetSizer(sizer)
-
+ self.Layout()
#----------------------------------------------------------------------