wxFrame mouse over crash in vista

This page provides some helpful discussion for getting started with GUI programming in Python.

Moderators: KDoiron, ChrJim, mawe, python

wxFrame mouse over crash in vista

Postby aJack7 on Sat Nov 29, 2008 10:07 pm

Hi all,

I'm in the process of learning wxPython, I have a fairly good understanding of Python. following a simple tutorial from the wxPython site (getting starting), the code works fine however a problem I'm having is when my mouse rolls over an actual frame, this results in python.exe crashing.

Can anyone suggest anything, I hoping others know of this problem thus increasing the chance of a solution. I really want to learn wxPython but I dont consider having to switch operating systems a feasible option to do so.

I am using Python 2.6 (32 bit) and wxPython (32 bit), Vista 64 Bit. btw I have tried the 64 bit variants, both result in this problem.

Screenshot:
http://www.wjdev.net/error.png
aJack7
Python Fan
Python Fan
 
Posts: 5
Joined: Mon Oct 06, 2008 4:18 pm

Re: wxFrame mouse over crash in vista

Postby avisser on Sun Nov 30, 2008 3:26 am

Can you explain why you think it's a mouseover event? In the screenshot it looks like you've already typed into the frame (so there has already been such an event).
I've also read that Windows may cuase problems when you create Frames without Panels to hold subsequent widgets, but that could be just when using sizers.
Lastly, maybe using a generic instead of a specic id for your TextCtrl (i.e. -1 instead of 1) will help.
counselor: Fine, fine. But do you, do you have any qualifications?
Anchovy: Yes, I've got a hat.
counselor: A hat?
Anchovy: 'Yes, a hat. A lion taming hat. A hat with 'lion tamer' on it. I got it at Harrods. And it lights up saying 'lion tamer' in great big neon letters, so that you can tame them after dark when they're less stroppy.
avisser
Ultimate Python Hacker
Ultimate Python Hacker
 
Posts: 2535
Joined: Sat Oct 28, 2006 3:03 pm
Location: Holland

Re: wxFrame mouse over crash in vista

Postby aJack7 on Sun Nov 30, 2008 1:38 pm

hi, I can type in the textbox without a problem since the textbox automatically allows me to type text into it without any interaction from my mouse(ie dont need to move my mouse over the program). However when I do move my mouse cursor over the wxFrame the program crashes.

Note that this has nothing to do with the textbox, removing the textbox and moving my mouse over a empty frame results in the same scenario. Note that interestingly I can move my mouse over the menu's and everything is fine.

wxFrame seems to be causing this problem.
aJack7
Python Fan
Python Fan
 
Posts: 5
Joined: Mon Oct 06, 2008 4:18 pm

Re: wxFrame mouse over crash in vista

Postby avisser on Sun Nov 30, 2008 4:59 pm

Just to get things straight: at startup your textbox has focus while the mouse is outside of the window and when you move your mouse and entre the window it crashes? I'll try that next time I'm on a Vista PC. Meanwhile, did you try the suggestions about Panel and/or id? (the panel is mereley a fill-up thingy for the frame, as in: the frame defines the dimensions, the panel defines the surface)
counselor: Fine, fine. But do you, do you have any qualifications?
Anchovy: Yes, I've got a hat.
counselor: A hat?
Anchovy: 'Yes, a hat. A lion taming hat. A hat with 'lion tamer' on it. I got it at Harrods. And it lights up saying 'lion tamer' in great big neon letters, so that you can tame them after dark when they're less stroppy.
avisser
Ultimate Python Hacker
Ultimate Python Hacker
 
Posts: 2535
Joined: Sat Oct 28, 2006 3:03 pm
Location: Holland

Re: wxFrame mouse over crash in vista

Postby aJack7 on Sun Nov 30, 2008 7:17 pm

yes I tried your suggestion, all failing to resolve the issue.

I have reverted back to python 2.5 in order to use a prior wxPython version and everything is perfect so it'll have to do until the wxPython developers fix the bug. Many hours digging through google suggests I'm not the only one to encounter this problem. Its a glitch in the present version of wxWidgets.
aJack7
Python Fan
Python Fan
 
Posts: 5
Joined: Mon Oct 06, 2008 4:18 pm

Re: wxFrame mouse over crash in vista

Postby Apostle on Tue Dec 02, 2008 7:55 pm

sample code? Exception??
User avatar
Apostle
Python Super User
Python Super User
 
Posts: 135
Joined: Tue Aug 19, 2008 12:11 pm

Re: wxFrame mouse over crash in vista

Postby rmorison on Tue Dec 09, 2008 12:17 pm

I have a workaround that might solve this problem. See http://morison.biz/technotes/articles/55 for details.

Rod
rmorison
Python Fan
Python Fan
 
Posts: 1
Joined: Tue Dec 09, 2008 12:08 pm


Return to Graphical User Interface

Who is online

Users browsing this forum: No registered users and 1 guest


Sponsored by Dreamlink Web hosting and Traduzioni Rumeno Italiano and ASSP Deluxe for cPanel.