commodity_catalog.py 文件源码

python
阅读 57 收藏 0 点赞 0 评论 0

项目:stellarmagnate 作者: abadger 项目源码 文件源码
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])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号