What's the difference?

wes weston wweston at att.net
Sun May 9 21:30:00 EDT 2004


SeeBelow at SeeBelow.Nut wrote:
> between this:
> 
> name = "C"
> 
> and this:
> 
> name   = StringVar()
> name.set("C")
> 
> I hope someone can explain that to me.
> 
> Thanks,
> 
> Mitchell Timin
> 

Mitchell,
 >>> dir(Tkinter.StringVar)
['__del__', '__doc__', '__init__', '__module__', '__str__', '_default', 'get', 'set', 'trace', 'trace_variable', 'trace_vdelete', 'trace_vinfo']
 >>> Tkinter.StringVar.__doc__
'Value holder for strings variables.'
 >>> dir("C")
['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__getslice__', '__gt__', '__hash__', '__init__', '__le__', 
'__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__str__', 'capitalize', 'center', 'count', 'decode', 
'encode', 'endswith', 'expandtabs', 'find', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 
'rjust', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
 >>>
wes




More information about the Python-list mailing list