def __init__(self): DisposableTile.__init__(self, 3) f = self.getFrame() b = Block('1') f.add(b, 7, 7) self.__block = b
def __init__(self): DisposableTile.__init__(self, 10) self.__random = Random() widget = Block("010 111 010") self.getFrame().add(widget, 0, 0) self.__widget = widget # Add the 'blow-up' on top - but hide it. bang = Block(8, 8).fill(LampState.ON) self.getFrame().add(bang, 0, 0).hide(bang) self.__bang = bang
def __init__(self): DisposableTile.__init__(self, 10) self.__random = Random() widget = Block('010 111 010') self.getFrame().add(widget, 0, 0) self.__widget = widget # Add the 'blow-up' on top - but hide it. bang = Block(8, 8).fill(LampState.ON) self.getFrame().add(bang, 0, 0).hide(bang) self.__bang = bang