[maemo-developers] Python + hildon.TouchSelector (with pixbufs)

From: Brent Chiodo bchiodo at gmail.com
Date: Mon Aug 31 21:33:44 EEST 2009
On Mon, Aug 31, 2009 at 1:49 PM, Anderson Lizardo <
anderson.lizardo at openbossa.org> wrote:

> On Mon, Aug 31, 2009 at 12:29 PM, Brent Chiodo<bchiodo at gmail.com> wrote:
> > @ Claudio
> >
> > I just tried it with a PickerButton and it does work quite nicely, so I
> > think I'll switch to that. The only issue with the PickerButton is I
> can't
> > get .set_image() to work with it -- no matter what I do it just appears
> this
> > turquoise/blue-green color. I think it may have something to do with the
> > first argument of the PickerButton. Right now I'm initiating the
> > PickerButton like:
> >
> > button = hildon.PickerButton(40, hildon.BUTTON_ARRANGEMENT_VERTICAL)
> >
> > But, maybe it should be:
> >
> > self.select_button = hildon.PickerButton(hildon.SIZE_AUTO,
> > hildon.BUTTON_ARRANGEMENT_VERTICAL)
> >
> > ...the problem is SIZE_AUTO doesn't exist.
>
> try gtk.HILDON_SIZE_AUTO (yeah, SIZE_AUTO comes from GTK, even on C...)
>

Hmm, .set_image() still isn't working...


>
> > I upgraded python-hildon and tried using the method you suggested, but it
> > still doesn't scroll. If you really need a working test-case to fix this
> > then I'll write one. It's just that I came across the issue while deep in
> > coding a Desktop Widget, and that is not exactly the ideal test-case.
>
> actually, I can't reproduce your issue without a minimal test or even
> a screenshot/video showing the problem... I need something that I can
> check what the problem is, and after fixing it, verify the fix worked.
>
> Thanks,
> --
> Anderson Lizardo
> OpenBossa Labs - INdT
> Manaus - Brazil
>

I wrote a test-case using a PickerButton in a hildon.Window() and it worked
fine.... so I created a simple HomePlugin that shows the problem (.py and
.desktop attached). Let me know if you nee anything else. Thanks.

-- 
Best Regards,

Brent Chiodo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090831/a77d48ef/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.py
Type: text/x-python
Size: 755 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20090831/a77d48ef/attachment.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.desktop
Type: application/octet-stream
Size: 74 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20090831/a77d48ef/attachment.obj 
More information about the maemo-developers mailing list