[pygtk] ANN: easygconf 0.03

2010-02-16 Thread Florian Diesch


I'm happy to announce easygconf 0.03

Get it at http://www.florian-diesch.de/software/easygconf/


Changes since 0.02:
---

 * renamed GConfDict.add_listner() to add_listener()
 * fixed bug in GConfDict.from_python() (thanks to Pawn Hearts )




easygconf provids an easy, pythonic way to access GConf
`__ through a dict-like interface.

Example
---
::

from easygconf import GConfDict
import gtk


key = 'test
gc=GConfDict('/apps/easygconftest')

print "%s is %s"%(key, gc[key])
gc[key] = 'foo'
print "Now %s is %s"%(key, gc[key])


def callback (key, value, gconfdict, id, args):
print "%s changed to %s"%(key, value)

gc.add_listener('test', callback)
try:
gtk.main()
except KeyboardInterrupt:
pass
gc.unset('test')


   Florian
-- 
GUIs programmieren mit Python und Glade:

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] gtk.accelerator_parse

2010-02-16 Thread Alexander Kuleshov
Hi to all. I have menu on my form and gtktextview:
I create imageitemmenu:

self.file_new = gtk.ImageMenuItem(gtk.STOCK_NEW, agr)
key,mod = gtk.accelerator_parse("N")
self.file_new.add_accelerator("activate", agr, key, mod,
gtk.ACCEL_VISIBLE)

But when i press n in textview at this time triggered file_new menu
activate... How can i resolve it? And how can i make hot keys for
example CTRL + W + S?
Thank you.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] Python 3 and introspection hackfest

2010-02-16 Thread Tomeu Vizoso
On Mon, Feb 15, 2010 at 16:56, John Palmieri  wrote:
>
> - "Tomeu Vizoso"  wrote:
>
>> Hi all,
>>
>> looks like we have agreed on a set of tasks and we have people with
>> the will and capacity to work on them during the hackfest. This
>> concrete set of tasks may seem small at first, but I think it's just
>> what is left to do in order to keep Python as a compelling language
>> on
>> which to develop for the GNOME platform in the foreseeable future.
>>
>> Right now it seems to me that Boston, MA would be the best place to
>> hold the hackfest, as two people are local, one lives relatively
>> close, and facilities have been offered. What about the dates? Have
>> made a couple of searches and tickets from Europe get as cheap as
>> they
>> can get in about 3 weeks from now. Or maybe April, when it won't be
>> as
>> freezing cold?
>
>
> April is best because it give the board some time to find funding.  Can 
> people start looking at airfare to Boston for mid April and start posting 
> estimates of their costs on the wiki?  Thanks.

Ok, we have estimates for the two plane tickets ($700 each), targeting
mid-April. What about the venue? Do people prefer Cambridge?

Have filled the page a bit more:

http://live.gnome.org/Hackfests/Python2010

Regards,

Tomeu
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/