Roadmap (1) DONE: display fullscreen window
This commit is contained in:
parent
b90c3bb1c8
commit
f26111989f
23
journal.py
Executable file
23
journal.py
Executable 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()
|
||||
Loading…
Reference in New Issue
Block a user