Пример #1
0
    def on_importButton_clicked(self):
        MainWindow.on_importButton_clicked(self)
        if not self.on_clearButton_clicked():
            return False
        
        fdialog = QtGui.QFileDialog()
        fdialog.setWindowTitle('Select pcap file')
        fname = fdialog.getOpenFileName(directory='/')
        fname = unicode(fname)
#        print "file name:%r" % fname
        
        if fname == '':
            return 
        if not self.capturer.open_dump(fname):
            return
        self.cap_thread = threading.Thread(target=self.capturer.start_capture)
        self.cap_thread.start()
        self.ana_thread = threading.Thread(target=self.analyzer.start_analize)
        self.ana_thread.start()