- tb.AddSimpleTool(20, wxBitmap('bitmaps/open.bmp', wxBITMAP_TYPE_BMP),
- "Open")
- EVT_TOOL(self, 20, self.OnToolClick)
- EVT_TOOL_RCLICKED(self, 20, self.OnToolRClick)
+ tb.AddSimpleTool(10, images.getNewBitmap(), "New", "Long help for 'New'")
+ self.Bind(wx.EVT_TOOL, self.OnToolClick, id=10)
+ self.Bind(wx.EVT_TOOL_RCLICKED, self.OnToolRClick, id=10)
+
+ tb.AddSimpleTool(20, images.getOpenBitmap(), "Open")
+ self.Bind(wx.EVT_TOOL, self.OnToolClick, id=20)
+ self.Bind(wx.EVT_TOOL_RCLICKED, self.OnToolRClick, id=20)