Python tkinter. How to get height of Menu Python tkinter. How to get height of Menu tkinter tkinter

Python tkinter. How to get height of Menu


Please read the documentation of winfo_height() and winfo_width().As it states out there:

w.winfo_height()

[...] See the remarks on geometry updating under .winfo_geometry(), above. You may prefer to use .winfo_reqheight(), described below, which is always up to date.

w.winfo_reqheight()

These methods return the requested height of widget w. This is the minimum height necessary so that all of w's contents have the room they need. The actual height may be different due to negotiations with the geometry manager.

Also have a look at this question.