diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-09-21 12:07:31 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-09-21 12:07:31 +0200 |
commit | 7132f5b74e74597fea4e358381e9e102bba7c8ed (patch) | |
tree | 6c12cfccfe4185d023319223f89a8126a720bfd5 /test/run.py | |
parent | ec0e31d89baf7cb6c2fb30ead081655886478609 (diff) | |
download | uca-7132f5b74e74597fea4e358381e9e102bba7c8ed.tar.gz uca-7132f5b74e74597fea4e358381e9e102bba7c8ed.tar.bz2 uca-7132f5b74e74597fea4e358381e9e102bba7c8ed.tar.xz uca-7132f5b74e74597fea4e358381e9e102bba7c8ed.zip |
Remove obsolete test tools
Diffstat (limited to 'test/run.py')
-rwxr-xr-x | test/run.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/run.py b/test/run.py deleted file mode 100755 index 7982617..0000000 --- a/test/run.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python - -import Tkinter -import threading -import subprocess - -class App(object): - def __init__(self, parent): - self.parent = parent - self.canvas = Tkinter.Canvas(root, width=300, height=300) - self.canvas.pack() - self.rect = self.canvas.create_rectangle(0, 0, 300, 300, fill='yellow') - self.run_button = Tkinter.Button(parent, text='Start grabbing', command=self.run_click) - self.run_button.pack() - - def run_grab(self): - proc = subprocess.Popen(['./grab']) - proc.wait() - self.canvas.itemconfig(self.rect, fill='red') - self.run_button.config(state=Tkinter.NORMAL, text='Close', command=self.parent.destroy) - - def run_click(self): - self.canvas.itemconfig(self.rect, fill='green') - self.run_button.config(state=Tkinter.DISABLED) - thread = threading.Thread(None, self.run_grab) - thread.start() - -if __name__ == '__main__': - root = Tkinter.Tk() - app = App(root) - root.mainloop() |