def __init__(self): #print '__init__(self)' GUIObject.__init__(self) self.osd_mode = 0 # Draw file info on the image self.zoom = 0 # Image zoom self.zoom_btns = { str(IMAGE_NO_ZOOM): 0, str(IMAGE_ZOOM_GRID1): 1, str(IMAGE_ZOOM_GRID2): 2, str(IMAGE_ZOOM_GRID3): 3, str(IMAGE_ZOOM_GRID4): 4, str(IMAGE_ZOOM_GRID5): 5, str(IMAGE_ZOOM_GRID6): 6, str(IMAGE_ZOOM_GRID7): 7, str(IMAGE_ZOOM_GRID8): 8, str(IMAGE_ZOOM_GRID9): 9 } self.slideshow = True self.app_mode = 'image' self.last_image = (None, None) self.osd = osd.get_singleton() self.signal_registered = False self.free_cache()
def __init__(self): GUIObject.__init__(self) self.menustack = [] self.rows = 0 self.cols = 0 self.visible = 1 self.eventhandler_plugins = None self.event_context = 'menu' self.show_callbacks = [] self.force_page_rebuild = False
def __init__(self): GUIObject.__init__(self) self.menustack = [] self.rows = 0 self.cols = 0 self.visible = 1 self.eventhandler_plugins = None self.event_context = 'menu' self.show_callbacks = [] self.force_page_rebuild = False self.screen_transition = skin.TRANSITION_NONE
def __init__(self): logger.log( 9, 'ImageViewer.__init__()') GUIObject.__init__(self) self.osd_mode = 0 # Draw file info on the image self.zoom = 0 # Image zoom self.zoom_btns = { str(IMAGE_NO_ZOOM):0, str(IMAGE_ZOOM_GRID1):1, str(IMAGE_ZOOM_GRID2):2, str(IMAGE_ZOOM_GRID3):3, str(IMAGE_ZOOM_GRID4):4, str(IMAGE_ZOOM_GRID5):5, str(IMAGE_ZOOM_GRID6):6, str(IMAGE_ZOOM_GRID7):7, str(IMAGE_ZOOM_GRID8):8, str(IMAGE_ZOOM_GRID9):9 } self.slideshow = config.IMAGEVIEWER_AUTOPLAY self.duration = config.IMAGEVIEWER_DURATION self.event_context = 'image' self.last_image = (None, None) self.render = render.get_singleton() self.osd = osd.get_singleton() self.osd_height = self.osd.height self.osd_width = self.osd.width * float(config.OSD_PIXEL_ASPECT) self.timer = None self.blend = None self.__added_app = False self.free_cache()