[pygtk] Use which widget to display dictionary?

Marco Antonio Islas Cruz markuz at islascruz.org
Wed May 26 01:53:52 WST 2010


The easy way?-> a label and use repr(dict) to get the string.

A label (or several labels) to format the keys and the values the way
you want to show them.


On Tue, 2010-05-25 at 18:20 +0200, Cornelius Kölbel wrote:
> Hello list,
> 
> I got a dictionary that I'd like to show to the user.
> What do you think is the best way to display it? I do not want to edit
> it. Maybe it needs to be scrolled.
> The depth of the dictionary is only 1, e.g. there are no more
> dictioaries within the dictionary.
> 
> I'd like to produce not too much code.
> What do you think? Should I use a
>  label with linebreaks
>  a treeview or a
>  textview?
> 
> I think the least effort would be the label, but it might not look so nice?
> 
> Any ideas are welcome.
> 
> Thanks a lot
> Cornelius
> 
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

-- 
<--Linux... Because I'm Free-->
Marco Antonio Islas Cruz
"Markuz"
Linux User #280229
markuz at islascruz.org
markuz at unixmexico.org
markuz at linuxpozarica.com
marco.islas at gmail.com
islacruz at yahoo.com
http://www.islascruz.org
http://wwww.christine-project.org
http://www.linuxpozarica.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20100525/ef49c639/attachment.pgp 


More information about the pygtk mailing list