From 78a520de622fa47d51e6b14d34eefeae222e62f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20K=C3=B6pferl?= Date: Sun, 21 Jun 2020 02:07:47 +0200 Subject: [PATCH] tkinter weg --- install.sh | 1 - src/weight-datageneration.py | 9 --------- 2 files changed, 10 deletions(-) diff --git a/install.sh b/install.sh index 6bf888a..cc9634e 100755 --- a/install.sh +++ b/install.sh @@ -29,7 +29,6 @@ pip3 install wiringpi # numpy apt -y install libatlas-base-dev -apt -y pip3 install numpy # Jetzt noch die Dateien positionieren und Services aktivieren diff --git a/src/weight-datageneration.py b/src/weight-datageneration.py index a6ff6b4..07edcd1 100644 --- a/src/weight-datageneration.py +++ b/src/weight-datageneration.py @@ -12,8 +12,6 @@ from pipyadc import ADS1256 # named "myconfig_2.py" for a second ADS1256 chip connected to the SPI bus. import ADS1256_tim01_config as myconfig_2 -from tkinter import * - print ("TEST") def fetch(e): print("NAME: ",e) @@ -24,13 +22,6 @@ def fetch(e): name_input="Nobody" grafanaurl="%GRAFANA_URL%" #172.23.92.63:8086/write?db=mydb&u=admin&p=PASSWORD -master = Tk() -Label(master, text="Name").grid(row=0) -e1 = Entry(master,font=("Arial", 26)) -e1.bind("",fetch) -b1 = Button(master, text='Change', command=(lambda e=e1.get(): fetch(e))) -e1.grid(row=0, column=0) -b1.grid(row=0, column=1) x_value = 0 total_1 = 1000