Re: [Matplotlib-users] class wx app question

2007-01-21 Thread Ken McIvor
On Jan 21, 2007, at 8:21 AM, Allan Noriel Estrella wrote: > > i found this code snippet in one example in matplotlib > > > i just want to ask what does app = App(0) mean, why do we need 0 > for an argument It explicitly disables the redirection of sys.stdout and sys.stderr. http://www.

[Matplotlib-users] class wx app question

2007-01-21 Thread Allan Noriel Estrella
i found this code snippet in one example in matplotlib class App(wx.App): def OnInit(self): 'Create the main window and insert the custom frame' frame = CanvasFrame() frame.Show(True) return True app = App(0) app.MainLoop() i just want to ask what does app = App