Dischi:
I am writing a DVD burning plugin, as DVD's can take a hell of a long time
time write I've decided to use OSD_MESSAGE event to writea completioin
notice to screen. What I have found is the current code write to screen
fine, but it is then wiped from scrren really fast.. it looks like main.py
is calling redraw an extra time.. I need advice on whether this is a bug in
my code, and how to fix or a bug in freevo..
Here is my relavent code:
class main_burn_thread(threading.Thread):
def __init__(self, token=None):
threading.Thread.__init__(self)
self.running = 0
self.status_count = 0
self.status = ""
def run(self, arg=None, menuw=None, token=None):
"""
copy files into a CD
"""
self.burning = True
print "start buring (thread)"
self.status = "Burning DVD"
#start burning here (popen or something similar)
rc.register(self.burn_status, False, 1000)
self.status = "Burn Finished"
return
def burn_stop(self, arg=None, menuw=None, token=None):
"""
stop above process haha maybe one day..
"""
self.burning = False
def burn_status(self):
"""
returns current burn status
"""
print "burn status ran!"
self.status_count += 1
if self.status_count == 5:
self.status_count = 0
self.burn_stop()
else:
pass
try:
if self.burning:
rc.post_event(Event(OSD_MESSAGE, arg=_('Testing Status Call
: Status Running')))
rc.register(self.burn_status, False, 1000)
else:
rc.post_event(Event(OSD_MESSAGE, arg=_('Testing Status Call
: Status Not Running')))
return self.burning
except:
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel