Yes, it can. It's the same recipe as shown with the code snippet from 2014In addition, I'm wondering if "Model" tab and "Tasks" tab can be hidden in combo view.
[SOLVED]how to set the Combo View to "Model" from Python
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: [SOLVED]how to set the Combo View to "Model" from Python
Re: [SOLVED]how to set the Combo View to "Model" from Python
Code: Select all
mw = Gui.getMainWindow()
dw=mw.findChildren(QtGui.QDockWidget)
for i in dw:
if i.objectName() == "Combo View":
tab = i.findChild(QtGui.QTabWidget)
num = tab.count()
if num ==2:
tab.removeTab(0)
else:
pass
Thanks.