How can I make a Tkinter window take up all my display screen area?
sneekula 969 Nearly a Posting Maven
Recommended Answers
Jump to PostHi!
root = Tk() w, h = root.winfo_screenwidth(), root.winfo_screenheight() # use the next line if you also want to get rid of the titlebar root.overrideredirect(1) root.geometry("%dx%d+0+0" % (w, h))
Regards, mawe
Jump to PostThanks mawe, that works well.
Just a question, if get rid of the titlebar, how can I exit the program?
You need to at Exit to your menu or add an exit button.
All 6 Replies
mawe 6 Junior Poster
jrcagle 77 Practically a Master Poster
sneekula 969 Nearly a Posting Maven
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
mawe 6 Junior Poster
sneekula 969 Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.