Exemplo n.º 1
0
class NoteForm(QtGui.QDialog):
    def __init__(self, parent, notes_model, notebooks_model, index):
        super(NoteForm, self).__init__(parent)
        self.notes_model = notes_model
        self.notebooks_model = notebooks_model
        self.ui= Ui_NoteEdit()
        self.ui.setupUi(self)
        self.ui.notebooksBox.setModel(self.notebooks_model)    
        self.createMapper(index)
        self.rich_edit = RichFormatting(self.ui)
        self.note_exporter = NoteExporter(self, self.ui)
        
    def createMapper(self, index):
        self.mapper = NoteMapper(self, self.notes_model, self.ui)
        self.mapper.setCurrentIndex(index.row())
Exemplo n.º 2
0
 def __init__(self, parent, notes_model, notebooks_model, index):
     super(NoteForm, self).__init__(parent)
     self.notes_model = notes_model
     self.notebooks_model = notebooks_model
     self.ui= Ui_NoteEdit()
     self.ui.setupUi(self)
     self.ui.notebooksBox.setModel(self.notebooks_model)    
     self.createMapper(index)
     self.rich_edit = RichFormatting(self.ui)
     self.note_exporter = NoteExporter(self, self.ui)