forked from CreatBot/CreatBotKlipperScreen
Remove unused variables
This commit is contained in:
@@ -90,8 +90,8 @@ class KlipperScreenConfig:
|
||||
for printer in conf_printers_debug:
|
||||
name = list(printer)[0]
|
||||
item = conf_printers_debug[conf_printers_debug.index(printer)]
|
||||
if item[list(printer)[0]]['moonraker_api_key'] != "":
|
||||
item[list(printer)[0]]['moonraker_api_key'] = "redacted"
|
||||
if item[name]['moonraker_api_key'] != "":
|
||||
item[name]['moonraker_api_key'] = "redacted"
|
||||
logging.debug("Configured printers: %s" % json.dumps(conf_printers_debug, indent=2))
|
||||
|
||||
lang = self.get_main_config_option("language", None)
|
||||
|
@@ -23,7 +23,6 @@ class ScreenPanel:
|
||||
self.layout = Gtk.Layout()
|
||||
self.layout.set_size(self._screen.width, self._screen.height)
|
||||
|
||||
action_bar_width = self._gtk.get_action_bar_width() if action_bar is True else 0
|
||||
self.content = Gtk.Box(spacing=0)
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
@@ -156,7 +156,6 @@ class HeaterGraph(Gtk.DrawingArea):
|
||||
return hscale
|
||||
|
||||
def graph_time(self, ctx, gsize, points_per_pixel):
|
||||
glen = gsize[1][0] - gsize[0][0]
|
||||
|
||||
now = datetime.datetime.now()
|
||||
first = gsize[1][0] - (now.second + ((now.minute % 2) * 60)) / points_per_pixel
|
||||
|
@@ -46,7 +46,6 @@ class Keypad(Gtk.Box):
|
||||
self.labels["keypad"] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
self.labels['entry'] = Gtk.Entry()
|
||||
self.labels['entry'].props.xalign = 0.5
|
||||
ctx = self.labels['entry'].get_style_context()
|
||||
|
||||
b = self._gtk.ButtonImage('cancel', _('Close'), None, 1, 1)
|
||||
b.connect("clicked", close_function)
|
||||
|
Reference in New Issue
Block a user