Code: Select all
wbList = Gui.listWorkbenches()
How can I access this list?
Code: Select all
wbList = Gui.listWorkbenches()
Code: Select all
Gui.listCommands() # liste les commandes
Gui.runCommand("Std_DlgPreferences") # execute la commande
Gui.runCommand("Part_Box") # execute la commande
Code: Select all
#liste aussi les boutons
import PySide2
from PySide2 import QtGui ,QtCore, QtWidgets
from PySide2.QtGui import *
from PySide2.QtCore import *
mw=Gui.getMainWindow()
dw=mw.findChildren(QtWidgets.QWidget)
# show the names of all dock windows
print(dw)
#list the button name
for i in dw:
i.objectName()
print(i.objectName())
hi mario. listCommands() get all of them. I want to know which workbench contains which toolbar and which toolbar contains which tool. I'm trying to create a ribbon for freecad. so I need a hierarchical structure of them.
Thanks I hope I can find a way for binding.
That is tabbar its not samething There still toolbars and I want to show them as segment like other cad programs.Kunda1 wrote: ↑Fri Apr 03, 2020 1:33 pm Isn't there already a horizontal ribbon-like menu ? need to dig through the forum to find it
...
Perhaps @pablogil developed it? It can be seen in this post (in the 2nd, 3rd, and 4th image attachments):
https://forum.freecadweb.org/viewtopic. ... on#p168417
sorry