Beispiel #1
0
def open_(event):
    path = askopenfilename()
    # If the user clicked 'Cancel', return without changing anything
    if not path:
        return

    with open(path, 'r+t') as infile:
        editor.add(Buffer(file=infile, text=infile.read()))
        editor.select('end')
Beispiel #2
0
def open_(event):
    path = askopenfilename()
    # If the user clicked 'Cancel', return without changing anything
    if not path:
        return

    with open(path, 'r+t') as infile:
        editor.add(Buffer(file=infile, text=infile.read()))
        editor.select('end')
Beispiel #3
0
def new(event):
    editor.add(Buffer())
    editor.select('end')
Beispiel #4
0
def new(event):
    editor.add(Buffer())
    editor.select('end')