def __init__(self, mainWindows):
        QWidget.__init__(self)
        uic.loadUi(directory + "/../ui/stats_tipster.ui", self)
        gettext.textdomain("betcon")
        gettext.bindtextdomain("betcon", "../lang/mo" + mainWindows.lang)
        gettext.bindtextdomain("betcon", "/usr/share/locale" + mainWindows.lang)
        self.mainWindows = mainWindows
        self.mainWindows.setWindowTitle(_("Stats Tipsters") + " | Betcon v" + mainWindows.version)
        self.translate()
        try:
            self.initData()
        except Exception:
            print(_("Error trying to load the data."))
            self.setEnabled(False)

        self.cmbYear.activated.connect(self.updateMonths)
        self.cmbMonth.activated.connect(self.updateTree)