home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
-
- class Event(object):
-
- def __init__(self, console, input):
- pass
-
-
- def __repr__(self):
- if self.type in ('KeyPress', 'KeyRelease'):
- chr = self.char
- if ord(chr) < ord('A'):
- chr = '?'
-
- s = u"%s char='%s'%d keysym='%s' keycode=%d:%x state=%x keyinfo=%s" % (self.type, chr, ord(self.char), self.keysym, self.keycode, self.keycode, self.state, self.keyinfo)
- elif self.type in ('Motion', 'Button'):
- s = u'%s x=%d y=%d state=%x' % (self.type, self.x, self.y, self.state)
- elif self.type == 'Configure':
- s = u'%s w=%d h=%d' % (self.type, self.width, self.height)
- elif self.type in ('FocusIn', 'FocusOut'):
- s = self.type
- elif self.type == 'Menu':
- s = u'%s state=%x' % (self.type, self.state)
- else:
- s = u'unknown event type'
- return s
-
-
-