screen_panel: remove unused parameters
This commit is contained in:
parent
9c2b52009a
commit
eb17bb58ad
@ -9,7 +9,7 @@ from ks_includes.KlippyGcodes import KlippyGcodes
|
|||||||
|
|
||||||
class ScreenPanel:
|
class ScreenPanel:
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
self.menu = None
|
self.menu = None
|
||||||
self._screen = screen
|
self._screen = screen
|
||||||
self._config = screen._config
|
self._config = screen._config
|
||||||
|
@ -12,8 +12,8 @@ from ks_includes.screen_panel import ScreenPanel
|
|||||||
|
|
||||||
|
|
||||||
class BasePanel(ScreenPanel):
|
class BasePanel(ScreenPanel):
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.current_panel = None
|
self.current_panel = None
|
||||||
self.time_min = -1
|
self.time_min = -1
|
||||||
self.time_format = self._config.get_main_config().getboolean("24htime", True)
|
self.time_format = self._config.get_main_config().getboolean("24htime", True)
|
||||||
|
@ -16,8 +16,8 @@ def create_panel(*args):
|
|||||||
class BedLevelPanel(ScreenPanel):
|
class BedLevelPanel(ScreenPanel):
|
||||||
supported = (4, 6, 8)
|
supported = (4, 6, 8)
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.response_count = 0
|
self.response_count = 0
|
||||||
self.panel_name = ""
|
self.panel_name = ""
|
||||||
self.screw_dict = {}
|
self.screw_dict = {}
|
||||||
|
@ -23,8 +23,8 @@ def create_panel(*args):
|
|||||||
|
|
||||||
class BedMeshPanel(ScreenPanel):
|
class BedMeshPanel(ScreenPanel):
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.profiles = {}
|
self.profiles = {}
|
||||||
self.show_create = False
|
self.show_create = False
|
||||||
self.active_mesh = None
|
self.active_mesh = None
|
||||||
|
@ -23,8 +23,8 @@ COLORS = {
|
|||||||
|
|
||||||
|
|
||||||
class ConsolePanel(ScreenPanel):
|
class ConsolePanel(ScreenPanel):
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.autoscroll = True
|
self.autoscroll = True
|
||||||
self.hidetemps = True
|
self.hidetemps = True
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ def create_panel(*args):
|
|||||||
|
|
||||||
class ExtrudePanel(ScreenPanel):
|
class ExtrudePanel(ScreenPanel):
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.current_extruder = self._printer.get_stat("toolhead", "extruder")
|
self.current_extruder = self._printer.get_stat("toolhead", "extruder")
|
||||||
self.speeds = ['1', '2', '5', '25']
|
self.speeds = ['1', '2', '5', '25']
|
||||||
self.speed = 1
|
self.speed = 1
|
||||||
|
@ -12,8 +12,8 @@ def create_panel(*args):
|
|||||||
|
|
||||||
|
|
||||||
class MacroPanel(ScreenPanel):
|
class MacroPanel(ScreenPanel):
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.sort_reverse = False
|
self.sort_reverse = False
|
||||||
self.sort_lbl = _("Name")
|
self.sort_lbl = _("Name")
|
||||||
self.sort_btn = self._gtk.ButtonImage("arrow-up", self.sort_lbl, "color1", .66, Gtk.PositionType.RIGHT, False)
|
self.sort_btn = self._gtk.ButtonImage("arrow-up", self.sort_lbl, "color1", .66, Gtk.PositionType.RIGHT, False)
|
||||||
|
@ -21,8 +21,8 @@ SHAPERS = ['zv', 'mzv', 'zvd', 'ei', '2hump_ei', '3hump_ei']
|
|||||||
|
|
||||||
|
|
||||||
class InputShaperPanel(ScreenPanel):
|
class InputShaperPanel(ScreenPanel):
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.freq_xy_adj = {}
|
self.freq_xy_adj = {}
|
||||||
self.freq_xy_combo = {}
|
self.freq_xy_combo = {}
|
||||||
self.calibrate_btn = self._gtk.ButtonImage("move", _('Finding ADXL'), "color1", word_wrap=False)
|
self.calibrate_btn = self._gtk.ButtonImage("move", _('Finding ADXL'), "color1", word_wrap=False)
|
||||||
|
@ -13,8 +13,8 @@ def create_panel(*args):
|
|||||||
|
|
||||||
class LimitsPanel(ScreenPanel):
|
class LimitsPanel(ScreenPanel):
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.limits = {}
|
self.limits = {}
|
||||||
self.grid = Gtk.Grid()
|
self.grid = Gtk.Grid()
|
||||||
self.options = None
|
self.options = None
|
||||||
|
@ -20,8 +20,8 @@ class MovePanel(ScreenPanel):
|
|||||||
distance = 1
|
distance = 1
|
||||||
distances = ['.1', '.5', '1', '5', '10', '25', '50']
|
distances = ['.1', '.5', '1', '5', '10', '25', '50']
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.settings = {}
|
self.settings = {}
|
||||||
self.menu = ['move_menu']
|
self.menu = ['move_menu']
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ def create_panel(*args):
|
|||||||
class NetworkPanel(ScreenPanel):
|
class NetworkPanel(ScreenPanel):
|
||||||
initialized = False
|
initialized = False
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.show_add = False
|
self.show_add = False
|
||||||
self.networks = {}
|
self.networks = {}
|
||||||
self.interface = None
|
self.interface = None
|
||||||
|
@ -19,8 +19,8 @@ class PrintPanel(ScreenPanel):
|
|||||||
dir_panels = {}
|
dir_panels = {}
|
||||||
filelist = {'gcodes': {'directories': [], 'files': []}}
|
filelist = {'gcodes': {'directories': [], 'files': []}}
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
sortdir = self._config.get_main_config().get("print_sort_dir", "name_asc")
|
sortdir = self._config.get_main_config().get("print_sort_dir", "name_asc")
|
||||||
sortdir = sortdir.split('_')
|
sortdir = sortdir.split('_')
|
||||||
if sortdir[0] not in ["name", "date"] or sortdir[1] not in ["asc", "desc"]:
|
if sortdir[0] not in ["name", "date"] or sortdir[1] not in ["asc", "desc"]:
|
||||||
|
@ -13,8 +13,8 @@ def create_panel(*args):
|
|||||||
|
|
||||||
|
|
||||||
class PrinterSelect(ScreenPanel):
|
class PrinterSelect(ScreenPanel):
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, False, False, False)
|
super().__init__(screen, title, False)
|
||||||
|
|
||||||
def initialize(self, panel_name):
|
def initialize(self, panel_name):
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ def create_panel(*args):
|
|||||||
|
|
||||||
class FWRetractionPanel(ScreenPanel):
|
class FWRetractionPanel(ScreenPanel):
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.options = None
|
self.options = None
|
||||||
self.grid = Gtk.Grid()
|
self.grid = Gtk.Grid()
|
||||||
self.values = {}
|
self.values = {}
|
||||||
|
@ -12,8 +12,8 @@ def create_panel(*args):
|
|||||||
|
|
||||||
|
|
||||||
class SettingsPanel(ScreenPanel):
|
class SettingsPanel(ScreenPanel):
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.printers = self.settings = {}
|
self.printers = self.settings = {}
|
||||||
self.menu = ['settings_menu']
|
self.menu = ['settings_menu']
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ ALLOWED_SERVICES = ["KlipperScreen", "MoonCord", "klipper", "moonraker", "webcam
|
|||||||
|
|
||||||
|
|
||||||
class SystemPanel(ScreenPanel):
|
class SystemPanel(ScreenPanel):
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.update_status = None
|
self.update_status = None
|
||||||
self.update_dialog = None
|
self.update_dialog = None
|
||||||
self.update_prog = None
|
self.update_prog = None
|
||||||
|
@ -17,8 +17,8 @@ class TemperaturePanel(ScreenPanel):
|
|||||||
graph_update = None
|
graph_update = None
|
||||||
active_heater = None
|
active_heater = None
|
||||||
|
|
||||||
def __init__(self, screen, title, back=True, action_bar=True, printer_name=True):
|
def __init__(self, screen, title, back=True):
|
||||||
super().__init__(screen, title, back, action_bar, printer_name)
|
super().__init__(screen, title, back)
|
||||||
self.popover_device = None
|
self.popover_device = None
|
||||||
self.h = 1
|
self.h = 1
|
||||||
self.tempdeltas = ["1", "5", "10", "25"]
|
self.tempdeltas = ["1", "5", "10", "25"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user