hi all,
I'm new to this list, so please don't blame me if this question has been
asked before.
Im initializing a set of eventboxes with labels inside. I want to add
tooltips to this eventboxes, useing the following code.
ebox=gtk.EventBox()
tooltip=gtk.Tooltips()
label=gtk.Label(i['title'].encode("utf-8"))
label.set_alignment(0,0)
ebox.add(label)
ebox.connect("button_press_event",go,i['link'].encode("ascii"))
ebox.modify_bg(gtk.STATE_NORMAL,
ebox.get_colormap().alloc_color('white'))
tooltip.set_tip(ebox,i['link'].encode("ascii"))
label.show()
ebox.show()
I'am calling this part of code in a for loop several times. The for loop
itselfe is called in a for loop several times. But the tooltips get only
displayed for the last for loop ran trough.
hope you can help me,
greetings mihi
--
.plan: Get an ibook: *complete*
-> check http://unet.univie.ac.at/~a9900470/ibook
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/