From: Kevin A. <al...@se...> - 2001-08-20 22:46:41
|
I've enabled basic mouse events for StaticText, StaticLine and Image. You can move and resize these widgets with the resourceEditor now. You can also write handlers for the widgets, just like any other widget. They do not receive the mouseClick. The events they receive are: mouseDown mouseUp mouseDoubleClick mouseMiddleDown mouseMiddleUp mouseMiddleDoubleClick mouseContextDown mouseContextUp mouseContextDoubleClick mouseLeave mouseEnter mouseMove mouseDrag They currently have gainFocus and loseFocus defined, but it doesn't seem to work, nor do I think it is supposed to. If it causes problems the way things are currently defined in the bindings, I'll go in and fix it. You can always check spec.py if you want to see the attributes and events for a given widget. On another note, I've also added getPosition, setPosition, getSize, and setSize methods to Background for adjusting the window position and size (width, height). ka |