Merge branch 'main' of https://gitea.msb24.duckdns.org/musabe24/t2000_gui
This commit is contained in:
8
main.py
8
main.py
@@ -31,20 +31,20 @@ class T2000ErdemGUI:
|
|||||||
# Eingabefeld für direkte Drehmomentvorgabe
|
# Eingabefeld für direkte Drehmomentvorgabe
|
||||||
tk.Label(self.root, text="Soll-Drehmoment in Nm:").place(x=10, y=220)
|
tk.Label(self.root, text="Soll-Drehmoment in Nm:").place(x=10, y=220)
|
||||||
self.torque_value = tk.DoubleVar()
|
self.torque_value = tk.DoubleVar()
|
||||||
tk.Entry(self.root, textvariable=self.torque_value).place(x=170, y=220)
|
tk.Entry(self.root, textvariable=self.torque_value).place(x=200, y=220)
|
||||||
|
|
||||||
# Anzeige für aktuellen Drehwinkel und Drehmoment
|
# Anzeige für aktuellen Drehwinkel und Drehmoment
|
||||||
tk.Label(self.root, text="Aktueller Drehwinkel:").place(x=10, y=260)
|
tk.Label(self.root, text="Aktueller Drehwinkel:").place(x=10, y=260)
|
||||||
self.current_angle = tk.Label(self.root, text="0" + "°")
|
self.current_angle = tk.Label(self.root, text="0" + "°")
|
||||||
self.current_angle.place(x=170, y=260)
|
self.current_angle.place(x=200, y=260)
|
||||||
|
|
||||||
tk.Label(self.root, text="Aktuelles Drehmoment:").place(x=10, y=300)
|
tk.Label(self.root, text="Aktuelles Drehmoment:").place(x=10, y=300)
|
||||||
self.current_torque = tk.Label(self.root, text="0" + " Nm")
|
self.current_torque = tk.Label(self.root, text="0" + " Nm")
|
||||||
self.current_torque.place(x=170, y=300)
|
self.current_torque.place(x=200, y=300)
|
||||||
|
|
||||||
# Button zum Schließen der Anwendung
|
# Button zum Schließen der Anwendung
|
||||||
self.close_button = tk.Button(self.root, text="Beenden", command=self.close_application)
|
self.close_button = tk.Button(self.root, text="Beenden", command=self.close_application)
|
||||||
self.close_button.place(x=350, y=560)
|
self.close_button.place(x=300, y=560)
|
||||||
|
|
||||||
# Button zur Erstellung des Diagramms
|
# Button zur Erstellung des Diagramms
|
||||||
self.plot_button = tk.Button(self.root, text="Eingaben übernehmen", command=self.on_plot_button_click)
|
self.plot_button = tk.Button(self.root, text="Eingaben übernehmen", command=self.on_plot_button_click)
|
||||||
|
|||||||
Reference in New Issue
Block a user