Python.exe not responding error [RESOLVED]

Started by
2 comments, last by blewisjr 15 years, 3 months ago
Well I am not sure what is going on here. Could be code or could be the interpreter itself. I have begun to delve into python programming with wxPython and came across this issue with a test script I put together. The window opens up as it should however, a few seconds later vista starts giving me the error checking for solutions bar with the text Python.exe is not responding. Running Vista home premium x64 here is the code

import wx

class MainWindow(wx.Frame):
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, wx.ID_ANY, title, size = (400, 200), 
		style = wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
        self.contorl = wx.TextCtrl(self, 1, style = wx.TE_MULTILINE)
        self.Show(True)
        
app = wx.PySimpleApp()
frame = MainWindow(None, -1, "Small Editor")

app.MainLoop()


[Edited by - blewisjr on January 12, 2009 3:11:13 PM]
Advertisement
Try fixing that typo - self.contorl.
fixed the typo however, it is still causing the interpreter to stop responding
Sorry for the double post but I figured it out. Turns on the Netbeans IDE plugin I was testing out (which I did not use for this little sample because I did not like it) screwed up the python interpreter. After uninstalling the netbeans plugin it worked again. Maybe it had something to do with jython that Netbeans installs.

This topic is closed to new replies.

Advertisement