def __init__ (self): Accessible.__init__ (self) BaseObject.__init__ (self) pygame.sprite.Sprite.__init__ (self) self._x = 0 self._y = 0 self._width = 0 # Guaranteed sizes for the widget, see also self._height = 0 # the size attribute and set_size () method. self._image = None self._rect = None self._eventarea = None self._style = None self._index = 0 self._state = STATE_NORMAL self._focus = False self._sensitive = True self._controls = [] self.parent = None self._newdepth = 0 self._depth = 0 self._dirty = True # Signals, the widget listens to by default self._signals[SIG_FOCUS] = []
def __init__ (self): Accessible.__init__ (self) # Used for drawing. self._rect = None self._image = None self._style = None self._selected = False self._collection = None # TODO: implement list checks. self.dirty = True