Skip to content

Commit

Permalink
undo button
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Apr 26, 2022
1 parent 55e0315 commit 3c8535a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from tkinter import PhotoImage
from tkinter import *
from tkinter import ttk
from turtle import undo
from proof import *
from tkinter.scrolledtext import ScrolledText
import fitz
Expand Down Expand Up @@ -122,6 +123,9 @@ def detect_pressed(event):
entry_bar.bind('<Key>', detect_pressed)
entry_bar.bind('<BackSpace>', check_empty)

def undo(*args):
p.undo()
showing.set(p.showReturn())


#entry_bar = AutocompleteCombobox(mainframe, width=50, textvariable=entry, completevalues = proof_methods)
Expand All @@ -134,6 +138,8 @@ def detect_pressed(event):

ttk.Button(mainframe, text="Enter", command=enter).grid(column=3, row=3, sticky=W)

ttk.Button(mainframe, text="Undo", command=undo).grid(column=3, row=2, sticky=W)

ttk.Button(mainframe, text="Generate Latex", command=generateLaTeX).grid(column=3, row=4, sticky=W)

suggestions = StringVar()
Expand Down

0 comments on commit 3c8535a

Please sign in to comment.