RSS feed
[root]
/
mouse
/
c04
/
code
/
TI Python
/
scripts
/
document
login:
password:
title search:
Search this site
Enter your search terms
Web
www.carfield.com.hk
Submit search form
Prev
Next
Wed Dec 26 16:00:00 GMT 2001
MouseAction
#: c04:mouse:MouseAction.py class MouseAction: def __init__(self, action): self.action = action def __str__(self): return self.action def __cmp__(self, other): return cmp(self.action, other.action) # Necessary when __cmp__ or __eq__ is defined # in order to make this class usable as a # dictionary key: def __hash__(self): return hash(self.action) # Static fields; an enumeration of instances: MouseAction.appears = MouseAction("mouse appears") MouseAction.runsAway = MouseAction("mouse runs away") MouseAction.enters = MouseAction("mouse enters trap") MouseAction.escapes = MouseAction("mouse escapes") MouseAction.trapped = MouseAction("mouse trapped") MouseAction.removed = MouseAction("mouse removed") #:~
(google search)
(amazon search)
1
2
3
second
download zip of files only
Prev
Next