[Tutor] GUI component

Alan Gauld alan.gauld at blueyonder.co.uk
Fri Apr 23 01:47:22 EDT 2004

> 1. how to inherrit component and add some additional function to it.

Just inherit as usual

class MyNewWidget(ListBox):

will subclass the Tkinter LIstBox widget.

> 2. where can i find Combobox and DataGrid component? 

There is no such beast in Tkinter but the PMW free add-on 
widget set has a ComboBox widget.

There is no DataGrid available so far as I know, you have to
use a normal grid and fill the data yourself. PMW also has 
a basic grid for Tkinter I believe.


Alan G.

More information about the Tutor mailing list