예제 #1
0
    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()
예제 #2
0
 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
예제 #3
0
파일: menu.py 프로젝트: adozenlines/freevo1
    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
예제 #4
0
파일: menu.py 프로젝트: spartrekus/freevo1
    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
예제 #5
0
파일: viewer.py 프로젝트: charrea6/freevo1
    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()