示例#1
0
 def __init__(self, type, pos=None, button=None, buttons=None, 
              modifiers=None, delta=None, last_event=None, press_event=None,
              **kwds):
     Event.__init__(self, type, **kwds)
     self._pos = (0,0) if (pos is None) else (pos[0], pos[1])
     self._button = int(button) if (button is not None) else 0
     self._buttons = [] if (buttons is None) else buttons
     self._modifiers = tuple( modifiers or () )
     self._delta = (0.0,0.0) if (delta is None) else (delta[0], delta[1])
     self._last_event = last_event
     self._press_event = press_event
示例#2
0
 def __init__(self,
              type,
              pos=None,
              button=None,
              buttons=None,
              modifiers=None,
              delta=None,
              last_event=None,
              press_event=None,
              **kwds):
     Event.__init__(self, type, **kwds)
     self._pos = (0, 0) if (pos is None) else (pos[0], pos[1])
     self._button = int(button) if (button is not None) else 0
     self._buttons = [] if (buttons is None) else buttons
     self._modifiers = tuple(modifiers or ())
     self._delta = (0.0, 0.0) if (delta is None) else (delta[0], delta[1])
     self._last_event = last_event
     self._press_event = press_event
示例#3
0
 def __init__(self, **kwargs):
     kwargs['type'] = 'typed_event'
     Event.__init__(self, **kwargs)
示例#4
0
 def __init__(self, **kwds):
     kwds['type'] = 'typed_event'
     Event.__init__(self, **kwds)
示例#5
0
文件: __init__.py 项目: ds604/vispy
 def __init__(self, changes):
     Event.__init__(self, type='config_change')
     self.changes = changes
示例#6
0
 def __init__(self, type, region=None, **kwds):
     Event.__init__(self, type, **kwds)
     self._region = region
示例#7
0
 def __init__(self, type, size=None, **kwds):
     Event.__init__(self, type, **kwds)
     self._size = tuple(size)
示例#8
0
 def __init__(self, type, key=None, text='', modifiers=None, **kwds):
     Event.__init__(self, type, **kwds)
     self._key = key
     self._text = text
     self._modifiers = tuple(modifiers or ())
示例#9
0
 def __init__(self, changes):
     Event.__init__(self, type='config_change')
     self.changes = changes
示例#10
0
 def __init__(self, **kwds):
     kwds["type"] = "typed_event"
     Event.__init__(self, **kwds)
示例#11
0
 def __init__(self, type, region=None, **kwds):
     Event.__init__(self, type, **kwds)
     self._region = region
示例#12
0
 def __init__(self, type, size=None, **kwds):
     Event.__init__(self, type, **kwds)
     self._size = tuple(size)
示例#13
0
 def __init__(self, type, key=None, text='', modifiers=None, **kwds):
     Event.__init__(self, type, **kwds)
     self._key = key
     self._text = text
     self._modifiers = tuple( modifiers or () )