From c8da096126a14835ccec533a277fc02edf8a24ae Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 18 Mar 2019 22:38:32 -0400 Subject: [PATCH] Track table's last clicked row --- piker/ui/tabular.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/ui/tabular.py b/piker/ui/tabular.py index bb307a91..d1219b8e 100644 --- a/piker/ui/tabular.py +++ b/piker/ui/tabular.py @@ -383,6 +383,7 @@ class Row(HoverBehavior, GridLayout): def on_press(self, value=None): log.info(f"Pressed row for {self._last_record['symbol']}") if self.table and not self.is_header: + self.table.last_clicked_row = self for sendchan in self.table._click_queues: sendchan.send_nowait(self._last_record['symbol']) @@ -396,6 +397,7 @@ class TickerTable(GridLayout): self.sort_key = sort_key # for tracking last clicked column header cell self.last_clicked_col_cell = None + self.last_clicked_row = None self._auto_sort = auto_sort self._symbols2index = {} self._sorted = []