def handle_commodity_select(self, commodity, *args):
"""
Create a buy/sell dialog when the commodity is selected
:arg commodity: The name of the commodity selected
"""
# If the user selected the line via the mouse, then we need to sync
# the highlighted line
self.commodity.set_focus(self.commodity_col.data_map[commodity])
self._highlight_focused_line()
self.pubpen.publish(self.order_info_event, commodity,
self.auxiliary_cols[self.price_col_idx].data_map[commodity],
self.location)
urwid.emit_signal(self, self.signals[1])
评论列表
文章目录