enter and event

Ben Bush pythonnew at gmail.com
Sun Dec 4 05:16:49 EST 2005


When I read python Manuel, I got confused by the following code:
def turnRed(self, event):
        event.widget["activeforeground"] = "red"

    self.button.bind("<Enter>", self.turnRed)
I can not understand it.



More information about the Python-list mailing list