On 26/04/13 15:45, wang yong wrote:
Hi tutors,
I am a newb. Please bear with my simple question. Please refer to the code
as following. The question is: what is the special meaning of 'e' variable
in the class of 'Button'.
'e' is the argument to the dragEnterEvent and dropEvent methods. You will
need to read the PyQt4 documentation to find out what sort of argument
those two methods receive, but my guess is that they are GUI events.
The second one is how function 'dragEnterEvent'
and 'dropEvent' got executed with calling from class 'example'.
The PyQt4 library automatically calls them when the user drags something
onto the button with the mouse.
--
Steven
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor