Ejemplo n.º 1
0
 def __init__(self, library, create_text, modify_text, delete_text):
     LibraryMenu.__init__(self, library, create_text, modify_text, delete_text)
     self.templatize_action = self.add(None,
         tr("Convert to generic user group"),
         library.templatizeEvent)
Ejemplo n.º 2
0
 def display(self, event, actions):
     self.templatize_action.setEnabled(actions.template)
     LibraryMenu.display(self, event, actions)
Ejemplo n.º 3
0
 def __init__(self, library, config, create_text, modify_text, delete_text):
     LibraryMenu.__init__(self, library, create_text, modify_text, delete_text)
     self.config = config
     self.templatize_action = self.add(None,
         tr("Convert to generic network"),
         library.templatizeEvent)