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