← Back to team overview

gtg-contributors team mailing list archive

Re: liblarch news

 

> Alternative methods:
> ###################
>
> What we could invest is to use, in the liblarch-gtk layer, a
> gtk.TreeStore. Liblarch would then populate that TreeStore which would be
> displayed.
>
> The good point is that it would allow us to keep a good/clean liblarch,
> the workaround being in the liblarch-gtk (where it should be anyway).
>
> The bad point might be the performance but I'm not sure that, with all our
> workarounds, we are not doing it worse anyway.
>
> What do you think ?
Sorry for the delay in the answer, these days are super-busy for me.
this alternative method seems to keep liblarch and liblarch gtk very
separated, which is very nice since little things are easier to
understand than to debug. Right now, I think it could be worth it
going this way, and perhaps starts optimizing after the next gtg
release in a kaizen way.
As usual, you're the master of liblarch, so the last decision goes to you.

Ciao!
  Luca


>
> Lionel
>
>
>
> On Sat, 9 Oct 2010 02:55:06 -0700, Luca Invernizzi
> <invernizzi.l@xxxxxxxxx>
> wrote:
>> On Sat, Oct 9, 2010 at 2:05 AM, Luca Invernizzi <invernizzi.l@xxxxxxxxx>
>> wrote:
>>> Lionel, could you please take a look at
>>> https://code.edge.launchpad.net/~gtg-user/gtg/gtk-events/, in
>>> particular to GTG/tools/liblarch/synchronized.py?
>>> It defines a function decorator that executes a function only when
>>> there are no more events pending in gtk. Perhaps it could be useful in
>>> fixing liblarch, although it still crashes.
>>>
>>
>> PS: since the gtk mainloop should not be executed by more than one
>> thread, it still misses a way to put threads to sleep instead of
>> making them execute the gtk mainloop. I'm looking at ways to do that,
>> perhaps using the event-after signal
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~gtg-contributors
>> Post to     : gtg-contributors@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~gtg-contributors
>> More help   : https://help.launchpad.net/ListHelp
>



References