|
@@ -2,24 +2,14 @@
|
|
# License: http://creativecommons.org/licenses/by-sa/3.0/
|
|
# License: http://creativecommons.org/licenses/by-sa/3.0/
|
|
|
|
|
|
from analogPressure.sdpArray import SdpArray
|
|
from analogPressure.sdpArray import SdpArray
|
|
-from digitalPressure.spd610Array import Spd610Array
|
|
|
|
|
|
+from digitalPressure.sdp610Array import Spd610Array
|
|
from wirelessLoadCell.loadCells import LoadCells
|
|
from wirelessLoadCell.loadCells import LoadCells
|
|
from ui import *
|
|
from ui import *
|
|
|
|
|
|
-import matplotlib
|
|
|
|
-from matplotlib.backends.backend_tkagg import (
|
|
|
|
- FigureCanvasTkAgg, NavigationToolbar2Tk)
|
|
|
|
-from matplotlib.figure import Figure
|
|
|
|
-import matplotlib.animation as animation
|
|
|
|
-from matplotlib import style
|
|
|
|
-
|
|
|
|
import tkinter as tk
|
|
import tkinter as tk
|
|
import tk_tools
|
|
import tk_tools
|
|
from time import *
|
|
from time import *
|
|
|
|
|
|
-LARGE_FONT= ("Verdana", 12)
|
|
|
|
-style.use("ggplot")
|
|
|
|
-
|
|
|
|
|
|
|
|
class Main(tk.Tk):
|
|
class Main(tk.Tk):
|
|
def __init__(self, *args, **kwargs):
|
|
def __init__(self, *args, **kwargs):
|
|
@@ -42,6 +32,26 @@ class Main(tk.Tk):
|
|
|
|
|
|
tk.Tk.config(self, menu=menubar)
|
|
tk.Tk.config(self, menu=menubar)
|
|
|
|
|
|
|
|
+ label = tk.Label(self, text="Bedienelemente", font=LARGE_FONT)
|
|
|
|
+ label.pack(pady=10,padx=10)
|
|
|
|
+ # top menu
|
|
|
|
+ top = tk.Frame(self, borderwidth=2, relief="solid")
|
|
|
|
+ button1 = tk.Button(top, text="Bedienelemente", command=lambda: self.show_frame(Page_1))
|
|
|
|
+ button1.pack(side=tk.LEFT)
|
|
|
|
+
|
|
|
|
+ button2 = tk.Button(top, text="Kräfte", command=lambda: self.show_frame(Page_2))
|
|
|
|
+ button2.pack(side=tk.LEFT)
|
|
|
|
+
|
|
|
|
+ button3 = tk.Button(top, text="Druck", command=lambda: self.show_frame(Page_3))
|
|
|
|
+ button3.pack(side=tk.LEFT)
|
|
|
|
+
|
|
|
|
+ button4 = tk.Button(top,text="Einstellungen",command=lambda: self.show_frame(Page_4))
|
|
|
|
+ button4.pack(side=tk.LEFT)
|
|
|
|
+
|
|
|
|
+ button5 = tk.Button(top, text="QUIT", fg="red",command=quit)
|
|
|
|
+ button5.pack(side=tk.LEFT)
|
|
|
|
+ top.pack(side="top", expand=True, fill="both")
|
|
|
|
+
|
|
self.frames = {}
|
|
self.frames = {}
|
|
|
|
|
|
for F in (Page_1, Page_2, Page_3, Page_4):
|
|
for F in (Page_1, Page_2, Page_3, Page_4):
|