On Mon, Aug 31, 2009 at 1:49 PM, Anderson Lizardo < [email protected]> wrote:
> On Mon, Aug 31, 2009 at 12:29 PM, Brent Chiodo<[email protected]> 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
import gobject
import gtk
import hildondesktop
import hildon
class Example(hildondesktop.HomePluginItem):
__gtype_name__ = 'Example'
def __init__(self):
hildondesktop.HomePluginItem.__init__(self)
button = hildon.PickerButton(gtk.HILDON_SIZE_AUTO, hildon.BUTTON_ARRANGEMENT_VERTICAL)
selector = hildon.TouchSelector(text=True)
example = ["1", "2", "3", "4", "5", "6", "7"]
for i in example:
selector.append_text(i)
button.set_selector(selector)
button.set_selector(selector)
button.show_all()
self.add(button)
def hd_plugin_get_object():
return gobject.new(Example, plugin_id="example")
if __name__ == "__main__":
obj = hd_plugin_get_object()
obj.show_all()
gtk.main()
example.desktop
Description: Binary data
_______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
