Ejemplo n.º 1
0
 def _createImportMenuModel(self):
     menuModel = ZMenuModel()
     zbwId = menuModel.addMenuItemWithAction(_extstr(u"manager.FromZBW"), 0, ZImportFromZBWAction(self, self.model), None) #$NON-NLS-1$
     menuModel.setMenuItemBitmap(zbwId, getResourceRegistry().getBitmap(u"images/common/zbw/BlogWriter.ico")) #$NON-NLS-1$
     wlwId = menuModel.addMenuItemWithAction(_extstr(u"manager.FromWLW"), 0, ZImportFromWLWAction(self, self.model), None) #$NON-NLS-1$
     menuModel.setMenuItemBitmap(wlwId, getResourceRegistry().getBitmap(u"images/common/wlw/LiveWriter.png")) #$NON-NLS-1$
     return menuModel
Ejemplo n.º 2
0
 def _createChoiceMenuModel(self):
     model = ZMenuModel()
     for (label, bitmap, id) in self.choices:
         action = ZTextBoxChoiceAction(id)
         menuId = model.addMenuItemWithAction(label, 0, action)
         model.setMenuItemCheckbox(menuId, True)
         model.setMenuItemBitmap(menuId, bitmap)
     return model
Ejemplo n.º 3
0
 def _createChoiceMenuModel(self):
     model = ZMenuModel()
     for (label, bitmap, id) in self.choices:
         action = ZTextBoxChoiceAction(id)
         menuId = model.addMenuItemWithAction(label, 0, action)
         model.setMenuItemCheckbox(menuId, True)
         model.setMenuItemBitmap(menuId, bitmap)
     return model