From f2c8c328e615b9212a4969d0a24b1716b6ff7ab0 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 30 Jul 2015 21:12:47 +0200 Subject: Add a selected_row attribute to the roster tab (for easier API access) --- src/tabs/rostertab.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tabs/rostertab.py b/src/tabs/rostertab.py index 4d946ba4..f9fe49d6 100644 --- a/src/tabs/rostertab.py +++ b/src/tabs/rostertab.py @@ -197,6 +197,10 @@ class RosterInfoTab(Tab): usage=' ', completion=self.completion_cert_fetch) + @property + def selected_row(self): + return self.roster_win.get_selected_row() + @command_args_parser.ignored def command_certs(self): """ -- cgit v1.2.3