[Tutor] is there any way to read key configuration..!

Koen Bossers koen@behindthesofa.dhs.org
Fri, 07 Sep 2001 12:36:45 +0200


 >>> from Tkinter import *
 >>> root =Tk()
 >>> label = Label(root, text="Hi there")
 >>> label.pack()
 >>> label.cget('relief')
'flat'
 >>> label.config(relief=SUNKEN)
 >>> label.cget('relief')
'sunken'

Take a good look at 
http://www.pythonware.com/library/tkinter/introduction/index.htm, Basic 
Widget Methods.

Cheers, Koen

Ajaya Babu wrote:

>Hi,
>
>Tkinter programming guys..., is there any method to call get Key
>configureation to read. I want it becasue it gives the flexibility to change
>relief artribute from RAISED to SUNKEN and vice versa
>
>Thanks and Regards,
>Ajaya
>
>
>_______________________________________________
>Tutor maillist  -  Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor
>
>