Example #1
0
    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)
Example #2
0
 def run(self):
     from moment_display import xdisplay
     xdisplay.run_x()
Example #3
0
from moment_display import xdisplay

if __name__ == '__main__':
    xdisplay.run_x()