Skip to content

Commit

Permalink
close program on main window deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
lehenbauer committed May 30, 2023
1 parent 2b06bc1 commit bd545f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions UnMixer.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import os
import sys
import tkinter as tk

import unmix

create_console = True

def on_close():
sys.exit(0)

root = tk.Tk()
root.protocol("WM_DELETE_WINDOW", on_close)

root.my_gui = unmix.UnmixGUI(root)

if create_console:
unmix.create_console(tk, root.my_gui)
print("yo baby yo baby yo")
Expand Down

0 comments on commit bd545f8

Please sign in to comment.