changed all print() to ui_print()

This commit is contained in:
Martin Zietz
2021-01-27 14:11:30 +01:00
parent 4c7b9edd94
commit 89a8a59377
3 changed files with 72 additions and 72 deletions
+1 -14
View File
@@ -27,7 +27,7 @@ class HelmholtzGUI(Tk):
self.frames = {} # dictionary for storing all pages
for F in [TestFrame, ManualMode]:
for F in [ManualMode]:
frame = F(mainArea, self)
self.frames[F] = frame
frame.grid(row=0, column=0, sticky="nsew")
@@ -65,19 +65,6 @@ class TopMenu:
window.show_frame(ManualMode)
class TestFrame(Frame): # ToDo: remove
def __init__(self, parent, controller):
Frame.__init__(self, parent)
one = Label(self, text="One", bg="red")
one.pack(fill=X)
two = Label(self, text="Two", bg="blue")
two.pack()
button = ttk.Button(self, text="Print stuff", command=lambda: func.ui_print("Hello"))
button.pack()
class ManualMode(Frame):
# ToDo: Display maximum values
# ToDo: Add option to cancel ambient field