Hi,
I’m trying to get access to a toolbar’s bitmap
buttons that were created from an XRC file have an. The XRC file was generated
by wxGlade 0.6.1, with a tool bar in the frame. I can do a
self.toolbar = self.GetToolBar()
print (“toolbar = %s” % (self.toolbar))
in my frame class and get something that looks like a
toolbar.
However, when I follow this with:
self.closeButton = xrc.XRCCTRL( self.toolbar, “CloseButton”
)
print(“close button = %s” % self.closeButton )
I get “None”.
This makes it difficult to do
self.closeButton.Enable(False)
The relevant XRC is
<?xml version="1.0" encoding="US-ASCII"?>400, 362
wxDEFAULT_FRAME_STYLE Cameraicons/camera.png
.
.
.
24, 24
wxTB_3DBUTTONS|wxTB_HORIZONTAL.
.
.
CloseButton
Close configuration
Close the camera configuration
icons/stock_close_24.png
Thanks,
Harry