From f26111989f772b8541a5ccfa1f40aecf90533d48 Mon Sep 17 00:00:00 2001 From: julian Date: Sun, 14 Jan 2024 20:46:51 +0100 Subject: [PATCH] Roadmap (1) DONE: display fullscreen window --- journal.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 journal.py diff --git a/journal.py b/journal.py new file mode 100755 index 0000000..6d85fc5 --- /dev/null +++ b/journal.py @@ -0,0 +1,23 @@ +#!/usr/bin/python3 + +from tkinter import Tk, Frame, BOTH + +class Example(Frame): + + def __init__(self, parent): + Frame.__init__(self, parent , background = "black") + + self.parent = parent + + self.parent.title("Ameland Kinderjournal") + self.pack(fill=BOTH, expand=1) + +journal = Tk() + +# set Window to fullscreen (dependend of the actual screensize) +width = journal.winfo_screenwidth() +height = journal.winfo_screenheight() +journal.geometry("%dx%d" % (width, height)) + +app = Example(journal) +journal.mainloop()