Пример #1
0
 def __init__(self, parent=None):
     QtGui.QMainWindow.__init__(self, parent)
     Shared.__init__(self)
     self.gui = Ui_MainWindow()
     self.gui.setupUi(self)
     self.database = bb_engine.Database()
     self.combo_nets_fill()
     self.combo_ranges_fill()
     #main tab variables
     self.v = {
         'mode_std': self.gui.combo_standings_mode.currentIndex,
         'mode_form': self.gui.combo_form_mode.currentIndex,
         'mode_date': self.gui.combo_scheudle_dates.currentText,
         'mode_home': self.gui.combo_home_mode.currentIndex,
         'mode_away': self.gui.combo_away_mode.currentIndex,
         'home_team': self.gui.main_combo_home.currentText,
         'away_team': self.gui.main_combo_away.currentText,
         'net': self.gui.main_combo_nets.currentText,
         'ranges': self.gui.main_combo_ranges.currentText,
         'c_1': QtGui.QColor('#E6E6FA'),
         'c_2': QtGui.QColor('#BFBFBF'),
         'c_home': QtGui.QColor('#71CA80'),
         'c_away': QtGui.QColor('#E1571F'),
         'c_win': QtGui.QColor('#90D889'),
         'c_draw': QtGui.QColor('#9894EB'),
         'c_lose': QtGui.QColor('#DE7C7C'),
         'palette': '#39A1B2'
     }
     self.leagues_tree()
     try:
         self.tree_return()
     except:
         pass
     self.bindings()