Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 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
Exemplo n.º 4
0
 def delete(self):
     TwoStateController.delete(self)
     Viewer.delete(self)
Exemplo n.º 5
0
 def __init__(self, min_width=0, min_height=0):
     Viewer.__init__(self)
     self._min_width, self._min_height = min_width, min_height
Exemplo n.º 6
0
 def delete(self):
     for item in self._content:
         item.delete()
     self._content = []
     Viewer.delete(self)
Exemplo n.º 7
0
 def set_manager(self, manager):
     Viewer.set_manager(self, manager)
     for item in self._content:
         item.set_manager(self._manager)
         item.parent = self
Exemplo n.º 8
0
 def __init__(self):
     Viewer.__init__(self)
     Controller.__init__(self)
     self._highlight = None
     self._highlight_flag = False
Exemplo n.º 9
0
 def __init__(self):
     Controller.__init__(self)
     Viewer.__init__(self)
     self._focus = None
     self._focus_flag = False
Exemplo n.º 10
0
 def delete(self):
     TwoStateController.delete(self)
     Viewer.delete(self)
Exemplo n.º 11
0
 def __init__(self, min_width=0, min_height=0):
     Viewer.__init__(self)
     self._min_width, self._min_height = min_width, min_height
Exemplo n.º 12
0
 def delete(self):
     for item in self._content:
         item.delete()
     self._content = []
     Viewer.delete(self)
Exemplo n.º 13
0
 def set_manager(self, manager):
     Viewer.set_manager(self, manager)
     for item in self._content:
         item.set_manager(self._manager)
         item.parent = self
Exemplo n.º 14
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