コード例 #1
0
 def __init__(self, parent):
     # parent is the main_window object
     self.__main_window = parent
     # command line window
     self.__edit_ctrl = CmdLineDock('Command', self.__main_window)
     # dictionary with file action objects
     self.__actions = {}
     # categories in which commands are stored
     self.__category = CmdCategory(self.__main_window)
     # icons search path
     self.__icon_dir = os.path.join(os.getcwd(), 'icons')
     #add custom event
     return