Source : config_file_parser

source code: config_file_parser

parse the configuration file

readConfigFile(file_name)
ConfigFileError general exception from config_file_parser
ConfigFileKeyError exception with a key in the configuration file
clearKnownMenuNames() keep a list of all known menus so a recursive configuration will be found
MenuBase([parent, order]) base class for menu definitions
Menu([parent, sectionName]) specifications of a menu or submenu
MenuItem([parent, label]) specification of one item in a a menu (or submenu)
MenuSeparator([parent]) specification of a separator line in a menu
exception bcdamenu.config_file_parser.ConfigFileError[source]

general exception from config_file_parser

exception bcdamenu.config_file_parser.ConfigFileKeyError[source]

exception with a key in the configuration file

class bcdamenu.config_file_parser.Menu(parent=None, sectionName=None)[source]

specifications of a menu or submenu

setTitle(title) set the text of this menu’s title
readConfiguration(config) read the menu’s section from the config file
readConfiguration(config)[source]

read the menu’s section from the config file

Parameters:config (obj) – instance of ConfigParser()
setTitle(title)[source]

set the text of this menu’s title

class bcdamenu.config_file_parser.MenuBase(parent=None, order=None)[source]

base class for menu definitions

class bcdamenu.config_file_parser.MenuItem(parent=None, label=None)[source]

specification of one item in a a menu (or submenu)

setCommand(command) set the text of the command to be executed when this menu item is selected
setLabel(label) set the text to appear in the menu (called in constructor)
setCommand(command)[source]

set the text of the command to be executed when this menu item is selected

setLabel(label)[source]

set the text to appear in the menu (called in constructor)

class bcdamenu.config_file_parser.MenuSeparator(parent=None)[source]

specification of a separator line in a menu

bcdamenu.config_file_parser.clearKnownMenuNames()[source]

keep a list of all known menus so a recursive configuration will be found