id / id-maker /gui /main.py
sd
Upload 44 files
4ed71b2 verified
raw
history blame contribute delete
626 Bytes
"""
EL HELAL Studio — Photo Layout Generator
=========================================
Run this file to launch the desktop application.
Usage:
python main.py
"""
import tkinter as tk
from gui import StudioApp
def main():
root = tk.Tk()
# Centre window on screen
root.update_idletasks()
sw = root.winfo_screenwidth()
sh = root.winfo_screenheight()
w, h = 900, 1000
x = (sw - w) // 2
y = max((sh - h) // 2 - 30, 0)
root.geometry(f"{w}x{h}+{x}+{y}")
app = StudioApp(root) # noqa: F841
root.mainloop()
if __name__ == "__main__":
main()