March 2003
Intermediate to advanced
656 pages
39h 30m
English
window_create
t.window_create(i,**window_options)Inserts an embedded widget in
t’s contents at index
i. t must be
the parent of the widget w that you are
inserting. Call window_create either with option
window=
w to insert an
already existing widget w, or with option
create=
callable. If you
use option create, Tkinter
calls callable without arguments the first
time the embedded widget needs to be displayed, and
callable must create a widget
w (with t as
w’s parent) and return
w as
callable’s result. Option
create lets you arrange creation of embedded
widgets just in time and only if needed, and is useful as an
optimization when you have many embedded widgets in a very long text.