Assuming you just want to read the registry, I'd suggest using
_winreg.KEY_READ instead of _winreg.KEY_ALL_ACCESS; this should work
as a non-administrative user.
Michael
On Wed, Dec 14, 2011 at 03:47, Mauro Faccin wrote:
> HI,
> IĀ found a problem reading register key on windows 7.
> My python ap
that makes sense to move piecewise to
signal handlers, then do that. If it's a batch of work with convenient
locations to do event processing (say every time through a loop), call
gtk.main_iteration() from time to time, possibly within a while
gtk.events_pending().
Welc
NewBox to a factory
method:
def MyNewBox(orientation):
if orientation == HORIZONTAL: return gtk.HBox()
if orientation == VERTICAL: return gtk.VBox()
raise ValueError("Unknown orientation")
--
Michael Urman
___
pygtk mailing list
led to google
> it.
It sounds like you're running into interactive search. It will be easy
to disable this.
http://www.pygtk.org/pygtk2reference/class-gtktreeview.html#method-gtktreeview--set-enable-search
--
Michael Urman
___
pygtk mailing lis
= meta1
class derv(base): __metaclass__ = meta2
To fix it up, you have to mix the metaclasses (and use real
metaclasses, of course):
class mmeta(meta1, meta2): pass
class derv(base): __metaclass__ = mmeta
--
Michael Urman
___
pygtk mailing list
thout a call like that, I believe
all versions of PyGTK don't really allow for threading. They certainly
didn't at the python level last time I tried. Try searching for pygtk
thread faq, or something of the sort, for more on this.
--
Michael Urman
___
the same
time having to remember that your editability is stored in column 3
and strikethrough is in column 5, etc., negates the elegance pretty
fast.
-m
--
Michael Urman
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
s which can be installed as _. One of those returns
str strings instead of unicode strings.
Michael
--
Michael Urman
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
the
renderer. It required some explicit cooperation, but it's scads easier
(and probably better) than reimplementing the treeview from scratch.
--
Michael Urman
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/lis
of behavior are you looking for?
http://www.tortall.net/mu/wiki/PyGTKCairoTutorial has some preliminary
code and examples, but I need to actually write the rest of this
tutorial (I've been working on the main cairo Tutorial that one links
to).
Michael
--
Michael U
owser/trunk/quodlibet/qltk/views.py
for the MultiDragTreeView class - you may want to change out what it
draws in __begin, but other than that it should be nearly drop-in.
There's some other goodies in that file if you like them.
Michael
--
Michael Urman http://www.tor
rarchy comes from the C
layer where inheritance is important, so isinstance is appropriate to
begin with.
To clarify, both Lawrence and the article really meant the same thing:
comparing types, and using insinstance, are both discouraged idioms in
python. Understand why so you can judge when y
hard enough without stumbling on things like this. How can I help
remove or at least highlight these problems so future development
doesn't trip over them?
Michael
--
Michael Urman http://www.tortall.net/mu/blog
___
pygtk mailing list pygtk@daa.co
Go for the singular form, whether prop or property.
label.property.text = 'Caption' reads better than
label.properties.text = 'Caption'
Similarly label.prop.text over label.props.text, although I feel less
strongly about this case.
Michael
___
pygtk mai
On 6/2/05, dimitri pater <[EMAIL PROTECTED]> wrote something like:
> try: assert name != ""
> except AssertionError:
I'd like to put forth a caution on the use of asserts for program
logic. If you run python with -O, the asserts are compiled out:
% echo "assert False"
I want the user to know ahead of time
with the standard DND feedback that nothing will happen on a drop right
there.)
Thanks for the stab, though; I'm sure it'll help some others at a later
time.
-m
--
Michael Urman [- [EMAIL PROTECTED] -]
__
#x27;d like to make it
so you can only drop a row on a row of a preceding letter, but not do
this by filtering in drag_data_received.
-m
--
Michael Urman [- [EMAIL PROTECTED] -]
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/ma
-event', gtk.mainquit)
win.connect('destroy-event', gtk.mainquit)
# get some info to test it
import os
for f in os.listdir('.'):
model.append((f, os.stat(f)[6]))
gtk.mainloop()
--
--
Michael Urman [- [EMAIL PROTECTED] -]
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
18 matches
Mail list logo