Example #1
0
 def loadNewTradeData(self, exchange, market):
     self.ed_exchange.setText(exchange.title())
     self.ed_market.setText(market.upper())
     self.m = Markets.get_symbol_by_exchange(self.ed_market.text(),
                                             self.ed_exchange.text())
     self.spin_price.setValue(self.m.last_price)
     self.spin_price.setSingleStep(self.m.last_price * 0.01)
Example #2
0
 def toggle_favorite(self):
     item = Markets.get_symbol_by_exchange(self.text(), self.exchange)
     item.toggle_fav()
     self.setIcon(self._get_icon())