def create_bar(self): self.bar_surface = create_surface( self.window_manager.main_window.get_width(), self.BAR_SIZE) self.window_manager.add_redraw_element(RedrawSurface( lambda : self.render_bar(), 0, self.window_manager.main_window.get_height() - self.BAR_SIZE) )
def create_world_map(self): self.map_sf = create_surface( self.window_manager.main_window.get_width(), self.window_manager.main_window.get_height() - self.BAR_SIZE) self.window_manager.add_redraw_element(RedrawSurface( lambda : self.render_global_map(), 0, 0) )