TTkTableProxyEdit🌶️
- class TTkTableProxyEdit[source]🌶️
Bases:
objectProxy class for managing table cell editors
Creates and configures appropriate editor widgets based on cell data type. All editors implement the
TTkTableProxyEditWidgetprotocol.Automatically selects the correct editor type: -
_SpinBoxProxyfor int and float values -_TextEditProxyfor plain text strings -_TextPickerProxyfor 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]