Пример #1
0
 def initActions(self):
     collection = self.actionCollection()
     self.loadAction = KStdAction.open(self.slotLoad, collection)
     #self.editAction = KStdAction.replace(self.mainView.slotEdit, collection)
     self.editAction = EditAction(self.mainView.slotEdit, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Пример #2
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.openNewAction = KStdAction.openNew(self.slotOpenNew, collection)
     self.openAction = KStdAction.open(self.slotOpen, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
     self.saveAsAction = KStdAction.saveAs(self.slotSaveAs, collection)
Пример #3
0
 def initActions(self):
     collection = self.actionCollection()
     self.loadAction = KStdAction.open(self.slotLoad, collection)
     #self.editAction = KStdAction.replace(self.mainView.slotEdit, collection)
     self.editAction = EditAction(self.mainView.slotEdit, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Пример #4
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
     self.newAction = KStdAction.openNew(self.slotNew, collection)
Пример #5
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)