Draft has 2 custom toolbars: Draft_Tray and Draft_Snap.chennes wrote: Sorry to take advantage of your knowledge about FC Gui and Qt.
If I recall correctly those toolbars are created using PySide in the Draft Module, so they have a special handling to show or hide them when the workbench is activated or deactivated. The particular advantage (as I can understand) is that their commands can be launched also when another Draft command isActive without closing it. And that's particulary useful cause they are "status commands": they control directly user settings, change the Draft_Snap_WorkingPlane, change the construction mode or the group for Autogroup feature.
So I was asking myself, is there a way to describe a python command to behave like this from the creation, so it can be added to a standard tollbar?
In short I'd like to have certain python commands (and related actions) behave like Std_View commands. So they remain active while another command is running, but are defined and added to the workbench toolbars in the standard way...
Are you aware of any way to obtain this?