#13 Button.status after mouse click is IDLE instead of OVERROLL

v0.93
open
nobody
5
2003-05-04
2003-05-04
Otto Bommer
No

Hi,

when I press a button with the mouse and release the
mouse afterwards the Button.status is set to
Button.IDLE (see below).
I think it should be set to Button.OVERROLL, as the
mouse is still overhead the button.

Otto

file pyui.widgets.py:
-------------------------------------------------------------------
def _pyuiMouseUp(self, event):

if self.capture:

self.capture = 0

if self.status == Button.DOWN and self.enabled:

self.postEvent(pyui.locals.CLICKED)

self.status = Button.IDLE

self.setDirty()

return 1

return 0

-------------------------------------------------------------------

Discussion


Log in to post a comment.