forked from zietzm/Helmholtz_Test_Bench
changed all print() to ui_print()
This commit is contained in:
+1
-14
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user