PEP8, typos and warnings fixes

This commit is contained in:
alfrix
2022-05-19 10:31:44 -03:00
committed by Alfredo Monclus
parent fd2a717ece
commit 5a36729b76
40 changed files with 335 additions and 296 deletions

View File

@@ -5,6 +5,7 @@ from gi.repository import Gtk
from ks_includes.KlippyGcodes import KlippyGcodes
class ScreenPanel:
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
@@ -42,7 +43,7 @@ class ScreenPanel:
if temp <= 0:
return ""
else:
return ("(%s)" % str(int(temp)))
return "(%s)" % str(int(temp))
def format_temp(self, temp, places=1):
if places == 0: