Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
try:
import tkinter.ttk as ttk
from tkinter import *
from PIL import ImageTk
except:
print(
"[ERROR] Tkinter dependency not installed. Please follow troubleshooting page: https://github.com/mathoudebine/turing-smart-screen-python/wiki/Troubleshooting#all-os-tkinter-dependency-not-installed")
Expand All @@ -48,7 +49,7 @@
import psutil
import ruamel.yaml
import sv_ttk
from PIL import Image, ImageTk
from PIL import Image
from serial.tools.list_ports import comports
except:
print(
Expand Down
18 changes: 9 additions & 9 deletions theme-editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@
import sys
import time

MIN_PYTHON = (3, 8)
if sys.version_info < MIN_PYTHON:
print("[ERROR] Python %s.%s or later is required." % MIN_PYTHON)
try:
sys.exit(0)
except:
os._exit(0)

try:
import tkinter
from PIL import ImageTk
except:
print(
"[ERROR] Tkinter dependency not installed. Please follow troubleshooting page: https://github.com/mathoudebine/turing-smart-screen-python/wiki/Troubleshooting#all-os-tkinter-dependency-not-installed")
Expand All @@ -38,13 +47,6 @@
except:
os._exit(0)

MIN_PYTHON = (3, 8)
if sys.version_info < MIN_PYTHON:
print("[ERROR] Python %s.%s or later is required." % MIN_PYTHON)
try:
sys.exit(0)
except:
os._exit(0)

if len(sys.argv) != 2:
print("Usage :")
Expand All @@ -58,8 +60,6 @@
except:
os._exit(0)

from PIL import ImageTk

import library.log

library.log.logger.setLevel(logging.NOTSET) # Disable system monitor logging for the editor
Expand Down