question on winfo_height

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

question on winfo_height

This post has NOT been accepted by the mailing list yet.
  Please look  at the  following Tkinter code fragment:

 frm.pack(side=TOP, fill=BOTH, expand=YES)
 h= frm.winfo_height()
print h, type(h)

It returns  a value of h=1 and type= int

  I remember seeing somewhere that the returned a value of h=1 means that it  is RELATIVE wrt something.
Question:  how can I get the ABSOLUTE value for height.

h= frm.cget("height")
print h

results in a  value of h=0 !!!   why?