dicogis.ui.scrollable_table module

class dicogis.ui.scrollable_table.ScrollableTable(parent, localized_strings=None, init_widgets=True)

Bases: Frame

A scrollable table with two columns in read-only mode.

tree

The Treeview widget for displaying the table.

Type:

ttk.Treeview

vsb

The vertical scrollbar for the Treeview.

Type:

ttk.Scrollbar

__init__(parent, localized_strings=None, init_widgets=True)

Initialize the ScrollableTable frame.

Parameters:
  • parent (tk.Widget) – The parent widget.

  • init_widgets (bool) – option to create widgets during init or not. Defaults to True.

create_widgets()

Create and layout the widgets for the frame.

Return type:

None

disable_event(event)

Disable the event to make the Treeview read-only.

Parameters:

event (Event) – The event object.

Returns:

“break” to indicate that the event should be ignored.

Return type:

str