|
Re: making text clickable: msg#00040gnome.gtk+.python
Hi, gtk.TextView and gtk.TextBuffer support hyperlinked text, the hyperlink demo creates the links as blue and underlined as is done in web browsers, but that does not appear to be neccessary. The demo apps come with pygtk. -CHris On Thu, 10 Feb 2005 15:56:52 -0500, Thomas Mills Hinkle <tmhinkle@xxxxxxxxx> wrote: > On Thu, 10 Feb 2005 23:58:46 +0530, Saurabh Wagh <saurabh.wagh@xxxxxxxxx> > wrote: > > > Can anyone please guide me as to how should i go about , making any > > text clickable in my interface, so that clicking on it further gets > > itz details on to the interface. > > I don't understand the kind of information you're dealing with, but > here are two solutions that come to mind: > > 1. A treeview widget, using expanders to get more information > ("details"). You can even bind to the "expand" event so that you don't > fetch more information until the user needs it. > 2. A table widget that you put together programmatically. I'd use > buttons for the clickable elements -- since buttons are what people > expect anyway -- and then just use regular labels or text areas to > display your information. > > Apologies if this is way off the mark. AFAIK, making a "link" that > looks & feels like a web page link is not nearly as easy. The TreeView > interface is very nice for most kinds of data. > > If it doesn't fit your data, I'd think you could do everything with > "more info" buttons next to your initial data. > > Tom > _______________________________________________ > pygtk mailing list pygtk@xxxxxxxxxx > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ > -- Christopher Lambacher lambacck@xxxxxxxxxxxx _______________________________________________ pygtk mailing list pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: making text clickable: 00040, Thomas Mills Hinkle |
|---|---|
| Next by Date: | Textview updated with ouput from shell command: 00040, pachi |
| Previous by Thread: | Re: making text clickablei: 00040, Thomas Mills Hinkle |
| Next by Thread: | Textview updated with ouput from shell command: 00040, pachi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |