← Back to team overview

lottanzb team mailing list archive

Re: Planning LottaNZB 0.6


> Severin, can you please explain what Delegates means in python?

The term 'delegate' doesn't have any meaning in the Python world in
general. The Kiwi developers use it to describe an object that is both
a view and a controller, useful for lazy developers who don't care
about a clean separation.

Regarding the event observation pattern: It's easy to do that using
PyGTK. One can connect to events (aka signals) using
my_obj.connect("my-signal-name", my_function), which returns an
integer signal ID. We already have a few convenience functions and
classes like lottanzb.util.gsignal (defining new signals) and
lottanzb.util.signalmanager (makes it easier to disconnect from a
bunch of signals).


PS: Sorry for the duplicate message in your inbox.

On Mon, Sep 14, 2009 at 2:38 AM, eran cohen <shush6@xxxxxxxxx> wrote:
>> MVC implementation. Delegates (View and Controller in one)
> Severin, can you please explain what Delegates means in python? I know
> Delegates from C#. It's pretty much similar to a function pointer in C or
> C++, and mainly used for Events (which are pre defined delegates). Doesn't
> the GTK signal mechanism offers basically the same functionality?
> Eran.
> _______________________________________________
> Mailing list: https://launchpad.net/~lottanzb
> Post to     : lottanzb@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~lottanzb
> More help   : https://help.launchpad.net/ListHelp