From 2e650926bdba1c65baa506be1b1dd09621e8d8ea Mon Sep 17 00:00:00 2001 From: zkk <1007518571@qq.com> Date: Thu, 26 Dec 2024 15:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D10=E5=AF=B8=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E5=81=8F=E7=A7=BB=E5=80=BC=E5=BE=AE=E8=B0=83=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=87=BA=E7=95=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panels/offset_fine_tune.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panels/offset_fine_tune.py b/panels/offset_fine_tune.py index e479096b..34d48be2 100644 --- a/panels/offset_fine_tune.py +++ b/panels/offset_fine_tune.py @@ -103,7 +103,9 @@ class Panel(ScreenPanel): distgrid.attach(self.labels[i], j, 0, 1, 1) for p in ("x_offset_val", "y_offset_val", "z_offset_val"): - self.labels[p] = Gtk.Label(f"{p[0].upper()} " + _("Offset") + ": 0") + self.labels[p] = Gtk.Label(f"{p[0].upper()} " + _("Offset") + "\n" + "0") + self.labels[p].set_justify(Gtk.Justification.CENTER) + self.labels[p].set_line_wrap(True) self.labels["move_dist"] = Gtk.Label(label=_("Move Distance (mm)")) bottomgrid = Gtk.Grid(row_homogeneous=True, column_homogeneous=True) @@ -133,7 +135,7 @@ class Panel(ScreenPanel): if offset in variables: axis = offset.split("_")[1] self.labels[f"{axis}_offset_val"].set_text( - f"{axis.upper()} " + _("Offset") + f": {variables[offset]}" + f"{axis.upper()} " + _("Offset") + "\n" + f"{variables[offset]}" ) if "print_stats" in data: if "state" in data["print_stats"]: