Name

insert, insert_cascade, insert_checkbutton, insert_command, insert_radiobutton, insert_separator

Synopsis

                        m.insert(i,entry_kind, **entry_options)

Adds before m’s entry i a new entry whose kind is the string entry_kind, which is one of the strings 'cascade', 'checkbutton', 'command', 'radiobutton', or 'separator‘. Section 16.5.2 later in this chapter covers entry kinds and options.

Methods whose names start with insert_ work just like method insert, except that they don’t accept a second positional argument; what kind of entry each method inserts is implied by the method’s name.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.