Hi! This is my first post on this web, so I hope not to be making a dumb question :P. I've been messing with a program for a while, and recently I migrated my code to the 2.5.2. Once I did it my code keeps on giving me the PyNoAppError. This is my code:
class wxTheApp(wx.App): def OnInit(self): frame = wxMainFrame(None, title="Test") frame.Show() self.SetTopWindow(frame) return True if __name__ == "__main__": app = wxTheApp() app.MainLoop()
And, once inside the MainFrame, I create several more frames, like this:
mynewframe = wxMyNewFrame(self,-1,(0,0),(10,10))
Then, when the _init_ of the frame is called, I receive the error. As far as I can see this error is due to the new policy in frames and windows about the detection of an App running. Someone knows how to fix it? (the code worked before the update).
Thanks in advance for any suggestion ^^
PD: sorry about my grammar