Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
easy-media-controller
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mihkevich
easy-media-controller
Commits
afccc4f3
Commit
afccc4f3
authored
Dec 21, 2021
by
mihkevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Production_version_1
parent
ebf6c7d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
data.xlsx
data.xlsx
+0
-0
key_listener.py
key_listener.py
+1
-2
main.py
main.py
+4
-1
main.sh
main.sh
+1
-1
No files found.
data.xlsx
View file @
afccc4f3
No preview for this file type
key_listener.py
View file @
afccc4f3
...
...
@@ -48,7 +48,6 @@ try:
if
(
current_time
-
event
.
sec
<
2
):
th
=
Thread
(
target
=
call_main
())
th
.
start
()
sleep
(
1
)
th
.
start
()
except
Exception
as
e
:
log
.
error
(
log
.
get_line
())
main.py
View file @
afccc4f3
...
...
@@ -19,10 +19,13 @@ class App(tkinter.Tk):
def
__init__
(
self
,
*
args
,
**
kwargs
):
self
.
data
=
load_workbook
(
log
.
exec_dir
+
"/data.xlsx"
)
self
.
sheetnames
=
self
.
data
.
sheetnames
log
.
info
(
self
.
sheetnames
)
tkinter
.
Tk
.
__init__
(
self
,
*
args
,
**
kwargs
)
self
.
geometry
(
"1400x100+280+300"
)
self
.
grid
()
lbl
=
ttk
.
Label
(
self
,
text
=
"ВВЕДИТЕ КОД НУЖНОЙ ЗАПИСИ"
,
font
=
"Helvetica 32 bold"
,
padding
=
10
)
.
grid
(
column
=
0
,
row
=
0
)
...
...
main.sh
View file @
afccc4f3
#!/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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment