예제 #1
0
    def __init__(self, is_pressed=False, on_press=None):
        Controller.__init__(self)

        self._is_pressed = is_pressed
        self._on_press = lambda y: y
        if on_press is not None:
            self._on_press = on_press
예제 #2
0
 def __init__(self,width=0,height=0,path=None,alternative=None,outline=None,hover=None,hoveringType=None,arguments=None,showHighlight=False,texture=None):
     Graphic.__init__(self,path=path, width=width,height=height, alternative=alternative,outline=outline,texture=texture)
     Controller.__init__(self)
     self.hover=hover
     self.args=arguments
     self.path=path
     self.showHighlight=showHighlight
     self.hoveringType = hoveringType
예제 #3
0
    def __init__(self, value=0.0, min_value=0.0, max_value=1.0, on_set=None):
        assert min_value <= value <= max_value
        Controller.__init__(self)

        self._min_value = min_value
        self._max_value = max_value
        self._value = value

        # a callback when the value is set.
        if on_set is None:
            self._on_set = lambda x: x
        else:
            self._on_set = on_set
예제 #4
0
 def __init__(self, name, parent):
     Controller.__init__(self)
     self._option_name = name
     self._selector = parent
예제 #5
0
파일: mixins.py 프로젝트: JStation/omphalos
 def __init__(self):
     Viewer.__init__(self)
     Controller.__init__(self)
     self._highlight = None
     self._highlight_flag = False
예제 #6
0
파일: mixins.py 프로젝트: JStation/omphalos
 def __init__(self):
     Controller.__init__(self)
     Viewer.__init__(self)
     self._focus = None
     self._focus_flag = False
예제 #7
0
 def __init__(self):
     Viewer.__init__(self)
     Controller.__init__(self)
     self._highlight = None
     self._highlight_flag = False
예제 #8
0
 def __init__(self):
     Controller.__init__(self)
     Viewer.__init__(self)
     self._focus = None
     self._focus_flag = False