Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/emc/usr_intf/gmoccapy/gmoccapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down
Loading