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()