Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63020 > unrolled thread

Re: Registry Key Value Help

Started byChris Angelico <rosuav@gmail.com>
First post2014-01-03 14:05 +1100
Last post2014-01-03 14:05 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Registry Key Value Help Chris Angelico <rosuav@gmail.com> - 2014-01-03 14:05 +1100

#63020 — Re: Registry Key Value Help

FromChris Angelico <rosuav@gmail.com>
Date2014-01-03 14:05 +1100
SubjectRe: Registry Key Value Help
Message-ID<mailman.4822.1388718315.18130.python-list@python.org>
On Fri, Jan 3, 2014 at 11:12 AM, J. McGaha <j2mcgaha@gmail.com> wrote:
> When I run the this code I get an error that says the ‘int’ can’t be called.
>

Python errors include full backtraces that show exactly what's going
on. They are extremely helpful, so when you post questions like this,
you should copy and paste the whole thing.

In this case, though, I'm pretty sure the problem is here:

wr.KEY_SET_VALUE(aKey,"DisableAutoUpdateChecksCheckboxValue",  1, wr.REG_DWORD)

The all-uppercase keyword strongly suggests that this is a constant,
as I can confirm with my Python 3.3.0 (by the way, it's also helpful
to say what version of Python you're using). I suspect, without
looking at the docs, that what you want is actually wr.SetValue or
wr.SetValueEx, which are named like functions (or classes). Check out
the docs for those functions and see if they're what you need.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web