FreeCAD Python wrapper of Command functions get(name) -> Gui.Command or None\n Get a given command by name or None if it doesn't exist.\n name : str\n Command name. update() -> None\n Update active status of all commands. listAll() -> list of str\n Returns the name of all commands. listByShortcut(string, useRegExp=False) -> list of str\n Returns a list of all commands, filtered by shortcut. Shortcuts are converted to uppercase and spaces removed prior to comparison.\n string : str\n Shortcut to be searched. useRegExp : bool\n Filter using regular expression. run(item=0) -> None\n Runs the given command.\n item : int\n Item to be run. isActive() -> bool\n Returns True if the command is active, False otherwise. getShortcut() -> str\n Returns string representing shortcut key accelerator for command. setShortcut(string) -> bool\n Sets shortcut for given command, returns True for success.\n string : str\n Shortcut to be set. resetShortcut() -> bool\n Resets shortcut for given command back to the default, returns True for success. getInfo() -> dict\n Return information about this command. getAction() -> list of QAction\n Return the associated QAction object. createCustomCommand(macroFile, menuText, toolTip, whatsThis, statusTip, pixmap, shortcut) -> str\n Create a custom command for a macro. Returns name of the created command.\n macroFile : str\n Macro file. menuText : str\n Menu text. Optional. toolTip : str\n Tool tip text. Optional. whatsThis : str\n `What's this?` text. Optional. statusTip : str\n Status tip text. Optional. pixmap : str\n Pixmap name. Optional. shortcut : str\n Shortcut key sequence. Optional. removeCustomCommand(name) -> bool\n Remove the custom command if it exists. Given the name of a custom command, this removes that command. It is not an error to remove a non-existent command, the function simply does nothing in that case. Returns True if something was removed, or False if not.\n name : str\n Command name. findCustomCommand(name) -> str or None\n Given the name of a macro, return the name of the custom command for that macro or None if there is no command matching that macro script name.\n name : str\n Macro name.