grapa.frontend.widgets_graphmanager.CustomNotebook

class grapa.frontend.widgets_graphmanager.CustomNotebook(*args, graphstabmanager: GraphsTabManager = None, **kwargs)

Bases: Notebook

A ttk Notebook with close buttons on each tab https://stackoverflow.com/questions/39458337/is-there-a-way-to-add-close-buttons-to-tabs-in-tkinter-ttk-notebook

__init__(*args, graphstabmanager: GraphsTabManager = None, **kwargs)

Construct a Ttk Notebook with parent master.

STANDARD OPTIONS

class, cursor, style, takefocus

WIDGET-SPECIFIC OPTIONS

height, padding, width

TAB OPTIONS

state, sticky, padding, text, image, compound, underline

TAB IDENTIFIERS (tab_id)

The tab_id argument found in several methods may take any of the following forms:

  • An integer between zero and the number of tabs

  • The name of a child window

  • A positional specification of the form “@x,y”, which defines the tab

  • The string “current”, which identifies the currently-selected tab

  • The string “end”, which returns the number of tabs (only valid for method index)

Methods

__init__(*args[, graphstabmanager])

Construct a Ttk Notebook with parent master.

on_close_press(event)

Called when the button is pressed over the close button

on_close_release(event)

Called when the button is released over the close button

on_close_press(event)

Called when the button is pressed over the close button

on_close_release(event)

Called when the button is released over the close button