pyosd question
Eugene Antimirov
Eugene.Antimirov at portaone.com
Mon Mar 19 13:33:03 EDT 2007
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(default_font, colour='#038b06',
timeout=1,pos=pyosd.POS_BOT,offset=40,shadow=1,align=pyosd.ALIGN_CENTER)
def display():
# Here it will stay forever
temp_led_number.display('123', pyosd.TYPE_STRING)
# Never reach this line :(
print "Yeah!"
while 1:
display()
time.sleep(interval)
--
Sincerely,
Eugene Antimirov
PortaOne, Inc., SIP Engineer
support at portaone.com
More information about the Python-list
mailing list