def initializePage(self):
        log.addHandler(self.guihandler) #@UndefinedVariable

        path = self.field('filePath').toPyObject()
        self.parent.index_maker.set_path(str(path))
        
        self.logs.setText('')
        
        n_files = self.parent.index_maker.get_n_files()
        
        self.progressBar.setMaximum(n_files)
        self.progressBar.setValue(0)
        
        # This thread will update the GUI
        self.thread = ReferenceExtractionThread(self, self.parent.index_maker,
                                                n_files)

        # Connect thread signals
        self.connect(self.thread, QtCore.SIGNAL("finished()"),
                     self.finish)
        self.connect(self.thread, QtCore.SIGNAL("terminated()"),
                     self.finish)
        self.connect(self.thread, QtCore.SIGNAL("output(int)"),
                     self.updateProgressBar)
        
        self.thread.start()
        
        # Start making the index
        self.parent.index_maker.make_index()
    def initializePage(self):
        log.addHandler(self.guihandler)  # @UndefinedVariable

        url = self.field("url").toPyObject()
        log.info("Starting training for URL: %s" % url)  # @UndefinedVariable

        self.thread = WrapperTrainingThread(self, url)
        # Connect thread signals
        self.connect(self.thread, QtCore.SIGNAL("finished()"), self.finish)
        self.connect(self.thread, QtCore.SIGNAL("terminated()"), self.finish)
        self.thread.start()
    def initializePage(self):
        log.addHandler(self.guihandler)  #@UndefinedVariable
        path = self.field('filePath').toPyObject()
        log.debug("Starting importing references from: %s" %
                  path)  #@UndefinedVariable

        self.thread = ReferenceImporterThread(str(path), self)
        # Connect thread signals
        self.connect(self.thread, QtCore.SIGNAL("finished()"), self.finish)
        self.connect(self.thread, QtCore.SIGNAL("terminated()"), self.finish)
        self.thread.start()
    def initializePage(self):
        log.addHandler(self.guihandler)  #@UndefinedVariable

        url = self.field('url').toPyObject()
        log.info("Starting training for URL: %s" % url)  #@UndefinedVariable

        self.thread = WrapperTrainingThread(self, url)
        # Connect thread signals
        self.connect(self.thread, QtCore.SIGNAL("finished()"), self.finish)
        self.connect(self.thread, QtCore.SIGNAL("terminated()"), self.finish)
        self.thread.start()
 def initializePage(self):
     log.addHandler(self.guihandler) #@UndefinedVariable
     path = self.field('filePath').toPyObject()
     log.debug("Starting importing references from: %s" % path) #@UndefinedVariable
     
     self.thread = ReferenceImporterThread(str(path), self)
     # Connect thread signals
     self.connect(self.thread, QtCore.SIGNAL("finished()"),
                  self.finish)
     self.connect(self.thread, QtCore.SIGNAL("terminated()"),
                  self.finish)
     self.thread.start()