From 0dd59da564a8bc09056373e4f16b0050f940ec4f Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 30 May 2019 16:15:45 +0200 Subject: [PATCH] Revert "t" This reverts commit 2961d718e153dc7b1a516ec171f2c185daeea580. --- serial.py | 7 ------- test.csv | 1 - ui.py | 26 -------------------------- 3 files changed, 34 deletions(-) delete mode 100644 serial.py delete mode 100644 test.csv diff --git a/serial.py b/serial.py deleted file mode 100644 index cf7edfb..0000000 --- a/serial.py +++ /dev/null @@ -1,7 +0,0 @@ -'''Serialisation of data''' -import csv - -with open('test.csv', newline='') as csvfile: - spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|') - for row in spamreader: - print(', '.join(row)) diff --git a/test.csv b/test.csv deleted file mode 100644 index fba29af..0000000 --- a/test.csv +++ /dev/null @@ -1 +0,0 @@ -Peter, Hans, Otto \ No newline at end of file diff --git a/ui.py b/ui.py index 6110495..3aa1787 100644 --- a/ui.py +++ b/ui.py @@ -1,27 +1 @@ import tkinter as tk - - -class Application(tk.Frame): - def __init__(self, master=None): - super().__init__(master) - self.master = master - self.pack() - self.create_widgets() - - def create_widgets(self): - self.hi_there = tk.Button(self) - self.hi_there["text"] = "Hello World\n(click me)" - self.hi_there["command"] = self.say_hi - self.hi_there.pack(side="top") - - self.quit = tk.Button(self, text="QUIT", fg="red", - command=self.master.destroy) - self.quit.pack(side="bottom") - - def say_hi(self): - print("hi there, everyone!") - - -root = tk.Tk() -app = Application(master=root) -app.mainloop()