On Mon, 2005-02-28 at 22:13 +0530, Saurabh Wagh wrote:
> Hey there...
>
> I posted this question once, but the suggestions that i got didnt
> quite work out, so i guess , i wasnt able to make the problem
> understood in the first place. So i reframe the question ...
>
> Basically, i want to make some text clickable ( Please note that it
> isnt some predefined static text.. so.. i cant make buttons out of
> it.. )
> The text in my case, is a list of names of objects ( which i display
> on the interface after getting them as a result of a query to the
> server ) ..
Sure you can. You could do something like (forgive my pygtk 0.6.x speak)
box = gtk.GtkVButtonBox()
for button_name in list_of_names_returned_from_db_query:
btn = gtk.GtkButton(button_name)
btn.show()
btn.connect('clicked', buttonClickedCallback, button_name)
box.add(btn)
> Now, i want each name to be clickable ( so that on clicking that, i
> can send a query for info of that object to server n display content
> which i get in response )
>
> Currently, the list of names that i display is using a text buffer
> which displays the names of objects (text) .. will i be able to make
> text displayed in such a text area clickable ?? if yes .. how ??
I don't know, but that wouldn't be my first choice in a Gtk app. Maybe a
web interface but that isn't the case here.
>
> If No .. which widget shud i use to display the text so that it proves
> convenient to make it clickable ??
You could use a GtkComboBox, a GtkCList (again that is 1.2 speak in 2.x
you need a listview and model and I don't know what else.
>
> Awaiting response eagerly... thanking you in anticipation...
>
> Saurabh wagh
> _______________________________________________
> pygtk mailing list [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
--
Steve McClure Racemi
email: [EMAIL PROTECTED] 75 5th St NE
voice: 404-892-5850 Suite 333
fax: 404-892-7215 Atlanta, GA 30308
http://www.racemi.com
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/