I have a gui witch is created with qt creator and pyside. Now to show the plots i want i am using something like:
class MyGraphWindow(pg.GraphicsLayoutWidget):
windowClicked = QtCore.Signal(int, int)
activeGrapchanged = QtCore.Signal(int)
closeRequest = QtCore.Signal(int)
newplot = QtCore.Signal(int)
def __init__(self, winNr):
super(MyGraphWindow, self).__init__()
self.graphs = {}
self.winNr = winNr
And then i have a function wich will add a plot into the window using addItem.
this is the code for the plotitem:
class PltItem(pg.PlotItem):
pltClicked = QtCore.Signal(int)
def __init__(self, graphnr, parent=None):
super(PltItem, self).__init__(parent, axisItems={'bottom': TimeAxis()})
self.graphnr = graphnr
self.stackedNumber = 0
self.selecteddata = []
self.showGrid(True, True)
self.plotters = []
colors = ('y', 'g', 'r', 'b', 'w', 'm', 't')
Now the Signal() is not working, i get the error message :
AttributeError: 'PySide.QtCore.Signal' object has no attribute 'connect'
This error was never present before i installed pyside and pyqtgraph again. I notice that my Signal method approche is the same many of the classes for pyqtgraph.
So the question is, what gives ???
-Aleks