add parameter to labels to silence IDE warnings

This commit is contained in:
alfrix
2023-07-17 13:56:27 -03:00
committed by Alfredo Monclus
parent a149796b19
commit 3c69bcb4c4
7 changed files with 21 additions and 21 deletions

View File

@@ -25,12 +25,12 @@ class ZCalibratePanel(ScreenPanel):
if self.probe:
self.z_offset = float(self.probe['z_offset'])
logging.info(f"Z offset: {self.z_offset}")
self.widgets['zposition'] = Gtk.Label("Z: ?")
self.widgets['zposition'] = Gtk.Label(label="Z: ?")
pos = self._gtk.HomogeneousGrid()
pos.attach(self.widgets['zposition'], 0, 1, 2, 1)
if self.z_offset is not None:
self.widgets['zoffset'] = Gtk.Label("?")
self.widgets['zoffset'] = Gtk.Label(label="?")
pos.attach(Gtk.Label(_("Probe Offset") + ": "), 0, 2, 2, 1)
pos.attach(Gtk.Label(_("Saved")), 0, 3, 1, 1)
pos.attach(Gtk.Label(_("New")), 1, 3, 1, 1)