Пример #1
0
    def __init__(self, parent=None):
        super().__init__()

        self.layout = QtGui.QVBoxLayout()

        #set function logger
        self.log = logging.getLogger("commotion_client." + __name__)
        self.translate = QtCore.QCoreApplication.translate
        self.ext_mgr = ExtensionManager()
        try:
            self.populate_menu()
        except (NameError, AttributeError) as _excpt:
            self.log.info(
                self.translate("logs",
                               "The Menu Bar could not populate the menu"))
            raise
        self.log.debug(
            QtCore.QCoreApplication.translate(
                "logs", "Menu bar has initalized successfully."))