[Sugar-devel] gtk.linkbutton() on sugar

Esteban Arias earias at plan.ceibal.edu.uy
Wed Mar 17 15:23:18 EDT 2010


example, I run this code on sugar 0.82, on terminal, when i press the link,
this link don't opened on activity browser...


_______________________________________________________
#!/usr/bin/python

import gtk

class PyApp(gtk.Dialog):
    def __init__(self):
        super(PyApp, self).__init__()

        self.set_size_request(350, 250)
        self.set_position(gtk.WIN_POS_CENTER)

        self.connect("destroy", gtk.main_quit)

        ref = gtk.LinkButton("http://www.google.com", "google")

        self.vbox.add(ref)
        self.show_all()



PyApp()
gtk.main()

_______________________________________________________



2010/3/17 Simon Schampijer <simon at schampijer.de>

> On 03/17/2010 07:29 PM, Esteban Arias wrote:
>
>> hi,
>>
>> I create gtk.linkbutton() on sugar 0.82, but this link don't opened with
>> activity browser... how can i do?
>>
>> thanks
>>
>
> Hi Esteban,
>
> can you describe a bit more what you are trying to do?
>
> Did you read:
>
> http://www.moeraki.com/pygtktutorial/pygtk2reference/class-gtklinkbutton.html?
>
> Regards,
>   Simon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100317/2a6c7d48/attachment.htm 


More information about the Sugar-devel mailing list