Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def getScreenSize():
    global screenWidth, screenHeight
    if screenWidth > 0 and screenHeight > 0:
        return (screenWidth, screenHeight)
    try:
        output = subprocess.check_output(['fbset'])
        p = re.compile('mode "(?P\d+)x(?P\d+)"')
        sw, sh = p.search(output).groups()
        screenWidth = float(sw)
        screenHeight = float(sh)
        return (screenWidth, screenHeight)
    except:
        logging.exception("Exception catched")
    return (0, 0)
        


src/v/i/VideoPI-HEAD/player.py   VideoPI(Download)
from Queue import Queue
from threading import Thread, RLock
from Helper import getScreenSize, newFifo
from Constants import websites
from webparser import Video
    def __init__(self, video):
        self.video = video
        screenWidth, screenHeight = getScreenSize()
        if sys.platform == 'darwin':
            self.player = MPlayerX(self.video, screenWidth, screenHeight)