pyosd question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eugene Antimirov

    #1

    pyosd question

    Small script used to work, by last week I noticed that it simply hangs
    up. Can someone run this code on his own python and tell me about
    results? Help me please.

    import time
    import pyosd
    import re

    default_font="-adobe-helvetica-medium-r-*-*-24-*"

    interval = 2
    temp_led_number = pyosd.osd(defau lt_font, colour='#038b06 ',

    timeout=1,pos=p yosd.POS_BOT,of fset=40,shadow= 1,align=pyosd.A LIGN_CENTER)

    def display():
    # Here it will stay forever
    temp_led_number .display('123', pyosd.TYPE_STRI NG)
    # Never reach this line :(
    print "Yeah!"

    while 1:
    display()
    time.sleep(inte rval)


    --
    Sincerely,
    Eugene Antimirov
    PortaOne, Inc., SIP Engineer
    support@portaon e.com

Working...