question on winfo_height

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

question on winfo_height

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

#***
 frm=Frame(root,bg="cyan")
 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.

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

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