def handle(self, *args, **options): if not options['disable_threads']: rt = feed.RefreshFeedThread() rt.start() dt = feed.DownloadThread() dt.start() toolkit = options['toolkit'] print "Window toolkit: {}".format(toolkit) if toolkit == 'gtk': from moment_display import xgtk xgtk.run_x() elif toolkit == 'wxPython': from moment_display import xdisplay xdisplay.run_x() elif toolkit == 'pygame': from moment_display import pygame_display pygame_display.run(**options) else: print "Unknown toolkit type: {}".format(toolkit)
def run(self): from moment_display import xdisplay xdisplay.run_x()
from moment_display import xdisplay if __name__ == '__main__': xdisplay.run_x()