[pygtk] [ANNOUNCE] pygtkmvc release 1.2.2

2008-08-26 Thread Roberto Cavada
Version 1.2.2 of pygtkmvc has been released.

Project homepage:
http://pygtkmvc.sourceforge.net

Download:
http://sourceforge.net/projects/pygtkmvc/


==
About pygtkmvc
==

pygtkmvc is a fully Python-based implementation of the
Model-View-Controller (MVC) and Observer patterns for the PyGTK2
toolkit.

MVC is a pattern that can be successfully used to design and
develop well structured GUI applications. The MVC pattern
basically helps in separating semantics and data of the
application, from their representation.

The Observer pattern helps to weaken dependencies among parts that
should be separated, but need to be connected each other.

pygtkmvc provides a powerful and still simple infrastructure to
help designing and implement GUI applications based on the MVC and
Observer patterns.

The framework has been designed to be:

* Essential and small, it does only what it was designed for.
* Not an external dependency for your application: it fits in
   80KB and can be released along with it.
* Easy to understand and to use; fully documented.
* Portable: straightly runs under many platforms.

License: LGPL

===
About release 1.2.2
===

This is a minor release that fixes two major bugs about adapters.
A few new examples about adapters have been also added.

Thanks to Alessandro Dentella sandro TA e-den TOD it for reporting 
both bugs.


--
Roberto Cavada roboogle TA gmail TOD com
___
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/


[pygtk] Accessing child widgets via instance variables

2008-08-26 Thread Drew Vogel
I have a glade file with a gtk.Window named my_win. It has a gtk.Button
on it named my_btn. When I call:

my_win = wtree.get_widget(my_win)

I want to be able to access my_btn as:

my_win.my_btn

Is there a way to make PyGTK enable this access pattern by creating
instance variables for child widgets automatically? I tried inspecting
the PyGladeXML object, but __dict__ is empty. I suspect that is because
it is in the C libglade.

I found a Linux Journal article[1] that discusses a package named
GladeBase.UI but that is from 2001, targeted at Python 2.1b1 and Glade
0.5.11. Is GladeBase still relevant?

I'm new to PyGTK and inexperienced with Python, so please correct me if
I've used the wrong terminology.

[1] http://www.linuxjournal.com/article/4702

Drew Vogel





signature.asc
Description: OpenPGP digital signature
___
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] Accessing child widgets via instance variables

2008-08-26 Thread Pádraig Brady
Drew Vogel wrote:
 I have a glade file with a gtk.Window named my_win. It has a gtk.Button
 on it named my_btn. When I call:
 
 my_win = wtree.get_widget(my_win)
 
 I want to be able to access my_btn as:
 
 my_win.my_btn
 
 Is there a way to make PyGTK enable this access pattern by creating
 instance variables for child widgets automatically? I tried inspecting
 the PyGladeXML object, but __dict__ is empty. I suspect that is because
 it is in the C libglade.
 
 I found a Linux Journal article[1] that discusses a package named
 GladeBase.UI but that is from 2001, targeted at Python 2.1b1 and Glade
 0.5.11. Is GladeBase still relevant?
 
 I'm new to PyGTK and inexperienced with Python, so please correct me if
 I've used the wrong terminology.
 
 [1] http://www.linuxjournal.com/article/4702

Try:
http://www.pixelbeat.org/libs/libglade.py

Example usage:
http://www.pixelbeat.org/talks/pygtk/examples/mail/

Pádraig.
___
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/


[pygtk] dbus and main loops

2008-08-26 Thread helder fraga
hi.
i have 2 python files , one sends dbus messages to the other (receiver)
The receiver, when it gets the message signal starts a new gtk.main , however 
this only works once, after the first time it doesnt receive any messages , but 
the sender still sends them

Is there a way i can make this work properly , allowing me to start new gtk 
main loops?

_
Conheça o Windows Live Spaces, a rede de relacionamentos do Messenger!
http://www.amigosdomessenger.com.br/___
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/