I have a class added to builtins hence accessible anywhere. From this
class I would like to have a function that recreates the entire app,
so would call wx.App to set a new top window or similar. Is this
possible?
x
I have a class added to builtins hence accessible anywhere. From this
class I would like to have a function that recreates the entire app,
so would call wx.App to set a new top window or similar. Is this
possible?
x
There can only be one wx.App object in a single process, but you can certainly create new instances of your main frame. Note that calling the app's SetTopWindow is not required as it is just a hint to the app for what TLW to use when one is needed, such as for dialog parents when one is not specified. If SetTopWindow is not set then it will just the first one in the top level window list.
On 1/23/10 3:40 AM, Ben wrote:
I have a class added to builtins hence accessible anywhere. From this
class I would like to have a function that recreates the entire app,
so would call wx.App to set a new top window or similar. Is this
possible?
--
Robin Dunn
Software Craftsman