Exemple #1
0
 def __init__(self):
     # set up the values of interest and their refs
     self._width = 0.0
     self._width_ref = Ref.getattr(self, "_width")
     self._height = 0.0
     self._height_ref = Ref.getattr(self, "_height")
     self._last_flip = event_time(0.0, 0.0)
     self._last_flip_ref = Ref.getattr(self, "_last_flip")
     self._mouse_pos = (0, 0)
     self._mouse_pos_ref = Ref.getattr(self, "_mouse_pos")
     self._mouse_button = None
     self._mouse_button_ref = Ref.getattr(self, "_mouse_button")
     self._keys_down = set()
     self._issued_key_refs = weakref.WeakValueDictionary()
Exemple #2
0
 def __init__(self):
     # set up the values of interest and their refs
     self._width = 0.0
     self._width_ref = Ref.getattr(self, "_width")
     self._height = 0.0
     self._height_ref = Ref.getattr(self, "_height")
     self._last_flip = event_time(0.0, 0.0)
     self._last_flip_ref = Ref.getattr(self, "_last_flip")
     self._mouse_pos = (0, 0)
     self._mouse_pos_ref = Ref.getattr(self, "_mouse_pos")
     self._mouse_button = None
     self._mouse_button_ref = Ref.getattr(self, "_mouse_button")
     self._keys_down = set()
     self._issued_key_refs = weakref.WeakValueDictionary()
Exemple #3
0
 def __init__(self, exp, fullscreen=None, size=None):
     super(ExpApp, self).__init__()
     #if size is not None:
     #    Window.size=size
     #if fullscreen is not None:
     #    Window.fullscreen = fullscreen
     self.exp = exp
     self.callbacks = {}
     self.pending_flip_time = None
     self.video_queue = []
     self.keys_down = set()
     self.issued_key_refs = weakref.WeakValueDictionary()
     self.mouse_pos = (None, None)
     self.mouse_pos_ref = Ref.getattr(self, "mouse_pos")
     self.mouse_button = None
     self.mouse_button_ref = Ref.getattr(self, "mouse_button")
     self.width_ref = Ref.getattr(Window, "width")
     self.height_ref = Ref.getattr(Window, "height")
     self.__screen = Screen(self)
Exemple #4
0
 def __init__(self, exp, fullscreen=None, size=None):
     super(ExpApp, self).__init__()
     #if size is not None:
     #    Window.size=size
     #if fullscreen is not None:
     #    Window.fullscreen = fullscreen
     self.exp = exp
     self.callbacks = {}
     self.pending_flip_time = None
     self.video_queue = []
     self.keys_down = set()
     self.issued_key_refs = weakref.WeakValueDictionary()
     self.mouse_pos = (None, None)
     self.mouse_pos_ref = Ref.getattr(self, "mouse_pos")
     self.mouse_button = None
     self.mouse_button_ref = Ref.getattr(self, "mouse_button")
     self.width_ref = Ref.getattr(Window, "width")
     self.height_ref = Ref.getattr(Window, "height")
     self.__screen = Screen(self)
Exemple #5
0
 def __init__(self, exp):
     super(ExpApp, self).__init__()
     self.exp = exp
     self.callbacks = {}
     self.pending_flip_time = None
     self.video_queue = []
     self.keys_down = set()
     self.issued_key_refs = weakref.WeakValueDictionary()
     self.mouse_pos = (None, None)
     self.mouse_pos_ref = Ref.getattr(self, "mouse_pos")
     self.mouse_button = None
     self.mouse_button_ref = Ref.getattr(self, "mouse_button")
     self.width_ref = Ref.getattr(Window, "width")
     self.height_ref = Ref.getattr(Window, "height")
     self.last_flip = event_time(0.0, 0.0)
     self.last_flip_ref = Ref.getattr(self, "last_flip")
     self.force_blocking_flip = False
     self.force_nonblocking_flip = False
     self.__screen = Screen(self)
     self.flip_interval = 1/60.  # default to 60 Hz
Exemple #6
0
 def __init__(self):
     self._scale_factor = 1.0
     self._scale_factor_ref = Ref.getattr(self, "_scale_factor")
     self.scale_down = False
     self.scale_up = False
     self._scale_box = None
Exemple #7
0
 def __init__(self):
     self._scale_factor = 1.0
     self._scale_factor_ref = Ref.getattr(self, "_scale_factor")
     self.scale_down = False
     self.scale_up = False
     self._scale_box = None