The type of a tkinter StringVars and IntVars?
Bob Greschke
bob at passcal.nmt.edu
Fri Oct 22 12:23:43 EDT 2004
More information about the Python-list mailing list
Fri Oct 22 12:23:43 EDT 2004
- Previous message (by thread): The type of a tkinter StringVars and IntVars?
- Next message (by thread): confused about stdin
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Oooo. You are very smart (and have saved the project :). Right there on pg 20 of Essential Reference. Tsk tsk tsk on me. Thanks!! Bob "Steven Bethard" <steven.bethard at gmail.com> wrote in message news:mailman.5287.1098400041.5135.python-list at python.org... > Bob Greschke <bob <at> passcal.nmt.edu> writes: > >> How would I do the same thing if >> >> a = IntVar() >> a.set(6) >> >> and then do >> >> if type(a) == IntVar: >> Root.bell() > > I don't do much GUI programming, but I believe you're looking for > the 'isinstance' function: > >>>> class IntVar(object): > ... pass > ... >>>> a = IntVar() >>>> isinstance(a, IntVar) > True > > > Steve > ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
- Previous message (by thread): The type of a tkinter StringVars and IntVars?
- Next message (by thread): confused about stdin
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list