Exemplo n.º 1
0
 def __init__(self, type=None, button=0, x=0, y=0, _raw=None, _owned=0):
     if _raw is None:
         if type is None:
             raise ValueError, "must specify a type"
         # FIXME: check type for validity as XINE_EVENT_INPUT type
         type = constwrap.XINE_EVENT(type)
         _raw = libxine.px_make_input_event(type, button, x, y)
         # This is a PyBuffer and will auto-free itself...
         _owned = 0
     Event.__init__(self, _raw, _owned)
Exemplo n.º 2
0
 def setUp(self):
     raw = libxine.px_make_input_event(1, 2, 3, 4)
     self.e = cstruct.xine_event_t(raw)