Full screen
How can i do full screen?
How can i get size of monitor?
Is that possible?
Thanks
Blujacker
Junior Poster in Training
56 posts since Mar 2006
Reputation Points: 17
Solved Threads: 1
Try this short Tkinter code, only tested it on Windows XP:
from Tkinter import *
root = Tk()
sw = root.winfo_screenwidth()
sh = root.winfo_screenheight()
# test
print "screen width =", sw
print "screen height =", sh
# set to full screen use this:
root.geometry("%dx%d+0+0" % (sw, sh))
# more code here
root.mainloop()
bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184