Ejemplo n.º 1
0
class App(QtGui.QApplication):
    def __init__(self, sys_argv):
        super(App, self).__init__(sys_argv)
        self.main = Main()
        self.main.show()

        self.check_in_files()

    def check_in_files(self):
        """
        Checks the in_files directory to see if there are any files to be
        uploaded.  If files are present, the tourney info window is shown.
        """
        if len(InFiles().list_files()) > 0:
            new_tourneys = TourneyInfoWindow(game_info, self.main)
            new_tourneys.exec_()
Ejemplo n.º 2
0
    def __init__(self, sys_argv):
        super(App, self).__init__(sys_argv)
        self.main = Main()
        self.main.show()

        self.check_in_files()