Skip to content

Support urwid 5.0 in ikhal - #1491

Open
penguinolog wants to merge 1 commit into
pimutils:masterfrom
penguinolog:urwid-5-compat
Open

penguinolog wants to merge 1 commit into
pimutils:masterfrom
penguinolog:urwid-5-compat

Conversation

@penguinolog

Copy link
Copy Markdown

urwid 5.0 removes several accessors ikhal still used, so ikhal raised AttributeError with it; khal declares no upper bound on urwid.

Replace them with the standard container properties, available in urwid 2.6.15, khal's minimum:

  • Columns.focus_col and Columns.set_focus_column() -> focus_position
  • Pile.set_focus() -> focus_position
  • Frame.set_body() -> body
  • AttrWrap.w -> original_widget

The window header and footer use AttrMap instead of AttrWrap, which urwid 5.0 warns about and urwid 7.0 removes; nothing reads attributes through them.

urwid 5.0 removes several accessors ikhal still used, so ikhal raised
AttributeError with it; khal declares no upper bound on urwid. Replace them
with the standard container properties, available in urwid 2.6.15, khal's
minimum:

- Columns.focus_col and Columns.set_focus_column() -> focus_position
- Pile.set_focus() -> focus_position
- Frame.set_body() -> body
- AttrWrap.w -> original_widget

The window header and footer use AttrMap instead of AttrWrap, which urwid 5.0
warns about and urwid 7.0 removes; nothing reads attributes through them.
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.

1 participant