def __init__(self, parent=None): Image.__init__(self, parent) CaptureObject.__init__(self) self.blind = False self.useGlobalCapture = True self.bind('Mouse Enter', self.onChangeCursor, True) self.bind('Mouse Leave', self.onChangeCursor, False)
def __init__(self, image): Image.__init__(self) self.surface = image.surface.copy() self.preprocess_image() self.init_image(self.surface, scaled_up=True)
def __init__(self, parent = None): Image.__init__(self, parent) CaptureObject.__init__(self) self.blind = False self.useGlobalCapture = True self.bind('Mouse Enter', self.onChangeCursor, True) self.bind('Mouse Leave', self.onChangeCursor, False)
def __init__(self, tile_id, animated_frame=False): Image.__init__(self) self.tile_id = tile_id self.animated_frame = animated_frame self.load_tile_image()
def __init__(self,x,y,image,folder=''): Image.__init__(self,x,y,image,folder) self.spawn_x = x self.spawn_y = y self.xvel = 0 self.yvel = 0 self.gravity = Gravity(5)
def __init__(self, image, color, y): Image.__init__(self, 40, y, 'status_bar.png', folder='status') self.value = pygame.Surface((2, 21)) self.value.fill(color) self.value = self.value.convert() self.symbol = load_image(image + '.png', folder='status')[0] #self.status_bar_rect = self.box.get_rect() self.current = 100 self.maximum = 100
def __init__(self,image,color,y): Image.__init__(self,40,y,'status_bar.png',folder = 'status') self.value = pygame.Surface((2,21)) self.value.fill(color) self.value = self.value.convert() self.symbol = load_image(image + '.png',folder = 'status')[0] #self.status_bar_rect = self.box.get_rect() self.current = 100 self.maximum = 100
def __init__(self, path): self.isTransparent = False Image.__init__(self, path)
def __init__(self, path): self.name = "" Image.__init__(path)