From: Rochus S. <roc...@ch...> - 2000-11-23 12:40:03
|
Hi, Am I doing something wrong or is there a problem using wxPython from the visualpython-Idle ? (on w98!) I tried the following to test it: ************** from visual import * from wxPython.wx import * class MyApp(wxApp): def OnInit(self): frame = wxFrame(NULL, -1, "test") frame.Show(true) self.SetTopWindow(frame) s = sphere() return true app = MyApp(0) app.MainLoop() ******************* if I try to run the program in the visualpython-IDLE I get the following in the output window: Visual-2000-06-10 Traceback (innermost last) File "c:\python\programs\wxpy_test\test.py", line 2, in ? from wxPython.wx import * SystemError: bad argument to internal function Program stopped. However, when I just save the program as test.py from IDLE and start it directly I get the wxWindow and the vpython window with a nifty white sphere. (I used tkinter in my python stuff but heard so many good things about wxPython (and the demos *are* cool) that I wanted to try/learn it). Well, I could just *not* use IDLE or use it simply as a text editor ... I am just curious. cheers, rochus -- Dr. Rochus Schmid Technische Universität München Lehrstuhl f. Anorganische Chemie Lichtenbergstrasse 4, 85747 Garching Tel. ++49 89 2891 3174 Fax. ++49 89 2891 3473 Email roc...@ch... |