Commit afccc4f3 by mihkevich

Production_version_1

parent ebf6c7d4
No preview for this file type
...@@ -48,7 +48,6 @@ try: ...@@ -48,7 +48,6 @@ try:
if (current_time - event.sec < 2): if (current_time - event.sec < 2):
th = Thread(target=call_main()) th = Thread(target=call_main())
th.start() th.start()
sleep(1)
except Exception as e: except Exception as e:
log.error(log.get_line()) log.error(log.get_line())
...@@ -19,10 +19,13 @@ class App(tkinter.Tk): ...@@ -19,10 +19,13 @@ class App(tkinter.Tk):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self.data = load_workbook(log.exec_dir+"/data.xlsx") self.data = load_workbook(log.exec_dir+"/data.xlsx")
self.sheetnames = self.data.sheetnames self.sheetnames = self.data.sheetnames
log.info(self.sheetnames) log.info(self.sheetnames)
tkinter.Tk.__init__(self, *args, **kwargs) tkinter.Tk.__init__(self, *args, **kwargs)
self.geometry("1400x100+280+300")
self.grid() self.grid()
lbl = ttk.Label(self, text="ВВЕДИТЕ КОД НУЖНОЙ ЗАПИСИ", font="Helvetica 32 bold",padding=10).grid(column=0, row=0) lbl = ttk.Label(self, text="ВВЕДИТЕ КОД НУЖНОЙ ЗАПИСИ", font="Helvetica 32 bold",padding=10).grid(column=0, row=0)
......
#!/bin/bash #!/bin/bash
sudo -H -u user python3 ~/dev/easy-media-controller/main.py sudo -H -u pi python3 ~/dev/easy-media-controller/main.py
exit; exit;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment