[maemo-developers] PyGTK CellRendererToggle

From: Mike Lococo mpl22 at cornell.edu
Date: Mon Mar 26 02:00:06 EEST 2007
>>> I am trying to write a small ToDo app in PyGTK, and though it seems to work
>>> fine on my PC, it does not on Maemo.
>>> The Checkboxes do not reflect the corresponding values in the TreeStore;
>>> instead always the checkbox in the currently selected line is active,
>>> while all others are not.
>>> Since I am new to PyGTK and Maemo, I might be missing something obvious -
>>> could someone please have a look at my code and tell me what's wrong? 
>>
>> Actually this is their "normal" behavior in maemo. You have to set the
>> 'allow-checkbox-mode' property of the treeview to false. See [1].
> 
> Ah, that did it. Now it works. :-)

There are a number of places where the default behavior of a widget in 
maemo is different from that of stock GTK.  There are bugs filed against 
many of these misbehaviors in bugzilla, but so far the answer has been 
that the "bad" behavior is implemented according to Nokia spec and won't 
be fixed.

It's not a big deal if you're writing an application from scratch 
(except that it can be confusing debugging across platforms), but does 
increase the effort involved in porting existing apps.

You can find the known bugaboos regarding gtkcellrenderer by searching 
for it in maemo's bugzilla.

Thanks,
Mike

More information about the maemo-developers mailing list