Esempio n. 1
0
 def onSelectInitialExchange(self):
     """ Load initial markets of selected initial exchange """
     self.combo_initial_market.clear()
     for it in Markets.get_all_by_exchange(
             self.combo_initial_exchange.currentText().lower()):
         self.combo_initial_market.addItem(it.symbol)
     index = self.combo_initial_market.findText(
         self.config['initial_market'])
     self.combo_initial_market.setCurrentIndex(index)
Esempio n. 2
0
 def _load_markets(self):
     self.combo_exchange.setDisabled(True)
     filtro = self.edit_filtro.text()
     self.list_markets.clear()
     for i, item in enumerate(
             Markets.get_all_by_exchange(self.selected_exchange)):
         if i % 20 == 0:
             QtCore.QCoreApplication.processEvents()
         nuevo = CustomItem(self.list_markets)
         nuevo.configurar(item.symbol, self.selected_exchange)
         nuevo.mostrar(self.lista_mode, filtro)
     self.combo_exchange.setEnabled(True)