Tkinter widget that functions like Explorer "Details" mode?

D

Douglas Alan

Does anyone know if there is a widget for Tkinter available somewhere
that implements something like the Microsoft Explorer View->Details
mode, or the Apple iTunes track browser, or the Nautilus View as List
mode? I.e., rows and colums of text, where the column widths can be
adjusted by the user, and the user can click on a column header to
sort the rows by that column? Thanks.

|>oug
 
L

Logan

Does anyone know if there is a widget for Tkinter available somewhere
that implements something like the Microsoft Explorer View->Details
mode, or the Apple iTunes track browser, or the Nautilus View as List
mode? I.e., rows and colums of text, where the column widths can be
adjusted by the user, and the user can click on a column header to
sort the rows by that column? Thanks.

At least among the 'standard' Tk widgets, there is no such widget.

There are some extensions for Tk, but I doubt that you will find
such a widget. Normally, Tk widgets are very 'basic' (maybe the
file dialogs are an exception to this rule) but nevertheless quite
powerful (see e.g. the Text widget).

I think, you have to write such a widget yourself (which is in fact
not so difficult - except for the 'adjustment of the column width').

L.
 
D

Douglas Alan

Logan said:
I think, you have to write such a widget yourself (which is in fact
not so difficult - except for the 'adjustment of the column width').

Well, yes, that's the part that's been worrying me.

|>oug
 
K

klappnase

Douglas Alan said:
Well, yes, that's the part that's been worrying me.

|>oug

Maybe you could try a Pmw.PanedWidget in combination with a Pmw
MCListBox (a multi column listbox widget that comes as a contribution
with Pmw)

Cheers

Michael
 
D

Douglas Alan

Maybe you could try a Pmw.PanedWidget in combination with a Pmw
MCListBox (a multi column listbox widget that comes as a contribution
with Pmw)

Hmmm, I don't think I could compose a PanedWidget and a
MultiColunmListbox to get the desired funcationality -- putting one
inside the other would not do the correct thing, but perhaps I could
do the job by modifying the source code for MultiColunmListbox using
techniques demonstrated within PanedWidget. Thanks for pointing me at
MultiColunmListbox -- I didn't know about it.

|>oug
 
B

BikeRacer

Douglas Alan said:
Does anyone know if there is a widget for Tkinter available somewhere
that implements something like the Microsoft Explorer View->Details
mode, or the Apple iTunes track browser, or the Nautilus View as List
mode? I.e., rows and colums of text, where the column widths can be
adjusted by the user, and the user can click on a column header to
sort the rows by that column? Thanks.

Perhaps you could build something out of the tkTable widget?
http://sourceforge.net/projects/tktable/ There is a Python wrapper,
but it is incomplete and out of date. Easy to correct though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,933
Members
47,472
Latest member
blackwatermelon

Latest Threads

Top