From 929efa8e41f567d2dff059b0245a348f5056f08e Mon Sep 17 00:00:00 2001 From: Jordan Ruthe Date: Sat, 14 Nov 2020 10:09:15 -0500 Subject: [PATCH] Fix problem with ZCalibrate panel --- panels/zcalibrate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/panels/zcalibrate.py b/panels/zcalibrate.py index 64d4e5c7..75e25cc0 100644 --- a/panels/zcalibrate.py +++ b/panels/zcalibrate.py @@ -5,11 +5,12 @@ from gi.repository import Gtk, Gdk, GLib from KlippyGtk import KlippyGtk from KlippyGcodes import KlippyGcodes +from panels.screen_panel import ScreenPanel import logging logger = logging.getLogger("KlipperScreen.ZCalibratePanel") -class ZCalibratePanel: +class ZCalibratePanel(ScreenPanel): _screen = None labels = {} distance = 1 @@ -75,7 +76,7 @@ class ZCalibratePanel: grid.attach(b, 3, 2, 1, 1) - self.grid = grid + self.panel = grid self._screen.add_subscription(panel_name) def activate(self):