Re: [pygtk] pygtk Digest, Vol 106, Issue 10

2011-12-14 Thread Michael Urman
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

Re: [pygtk] Updating a window

2010-06-22 Thread Michael Urman
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

Re: [pygtk] Sometimes VBox, sometimes HBox

2010-01-25 Thread Michael Urman
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

Re: [pygtk] Stopping Typing find box in gtk.window when using key accelerator

2010-01-09 Thread Michael Urman
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

Re: [pygtk] gobject & metaclasses

2008-10-26 Thread Michael Urman
= 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

Re: [pygtk] Pygtk does not play nicely with speech-dispatcher

2008-04-24 Thread Michael Urman
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 ___

Re: [pygtk] Re: Trouble getting a ListStore with dynamic column number.

2008-02-03 Thread 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/

Re: [pygtk] glitch in Dialog constructor?

2007-09-12 Thread Michael Urman
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/

Re: [pygtk] retrieving TreeView markup

2007-07-18 Thread Michael Urman
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

Re: [pygtk] antialias gnomecanvas? oops forgot code.

2006-07-26 Thread Michael Urman
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

Re: [pygtk] Treeview multiple row DnD

2006-06-27 Thread Michael Urman
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

Re: [pygtk] Functional/Acceptance Testing Using guitest

2006-05-25 Thread Michael Urman
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

Re: [pygtk] odd performance discrepancies between gtk.ListStore.insert() and gtk.ListStore.append()

2006-03-01 Thread Michael Urman
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

Re: [pygtk] Mapping GObject properties as python attributes

2005-06-21 Thread Michael Urman
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

Re: [pygtk] Pressing an gtkDialog OK button mulitple times has no effect.

2005-06-02 Thread Michael Urman
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"

Re: [pygtk] dnd in a treeview - conditionally

2003-11-25 Thread Michael Urman
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] -] __

[pygtk] dnd in a treeview - conditionally

2003-11-20 Thread Michael Urman
#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

[pygtk] New FAQ: rendering computed TreeViewColumns

2003-10-15 Thread Michael Urman
-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/