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.
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to