[docs] tkinter

cyb cg.venus at gmail.com
Mon Jun 13 11:32:04 EDT 2016


Cannot find winfo_screenwidth in documentation. Cheers.

Working code:

import tkinter

window = tkinter.Tk()

screen_width = window.winfo_screenwidth()
screen_height = window.winfo_screenheight()

print(screen_width, screen_height)

window.geometry(str(screen_width-100)+"x256")
window.mainloop()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20160613/cda4d0cd/attachment.html>


More information about the docs mailing list