Esempio n. 1
0
 def show(self):
     sender = self.pushButton_2.sender()  #获取信号
     In.drawResults()
     png = QtGui.QPixmap('bar.png').scaled(self.figLabel.width(),
                                           self.figLabel.height())
     self.figLabel.setPixmap(png)
     self.textBrowser.setText(
         datetime.datetime.now().strftime('%b-%d-%Y %H:%M:%S') +
         ': Statistic Results was showed!\n')
Esempio n. 2
0
 def showThreats(self):
     sender = self.pushButton_3.sender()  #获取信号
     g1 = In.matchThreats()
     png = QtGui.QPixmap('g1.svg').scaled(self.figLabel.width(),
                                          self.figLabel.height())
     self.figLabel.setPixmap(png)
     self.textBrowser.setText(
         datetime.datetime.now().strftime('%b-%d-%Y %H:%M:%S') +
         ': Real-time Threats Path Results was showed!\n')
Esempio n. 3
0
 def show_pie(self):
     sender = self.radioButton_2.sender()  # 获取信号
     In.drawResults()
     png = QtGui.QPixmap('pie.png').scaled(self.figLabel.width(),
                                           self.figLabel.height())
     self.figLabel.setPixmap(png)