Hi,
I'm using wxpython (with an embedded matplotlib plot) on several
platforms. On my linux box it behaves nicely however the exact same
code when run on a windows machine causes problems.
The main problem seems to be related to mouse events (I assume due to
the non-native support for them on windows). When clicking on a
title-bar or even when moving a mouse out of the main frame the system
freezes and shows a white screen (and gets the windows 'not
responding' title). This also happens when left-clicking but
(apparently not right-clicking) I've tried binding the mouse events
but this doesn't seem to help (perhaps since the freezing happens
before it reaches my function).
Has anyone had this problem before? Is there some kind of known
solution or does someone have a suggestion on what to do to?
Elan
···
--
If I knew that a man was coming to my house with the conscious design
of doing me good, I should run for my life.
- Henry David Thoreau
Elan Pavlov wrote:
Hi,
I'm using wxpython (with an embedded matplotlib plot) on several
platforms. On my linux box it behaves nicely however the exact same
code when run on a windows machine causes problems.
The main problem seems to be related to mouse events (I assume due to
the non-native support for them on windows). When clicking on a
title-bar or even when moving a mouse out of the main frame the system
freezes and shows a white screen (and gets the windows 'not
responding' title). This also happens when left-clicking but
(apparently not right-clicking) I've tried binding the mouse events
but this doesn't seem to help (perhaps since the freezing happens
before it reaches my function).
Has anyone had this problem before? Is there some kind of known
solution or does someone have a suggestion on what to do to?
Elan
I have had occasional freezing in Windows at seemingly random times. So far, it seems that switching focus away from the window and back fixes it. I would be interested in hearing suggestions on how to debug GUI freezes. Maybe some kind of watchdog program that could write a stack trace to a log file whenever a freeze is detected?
Ben
These are symptoms you would get from a program that never properly yields control back to the main event loop from an event handler. If you can reproduce it consistently, this usually makes it easy to track. Have you bound any event handlers to window/mouse events? the first step is to double check all of them and make sure they all return in a timely fashion.
-Mike
···
On Thu, May 7, 2009 at 5:26 PM, Ben Saylor anbrs1@uaa.alaska.edu wrote:
Elan Pavlov wrote:
Hi,
I’m using wxpython (with an embedded matplotlib plot) on several
platforms. On my linux box it behaves nicely however the exact same
code when run on a windows machine causes problems.
The main problem seems to be related to mouse events (I assume due to
the non-native support for them on windows). When clicking on a
title-bar or even when moving a mouse out of the main frame the system
freezes and shows a white screen (and gets the windows 'not
responding’ title). This also happens when left-clicking but
(apparently not right-clicking) I’ve tried binding the mouse events
but this doesn’t seem to help (perhaps since the freezing happens
before it reaches my function).
Has anyone had this problem before? Is there some kind of known
solution or does someone have a suggestion on what to do to?
Elan
I have had occasional freezing in Windows at seemingly random times. So far, it seems that switching focus away from the window and back fixes it. I would be interested in hearing suggestions on how to debug GUI freezes. Maybe some kind of watchdog program that could write a stack trace to a log file whenever a freeze is detected?
Ben
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users