Exemplo n.º 1
0
 def __init__(self, mainframe: MainFrame):
     self._mainframe = mainframe
     self._tree: NotesTree = mainframe.tree
     self._edi: NoteEditor = mainframe.edi
     self._edi.setCtrlSCallback(self.onCtrlS)
     self._status = mainframe.statusbar
     self._tree.setTreeCallback(self._treeCallback)
     self._mainframe.setToolActionCallback(self.toolActionCallback)
     self._folder_id_iid_ref: Dict = {0: ''}  #key: id, value: iid
     self._note_id_iid_ref: Dict = {}  #key: id, value: iid
     self._imgFolder: PhotoImage = None  #= PhotoImage( file="/home/martin/Projects/python/notes/images/folder_16.png" )
     self._imgNote: PhotoImage = None  #= PhotoImage( file="/home/martin/Projects/python/notes/images/note_16.png" )
     self._business = BusinessLogic()
     self._options = Options()
Exemplo n.º 2
0
def main():
    root = Tk()
    root.title("Anlage V -- Dateneingabe und Erstellung")
    root.rowconfigure( 0, weight=1 )
    root.columnconfigure( 0, weight=1 )
    root.option_add('*Dialog.msg.font', 'Helvetica 11')
    frame:AnlageVFrame = AnlageVFrame( root )
    frame.grid( row=0, column=0, sticky="nswe", padx=3, pady=3 )

    busi:BusinessLogic = BusinessLogic()
    ctrl:Controller = Controller( frame, busi )
    ctrl.startWork()

    root.mainloop()

    busi.terminate()
    print( "Database closed successfully")
Exemplo n.º 3
0
 def __init__( self ):
     self._business = BusinessLogic()
     self._business.initDatabase()
     self._folder_id_iid_ref: Dict = { 0: '' }  # key: id, value: iid
     self._folderImage = ImageFactory.getInstance().imgFolder