def __init__(self, label="", is_pressed=False, on_press=None):
        TwoStateController.__init__(self, is_pressed=is_pressed, on_press=on_press)
        Viewer.__init__(self)

        self.label = label

        # graphics
        self._label = None
        self._button = None
    def __init__(self, label="", is_pressed=False, on_press=None):
        TwoStateController.__init__(self,
                                    is_pressed=is_pressed,
                                    on_press=on_press)
        Viewer.__init__(self)

        self.label = label

        # graphics
        self._label = None
        self._button = None
Beispiel #3
0
 def __init__(self, text="", bold=False, italic=False,
              font_name=None, font_size=None, color=None, path=None):
     Viewer.__init__(self)
     self.text = text
     self.bold = bold
     self.italic = italic
     self.font_name = font_name
     self.font_size = font_size
     self.color = color
     self.path = path
     self.label = None
 def __init__(self, min_width=0, min_height=0):
     Viewer.__init__(self)
     self._min_width, self._min_height = min_width, min_height
 def __init__(self):
     Viewer.__init__(self)
     Controller.__init__(self)
     self._highlight = None
     self._highlight_flag = False
 def __init__(self):
     Controller.__init__(self)
     Viewer.__init__(self)
     self._focus = None
     self._focus_flag = False
Beispiel #7
0
 def __init__(self, min_width=0, min_height=0):
     Viewer.__init__(self)
     self._min_width, self._min_height = min_width, min_height
Beispiel #8
0
 def __init__(self, path, is_expandable=False):
     Viewer.__init__(self)
     self._path = path
     self._expandable = is_expandable
     self._graphic = None
     self._min_width = self._min_height = 0