Adding tkinter modules to notebook tabs

Rich Shepard rshepard at appl-ecosys.com
Sun Apr 5 08:45:10 EDT 2020


On Sat, 4 Apr 2020, Terry Reedy wrote:

> IDLE's currently-working Settings dialog uses a  ttl.Notebook with 5 tabs.
> To see it, run IDLE and on the top menu, select Options => Configure IDLE.
> Each tab displays a ttk.Frame with multiple widgets. Where there is a
> choice, ttk widgets are used. They make the most different on macOS and
> least difference on Windows (because the tk widgets look pretty good
> there).
>
> The code is in idlelib/configdialog.py.  ConfigDialog creates a window and 
> notebook and adds the tab frames.  As Christian indicated, the notebook 
> itself takes very little code.  Each of the tab frames is a separate Frame 
> subclass in the same file, but they could be in separate files.

Thanks, Terry.

Regards,

Rich


More information about the Python-list mailing list