本文整理汇总了Python中NDImplementationDecorator.NDImplementationDecorator.updateImageCtrl方法的典型用法代码示例。如果您正苦于以下问题:Python NDImplementationDecorator.updateImageCtrl方法的具体用法?Python NDImplementationDecorator.updateImageCtrl怎么用?Python NDImplementationDecorator.updateImageCtrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NDImplementationDecorator.NDImplementationDecorator
的用法示例。
在下文中一共展示了NDImplementationDecorator.updateImageCtrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from NDImplementationDecorator import NDImplementationDecorator [as 别名]
# 或者: from NDImplementationDecorator.NDImplementationDecorator import updateImageCtrl [as 别名]
class PersonaNodeDialog:
def __init__(self,objt,environmentName,dupProperty,overridingEnvironment,builder):
self.window = builder.get_object("PersonaNodeDialog")
self.decorator = NDImplementationDecorator(builder)
self.decorator.updateTextCtrl("personaNameCtrl",objt.name())
self.decorator.updateMLTextCtrl("personaActivitiesCtrl",objt.activities())
self.decorator.updateMLTextCtrl("personaAttitudesCtrl",objt.attitudes())
self.decorator.updateMLTextCtrl("personaAptitudesCtrl",objt.aptitudes())
self.decorator.updateMLTextCtrl("personaMotivationsCtrl",objt.motivations())
self.decorator.updateMLTextCtrl("personaSkillsCtrl",objt.skills())
self.decorator.updateImageCtrl("personaImageCtrl",objt.image())
self.decorator.updateTextCtrl("personaDirectCtrl",objt.directFlag(environmentName,dupProperty))
roles = []
for role in objt.roles(environmentName,dupProperty):
roles.append([role])
self.decorator.updateListCtrl("personaRolesCtrl",['Role'],gtk.ListStore(str),roles)
self.decorator.updateMLTextCtrl("personaNarrativeCtrl",objt.narrative(environmentName,dupProperty))
self.window.resize(400,400)
def on_personaOkButton_clicked(self,callback_data):
self.window.destroy()
def show(self):
self.window.show()