diff bin/musictime @ 1942:82e98aa4d159

reformatting and typing Ignore-this: 208dd84c52c544998142de6622fced2c
author drewp@bigasterisk.com
date Tue, 04 Jun 2019 17:17:55 +0000
parents cce016abe31e
children
line wrap: on
line diff
--- a/bin/musictime	Tue Jun 04 16:24:12 2019 +0000
+++ b/bin/musictime	Tue Jun 04 17:17:55 2019 +0000
@@ -3,14 +3,13 @@
 import light9.networking
 
 import tkinter as tk
-import time
-import json
-from twisted.internet import reactor, tksupport, task, defer
+from twisted.internet import reactor, tksupport, task
 
 from light9.ascoltami.musictime_client import MusicTime
 
 mt = MusicTime()
 
+
 class MusicTimeTk(tk.Frame, MusicTime):
 
     def __init__(self, master, url):
@@ -35,11 +34,12 @@
         self.timelabel.bind('<1>', print_time)
         self.timelabel.focus()
         task.LoopingCall(self.update_time).start(.1)
-        
+
     def update_time(self):
         t = self.getLatest().get('t', 0)
         self.timevar.set(t)
 
+
 if __name__ == "__main__":
     from optparse import OptionParser
     parser = OptionParser()
@@ -51,4 +51,3 @@
     MusicTimeTk(root, options.url).pack(expand=1, fill='both')
     tksupport.install(root, ms=20)
     reactor.run()
-