[Tkinter-discuss] question on winfo_height

GKalman kalman_g at verizon.net
Wed Apr 10 16:42:58 CEST 2013


  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?




--
View this message in context: http://python.6.x6.nabble.com/question-on-winfo-height-tp5013753.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.


More information about the Tkinter-discuss mailing list