From f728342b730a236dd6e648e3f0dfee1028dbd293 Mon Sep 17 00:00:00 2001 From: Luca Tringali Date: Tue, 22 Jan 2019 19:14:01 +0100 Subject: raspi-config --- autologin.sh | 4 ++++ termostato.py | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/autologin.sh b/autologin.sh index 939b57a..f7135b3 100644 --- a/autologin.sh +++ b/autologin.sh @@ -46,3 +46,7 @@ chown $username:$username /home/$username/appstart sudo systemctl disable sddm.service sudo usermod -a -G tty $username sudo usermod -a -G video $username + +echo "Don't forget to turn off Splash Screen under Boot section" +read +sudo raspi-config diff --git a/termostato.py b/termostato.py index a91af56..55f38fc 100755 --- a/termostato.py +++ b/termostato.py @@ -12,14 +12,12 @@ except: try: from tkinter import messagebox messagebox.showinfo("Installazione, attendi prego", "Sto per installare le librerie grafiche e ci vorrà del tempo. Premi Ok e vai a prenderti un caffè.") - pip.main(["install", "--index-url=http://download.qt.io/snapshots/ci/pyside/5.9/latest/", "pyside2", "--trusted-host", "download.qt.io"]) - #pip install --index-url=http://download.qt.io/snapshots/ci/pyside/5.9/latest/ pyside2 --trusted-host download.qt.io - #pip install PySide2 + pip.main(["install", "PySide2"]) from PySide2.QtWidgets import QApplication except: try: from pip._internal import main - main(["install", "--index-url=http://download.qt.io/snapshots/ci/pyside/5.9/latest/", "pyside2", "--trusted-host", "download.qt.io"]) + main(["install", "PySide2"]) from PySide2.QtWidgets import QApplication except: sys.exit(1) -- cgit v1.1