def __init__(self, width, height): Panel.__init__(self, (0, 0), (800, 30)) self.rect.midtop = (width / 2 , 0) self.background_color = pygame.Color("#00000000") self.border_color = pygame.Color("#00000000") self.text = "" event_system.on(self.on_show_notification, USEREVENT, 'show_notification') event_system.on(self.on_hide_notification, USEREVENT, 'hide_notification')
def __init__(self, width, height): Panel.__init__(self, (0, 0), (250, 245)) self.rect.midright = (width - 10, height / 2)