-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (24 loc) · 877 Bytes
/
main.py
File metadata and controls
35 lines (24 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from __future__ import annotations
from pathlib import Path
import tkinter as tk
from ui import App
from themes import THEMES
def terminal() -> None:
print("Process has been killed. You can safely ignore any error messages above this line.")
def main() -> None:
root = tk.Tk()
root.attributes("-alpha", 1.0)
root.title("MessageBox Builder")
# Bigger default window so the two-pane layout doesn't feel cramped.
root.geometry("1020x620")
root.minsize(980, 560)
# Prefer ./assets but fall back to the script folder so the app still runs
# if you haven't created the assets directory yet.
asset_dir = Path(__file__).parent / "assets"
if not asset_dir.exists():
asset_dir = Path(__file__).parent
App(root, themes=THEMES, asset_dir=asset_dir)
root.mainloop()
if __name__ == "__main__":
main()
terminal()