本文整理汇总了Python中menu.Menu.connectHandlers方法的典型用法代码示例。如果您正苦于以下问题:Python Menu.connectHandlers方法的具体用法?Python Menu.connectHandlers怎么用?Python Menu.connectHandlers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类menu.Menu
的用法示例。
在下文中一共展示了Menu.connectHandlers方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: connectHandlers
# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import connectHandlers [as 别名]
def connectHandlers(self):
# Inherited connections.
Menu.connectHandlers(self)
# Specific connections.
self.btnBack.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onBackButtonClicked")
示例2: connectHandlers
# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import connectHandlers [as 别名]
def connectHandlers(self):
# Inherited connections.
Menu.connectHandlers(self)
# Specific connections.
self.btnCredits.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onCreditsButtonClicked")
self.btnProfiles.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onProfilesButtonClicked")
self.btnOptions.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onOptionsButtonClicked")
self.btnExit.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onExitButtonClicked")
示例3: connectHandlers
# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import connectHandlers [as 别名]
def connectHandlers(self):
# Inherited connections.
Menu.connectHandlers(self)
# Specific connections.
self.btnCancel.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onCancelButtonClicked")
self.btnAccept.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onAcceptButtonClicked")
self.btnAdd.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onAddButtonClicked")
self.btnRemove.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onRemoveButtonClicked")
self.edxName.subscribeEvent(PyCEGUI.Editbox.EventTextAccepted, self, "onNameAccepted")
self.lbxProfiles.subscribeEvent(PyCEGUI.ItemListbox.EventSelectionChanged, self, "onListSelectionChanged")
示例4: connectHandlers
# 需要导入模块: from menu import Menu [as 别名]
# 或者: from menu.Menu import connectHandlers [as 别名]
def connectHandlers(self):
# Inherited connections.
Menu.connectHandlers(self)