forked from federico-terzi/gesture-keyboard
/
window.py
37 lines (25 loc) · 794 Bytes
/
window.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from Tkinter import *
'''
Author: Federico Terzi
This module just display a basic window to show the output of the "start.py" module
This is a work in progress....
'''
class TextWindow:
def __init__(self, master):
self.root = master
frame = Frame(master)
frame.pack()
master.title("Gesture Keyboard Output")
self.label = Label(master, text="Connecting...", font=("Helvetica", 80))
self.label.configure(wraplength=600)
self.label.pack()
self.update_clock()
def update_clock(self):
input_file = open("output.txt")
self.label.configure(text=input_file.read())
input_file.close()
self.root.after(100, self.update_clock)
root = Tk()
app = TextWindow(root)
root.mainloop()
root.destroy()