def __init__(self, parent = None):
        Analysis_ui.__init__(self)
        self.parent = parent
        self.action = ProtocolCountGraphAction(self, parent)
        
        menuAnalysis = self.parent.GetMenu("Analysis")
        if menuAnalysis != None:
            menuAnalysis.addAction(self.action)

        toolBarAnalysis = self.parent.GetToolBar("Analysis")
        if toolBarAnalysis != None:
            pcgPixmap = QPixmap(os.path.dirname(os.path.realpath(__file__)) + '/barGraph.png')
            pcgIcon = QIcon(pcgPixmap)
            self.pcgButton = QToolButton(self.parent)
            self.pcgButton.setIcon(pcgIcon)
            self.pcgButton.setIconSize(QSize(32, 32))
            self.pcgButton.clicked.connect(self.OnTrigger)
            toolBarAnalysis.addWidget(self.pcgButton)
示例#2
0
    def __init__(self, parent = None):
        Analysis_ui.__init__(self)
        self.parent = parent
        self.action = PacketSizeGraphAction(self, parent)
        
        menuAnalysis = self.parent.GetMenu("Analysis")
        if menuAnalysis != None:
            menuAnalysis.addAction(self.action)

        toolBarAnalysis = self.parent.GetToolBar("Analysis")
        if toolBarAnalysis != None:
            pSizePixmap = QPixmap(os.path.dirname(os.path.realpath(__file__)) + '/pointChart.png')
            pSizeIcon = QIcon(pSizePixmap)
            self.pSizeButton = QToolButton(self.parent)
            self.pSizeButton.setIcon(pSizeIcon)
            self.pSizeButton.setIconSize(QSize(32, 32))
            self.pSizeButton.clicked.connect(self.OnTrigger)
            toolBarAnalysis.addWidget(self.pSizeButton)
    def __init__(self, parent=None):
        Analysis_ui.__init__(self)
        self.parent = parent
        self.action = ProtocolCountGraphAction(self, parent)

        menuAnalysis = self.parent.GetMenu("Analysis")
        if menuAnalysis != None:
            menuAnalysis.addAction(self.action)

        toolBarAnalysis = self.parent.GetToolBar("Analysis")
        if toolBarAnalysis != None:
            pcgPixmap = QPixmap(
                os.path.dirname(os.path.realpath(__file__)) + '/barGraph.png')
            pcgIcon = QIcon(pcgPixmap)
            self.pcgButton = QToolButton(self.parent)
            self.pcgButton.setIcon(pcgIcon)
            self.pcgButton.setIconSize(QSize(32, 32))
            self.pcgButton.clicked.connect(self.OnTrigger)
            toolBarAnalysis.addWidget(self.pcgButton)