Skip to content

Commit

Permalink
fix: attribute not found error 'messagebox'
Browse files Browse the repository at this point in the history
  • Loading branch information
KuriYama-mirai524 authored Jan 3, 2023
1 parent 30ff856 commit 429ff39
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import re
import sys
import os
import tkinter as tk
import tkinter as tk
import tkinter.messagebox as tk1
import tkinter.filedialog
from pathlib import Path

Expand Down Expand Up @@ -55,12 +56,12 @@ def btn_clicked():
output = Path(output_path + "/build").expanduser().resolve()

if output.exists() and not output.is_dir():
tk.messagebox.showerror(
tk1.showerror(
"Exists!",
f"{output} already exists and is not a directory.\n"
"Enter a valid output directory.")
elif output.exists() and output.is_dir() and tuple(output.glob('*')):
response = tk.messagebox.askyesno(
response = tk1.askyesno(
"Continue?",
f"Directory {output} is not empty.\n"
"Do you want to continue and overwrite?")
Expand Down

0 comments on commit 429ff39

Please sign in to comment.