import FreeCADGui class MyPreferencePage: def __init__(self): self.label = "My Preference Page" def accept(self): pass def reject(self): pass def apply(self): pass page = MyPreferencePage() FreeCADGui.addPreferencePage(page)
import FreeCADGui class MyPreferencePage: def __init__(self): self.label = "My Preference Page" def accept(self): pass def reject(self): pass def apply(self): pass page = MyPreferencePage() FreeCADGui.addPreferencePage(page) FreeCADGui.removePreferencePage(page)This code example creates a new preference page with the label "My Preference Page", adds it to the FreeCAD preferences dialog, and then removes it. Package/library: - FreeCADGui module is part of the FreeCAD software package/library.