Roadmap (1) DONE: display fullscreen window

This commit is contained in:
julian 2024-01-14 20:46:51 +01:00
parent b90c3bb1c8
commit f26111989f

23
journal.py Executable file
View File

@ -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()