PersistentToolbars Namespace Reference

Functions

def addBottom (name, toolbars)
 
def addLeft (name, toolbars)
 
def addRight (name, toolbars)
 
def addTop (name, toolbars)
 
def clear ()
 

Function Documentation

◆ addBottom()

def PersistentToolbars.addBottom (   name,
  toolbars 
)
addBottom("name", ["toolbars"])

Description:
Look at addTop for more information.

◆ addLeft()

def PersistentToolbars.addLeft (   name,
  toolbars 
)
addLeft("name", ["toolbars"])

Description:
Look at addTop for more information.

◆ addRight()

def PersistentToolbars.addRight (   name,
  toolbars 
)
addRight("name", ["toolbars"])

Description:
Look at addTop for more information.

◆ addTop()

def PersistentToolbars.addTop (   name,
  toolbars 
)
addTop("name", ["toolbars"])

Example for Sketcher workbench (InitGui.py):

try:
    import PersistentToolbars

    toolbars = ["Sketcher constraints",
                "Break",
                "Sketcher geometries"]

    PersistentToolbars.addRight("SketcherWorkbench", toolbars)
except ImportError:
    pass

Description:
Provides ability to preset toolbar position for any workbench.
Settings are deleted when FreeCAD exits normally. After user
customizes workbench toolbar position this setting has no
effect anymore. Customized toolbar position set by the user is
used instead.

◆ clear()

def PersistentToolbars.clear ( )
Delete all user and system toolbar position data.