Using XML to write widgets?

Michael Knopf wrote:

Controls:
self.button = wx.xrc.XRCCTRL("parentFrameObject", "nameOfTheControl") //

The first parameter should be a window object instance, not a string.

checks the XRC code for the control and initiates it, again you do not need to do any own initiation code, self.button should be of the type wx.Button now

Actually, the control is already loaded from the XRC when you loaded the frame or whatever. All XRCCTRL really does is search for a child of the window that is mapped to the the given name.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!