Skip to content
This repository has been archived by the owner on Jul 26, 2020. It is now read-only.

Commit

Permalink
Fixed close button
Browse files Browse the repository at this point in the history
  • Loading branch information
heyitsrobert committed Jan 5, 2020
1 parent 1763368 commit ddcee35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions files/gui.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ print('This is the GUI console, do not close unless the GUI is actually closed.\

new = 1
url = "https://github.com/heyitsrobert/BackReminder"

def logFile(content):
log = open("guilogs.txt", "a")
log.write("{}\n".format(content))
Expand All @@ -18,7 +17,7 @@ def openweb():
def poweroff():
logFile("| Attempt of powering BackReminder off. An error will show if failed, if not, success.")
try:
os.system('TASKKILL /F /IM Python.exe')
os.system('TASKKILL /F /IM pythonw.exe')
except Exception as e:
logFile("| Failed to close BackReminder, please close the all tabs manually.")
tkinter.messagebox.showinfo("BackReminder", "Failed to close BackReminder, please close all tabs manually.")
Expand All @@ -35,7 +34,7 @@ window.title("BackReminder")
icon = tkinter.PhotoImage(file = "logo.png")
label = tkinter.Label(window, image = icon)
label.pack()
button_widget = tkinter.Button(window,text="Github/Updates", command=openweb)
button_widget = tkinter.Button(window,text="Github", command=openweb)
button_widget.pack()
button_widget = tkinter.Button(window,text="Close", command=poweroff)
button_widget.pack()
Expand Down

0 comments on commit ddcee35

Please sign in to comment.