Alan G Isaac <alan.is...@gmail.com> writes:

> Of course one can do
>       myintvar.set(myintvar.get()+1)
> but surely there is a better way?

What is an IntVar? It's not a built-in type, so you'll need to tell us.

    type(myintvar)

Where is it imported from?

    import sys
    sys.modules[type(myintvar).__module__]

> I'm surprsied that
>       myintvar += 1
> is not allowed.

Does the documentation lead you to believe it would be allowed?

    help(type(myintvar))

-- 
 \       “I cannot be angry at God, in whom I do not believe.” —Simone |
  `\                                                       De Beauvoir |
_o__)                                                                  |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to