-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: replace use of urwid's deprecated set_focus, get_focus
urwid from core24 raises deprecation notices when using set_focus and get_focus. In core24, one can use the `container.focus = widget` setter property or `container.focus_position = index` setter property. However, in core22, the `container.focus` property is read-only. `container.focus_position` is available in core22 and core24 and does not produce deprecation warnings ; so let's use it. Signed-off-by: Olivier Gayot <[email protected]>
- Loading branch information
Showing
2 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters