Reorganize zcalibrate (#202)

This commit is contained in:
Alfredo Monclus authored and GitHub committed 2021-07-14 19:59:55 -10:00
1 parent 98a8d68c67
commit b2ce22caa9
1 file changed
+8 -9
+8 -9
View File
@@ -22,7 +22,7 @@ class ZCalibratePanel(ScreenPanel):
def initialize(self, panel_name):
_ = self.lang.gettext
grid = self._gtk.HomogeneousGrid()
grid = Gtk.Grid()
label = Gtk.Label(_("Z Offset") + ": \n")
self.labels['zposition'] = Gtk.Label(_("Homing"))
@@ -58,11 +58,10 @@ class ZCalibratePanel(ScreenPanel):
self.labels["1"].set_active(True)
space_grid = self._gtk.HomogeneousGrid()
space_grid.set_row_homogeneous(False)
space_grid.attach(Gtk.Label(_("Distance (mm)") + ":"),0,0,1,1)
space_grid.attach(distgrid,0,1,1,1)
space_grid.attach(Gtk.Label(" "),0,2,1,1)
bottombox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.labels['move_dist'] = Gtk.Label(_("Move Distance (mm)"))
bottombox.pack_start(self.labels['move_dist'], True, True, 0)
bottombox.pack_start(distgrid, True, True, 0)
complete = self._gtk.ButtonImage('complete',_('Accept'),'color4')
complete.connect("clicked", self.accept)
@@ -71,13 +70,13 @@ class ZCalibratePanel(ScreenPanel):
b.connect("clicked", self.abort)
#grid.set_row_homogeneous(False)
grid.set_column_homogeneous(True)
grid.attach(zpos, 0, 0, 1, 1)
grid.attach(box, 1, 0, 2, 2)
grid.attach(zneg, 0, 1, 1, 1)
grid.attach(complete, 3, 0, 1, 1)
grid.attach(space_grid, 0, 2, 3, 1)
grid.attach(b, 3, 2, 1, 1)
grid.attach(bottombox, 0, 2, 4, 1)
grid.attach(b, 3, 1, 1, 1)
self.content.add(grid)