TTkTableProxyEdit

TTkTableProxyEdit🌶️

class TTkTableProxyEdit[source]🌶️

Bases: object

Proxy class for managing table cell editors

Creates and configures appropriate editor widgets based on cell data type. All editors implement the TTkTableProxyEditWidget protocol.

Automatically selects the correct editor type: - _SpinBoxProxy for int and float values - _TextEditProxy for plain text strings - _TextPickerProxy for rich text (TTkString with formatting)

Example usage:

proxy = TTkTableProxyEdit()
editor = proxy.getProxyWidget(data=42, rich=False)
if editor:
    editor.leavingTriggered.connect(handleNavigation)
    editor.dataChanged.connect(handleDataChange)

Initialize the table proxy edit manager

Methods🌶️

getProxyWidget(data, rich: bool = False) TTkTableProxyEditWidget | None[source]🌶️

Get an appropriate editor widget for the given data

Parameters:
  • data (object) – The data value to edit

  • rich (bool) – Whether rich text editing is required

Returns:

An editor widget instance, or None if no suitable editor found

Return type:

Optional[TTkTableProxyEditWidget]