]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ToolBar.py
First pass at integrating a code generator in XRCed. Initial patch
[wxWidgets.git] / wxPython / demo / ToolBar.py
index 2a4675cff38163e6de9d35671dd1c6017eefce2d..750ae637f40325d3b7244e0c18cec73947eab875 100644 (file)
@@ -32,10 +32,12 @@ class TestToolBar(wx.Frame):
         self.CreateStatusBar()
 
         tsize = (16,16)
-        new_bmp =  wx.ArtProvider.GetBitmap(wx.ART_NORMAL_FILE, wx.ART_TOOLBAR, tsize)
+        new_bmp =  wx.ArtProvider.GetBitmap(wx.ART_NEW, wx.ART_TOOLBAR, tsize)
         open_bmp = wx.ArtProvider.GetBitmap(wx.ART_FILE_OPEN, wx.ART_TOOLBAR, tsize)
         copy_bmp = wx.ArtProvider.GetBitmap(wx.ART_COPY, wx.ART_TOOLBAR, tsize)
         paste_bmp= wx.ArtProvider.GetBitmap(wx.ART_PASTE, wx.ART_TOOLBAR, tsize)
+
+        tb.SetToolBitmapSize(tsize)
         
         tb.AddSimpleTool(10, new_bmp, "New", "Long help for 'New'")
         #tb.AddLabelTool(10, "New", new_bmp, shortHelp="New", longHelp="Long help for 'New'")