problems with events

fatima cabot thisismydo at gmail.com
Fri Mar 2 00:54:55 PST 2007


Hi. I am a Computer Science student doing her final year project.

It consists on an GUI written in python. I chose wxpython as my graphic
library, but I am experimenting many problems handling events. I want to
display some bitmapbuttons which are centered on the screen after the user
presses one button. I have set the 'hover' method for every button in order
for it to display a differente image when mouse is over.I have also written
code to allow the user to see the x,y coordinates when he presses the panel
and there is an option in the menu which also changes the image in the
bitmapbutton

The problems are:

.-Not every time the user presses the panel, coordinates are displayed.
Sometimes the value is displayed, other times the value keep on being the
former one
.-When the user presses the button, bitmapbuttons are not centered, they
just move when the user selects the other option in the menu (then both
changes are applied to the bitmapbuttons: movement and image changed)
.-The hover image is not displayed (I have checked it does in Windows, but
not in Ubuntu)
.-Even when the event seems to be well handled, I feel reaction time is slow
(my pc is a laptop which has 512 Mb of RAM and an Intel Centrino) and my
application is a bit time-critical (real-time simulation)

I have tried different combinations of event.skip() and processevent, but it
doesnt work. I need a solution as soon as possible, because if i dont manage
to fix this, I will have to change to gtk or other (project deadline puts me
under pressure)

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200703=
02/28f4afee/attachment.htm


More information about the wxpython-users mailing list