import wx
class Example(wx.Frame):
def __init__(self, *args, **kwargs):
super(Example, self).__init__(*args, **kwargs)
self.InitUI()
def InitUI(self):
menubar = wx.MenuBar()
fileMenu = wx.Menu()
fitem = fileMenu.Append(wx.ID_EXIT, 'Quit', 'Quit application')
menubar.Append(fileMenu, '&File')
self.SetMenuBar(menubar)
self.Bind(wx.EVT_MENU, self.OnQuit, fitem)
self.SetSize((300, 200))
self.SetTitle('Simple menu')
self.Centre()
self.Show(True)
def OnQuit(self, e):
self.Close()
def main():
ex = wx.App()
Example(None)
ex.MainLoop()
if __name__ == '__main__':
main()
11 Replies - 1247 Views - Last Post: 26 September 2011 - 03:56 PM
#1
WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 06:55 AM
Replies To: WxPython not working (32 bit version on 64 bit windows)
#2
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 07:01 AM
Also, it's pretty obvious what the problem is. Did you read the error message? The problem is on line 1 and occurs when you try to import wx. Since you said this only started happening when you upgraded to Windows 7 64 bit (I'm assuming you had Windows 7 32 bit previously), my first guess would be to install the 64-bit version of WxPython. Give that a try and see if it fixes the problem.
#3
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 07:11 AM
Brewer, on 26 September 2011 - 02:01 PM, said:
Also, it's pretty obvious what the problem is. Did you read the error message? The problem is on line 1 and occurs when you try to import wx. Since you said this only started happening when you upgraded to Windows 7 64 bit (I'm assuming you had Windows 7 32 bit previously), my first guess would be to install the 64-bit version of WxPython. Give that a try and see if it fixes the problem.
Didnt work.
#4
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 07:19 AM
In the meantime, try Googling and see what you can find.
This post has been edited by Brewer: 26 September 2011 - 07:19 AM
#5
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 08:28 AM
Moving forward:
You should have downloaded and installed "64-bit Python 2.7". If it's still not working, could you give us an updated error?
This post has been edited by atraub: 26 September 2011 - 12:20 PM
#6
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 12:02 PM
Brewer, on 26 September 2011 - 02:19 PM, said:
In the meantime, try Googling and see what you can find.
Okay, I'll go home and get my Linux disc and quit what I'm doing and install it. Thanks!
atraub, on 26 September 2011 - 03:28 PM, said:
Moving forward:
You should have downloaded and installed "64-bit Python 2.7". If it's still not working, could you give us an updated error?
Thankyou soooooooooo much! I have the 64bit version, but there was an error when install. So I re-installed it and am good to go. Thanks again.
#7
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 12:18 PM
This post has been edited by atraub: 26 September 2011 - 12:19 PM
#8
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 12:38 PM
#9
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 12:46 PM
Brewer is an established member of this community and he was going out of his way to help you. We don't get paid for what we do, we just do it... each of us has our own reasons. I may disagree with him from time to time, I might even give him a friendly jab in the ribs, but I do respect him. If you showed a bit more respect to everyone here your rating might actually be positive again one day.
Brewer actively contributes and has even taught me a thing or two; what do you do, iJasonTATE?
This post has been edited by atraub: 26 September 2011 - 12:49 PM
#10
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 01:55 PM
atraub, on 26 September 2011 - 07:46 PM, said:
Brewer is an established member of this community and he was going out of his way to help you. We don't get paid for what we do, we just do it... each of us has our own reasons. I may disagree with him from time to time, I might even give him a friendly jab in the ribs, but I do respect him. If you showed a bit more respect to everyone here your rating might actually be positive again one day.
Brewer actively contributes and has even taught me a thing or two; what do you do, iJasonTATE?
What I do is post my questions when I have them. I could care less about my rating:) What do you do?
#11
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 03:03 PM
#12
Re: WxPython not working (32 bit version on 64 bit windows)
Posted 26 September 2011 - 03:56 PM
|
|

New Topic/Question
Reply




MultiQuote




|