From 8c72204638a9e5fffd3f4b4f210cf3ae4ef76bb4 Mon Sep 17 00:00:00 2001 From: Luca Toniolo <10792599+grandixximo@users.noreply.github.com> Date: Sat, 8 Aug 2026 10:53:13 +0800 Subject: [PATCH] gmoccapy: don't show_all() containers holding embedded tabs show_all() on ntb_preview recursively unhid widgets hidden at init, i.e. the lathe-only back-tool view button rbt_view_y2, making it appear on mill configs. Show only the container, the socket and its tab label. Fixes #4353 --- src/emc/usr_intf/gmoccapy/gmoccapy.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/emc/usr_intf/gmoccapy/gmoccapy.py b/src/emc/usr_intf/gmoccapy/gmoccapy.py index c7afde2fcbf..d1a9ce80936 100644 --- a/src/emc/usr_intf/gmoccapy/gmoccapy.py +++ b/src/emc/usr_intf/gmoccapy/gmoccapy.py @@ -1828,7 +1828,8 @@ def _init_dynamic_tabs(self): cmd = c.replace('{XID}', str(xid)) child = subprocess.Popen(cmd.split()) self._dynamic_childs[xid] = child - nb.show_all() + # not show_all(): it would resurrect widgets hidden on purpose + nb.show() except: LOG.error(_("ERROR, trying to initialize the user tabs or panels, check for typos")) LOG.error(tab_locations) @@ -1839,10 +1840,14 @@ def _init_dynamic_tabs(self): def _dynamic_tab(self, widget, text): s = Gtk.Socket() try: - widget.append_page(s, Gtk.Label.new(" " + text + " ")) + label = Gtk.Label.new(" " + text + " ") + widget.append_page(s, label) + s.show() + label.show() except: try: widget.pack_end(s, True, True, 0) + s.show() except: return None return s.get_id()