Skip to content

fix(tuiapp_v2): Fix tuiapp_v2 selection auto-scroll on Textual 8#452

Open
slowlyo wants to merge 1 commit into
lsdefine:mainfrom
slowlyo:fix-tuiapp-v2-textual-select-state
Open

fix(tuiapp_v2): Fix tuiapp_v2 selection auto-scroll on Textual 8#452
slowlyo wants to merge 1 commit into
lsdefine:mainfrom
slowlyo:fix-tuiapp-v2-textual-select-state

Conversation

@slowlyo
Copy link
Copy Markdown

@slowlyo slowlyo commented May 21, 2026

修复内容

修复 tuiapp_v2 在 Textual >= 8.x 下的兼容性问题。

  • 使用 SelectState.start.container 获取 selection 源 widget(Textual 8.x)
  • 保留 _select_start 元组路径(Textual 0.x 兼容)

关联 Issue

Closes #373

验证

python -m py_compile frontends/tuiapp_v2.py

@slowlyo slowlyo changed the title Fix tuiapp_v2 selection auto-scroll on Textual 8 fix(tuiapp_v2): Fix tuiapp_v2 selection auto-scroll on Textual 8 May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tuiapp_v2: AttributeError: 'Screen' object has no attribute '_select_start' — 兼容 Textual >= 8.x

1 participant