tui: Q&D adaptation to new code:
use the new `quick_bridge` adapter and do few changes to make TUI work with new backend. TUI will probably be rewritten at some point, this is just an update to keep it working. `urwid` has been updated to have a version working with Python 3.14.
This commit is contained in:
parent
d3dc59b141
commit
e5ed4e3d7c
1 changed files with 135 additions and 77 deletions
|
|
@ -37,11 +37,11 @@ class ProfileManager(QuickProfileManager, urwid.WidgetWrap):
|
|||
self.pass_wid = sat_widgets.Password(_("Password:"), align="center")
|
||||
|
||||
style = ["no_first_select"]
|
||||
profiles = host.bridge.profiles_list_get()
|
||||
profiles.sort()
|
||||
self.list_profile = sat_widgets.List(
|
||||
profiles, style=style, align="center", on_change=self.on_profile_change
|
||||
[], style=style, align="center", on_change=self.on_profile_change
|
||||
)
|
||||
# the profiles list is retrieved asynchronously
|
||||
self.refill_profiles()
|
||||
|
||||
# new & delete buttons
|
||||
buttons = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue