python - PyQt multiple QDilaog class signal catching -
I have a PyQt GUI application that has multiple QDialog windows which I use to plot data using the matplotlib widget I am This is the code I am using below.
Only one emitted signal has been caught. The QDialog that has been created captures it, it is an emitted signal. If the Dialog window class Functions that create new windows DEF TempgraphFunc (self): QtGui.QWidget .__ init __ (self, parent = none) self.TempBox = GUIgraph () self.TempBox. SetWindowTitle ("tempreter") self.NewTemp_signal.connect (self.TempPlotFunc) self.TempBox.show () Def RealgraphFunc (self): Qt Gui.QWidget .__ init __ (self, parent = none) self.RealBox = GUIgraph () self.RealBox.setWindowTitle ("Real Space") self.NewReal_signal.connect (self.RealPlotFunc) print 'real connected 'Self.RealBox.show () In another function I emit a signal In a method you are calling TempBox dialog has been created, then
NewTemp_signal has been caught or if the
RealBox dialog has been created, then
NewReal_signal is caught. But, the other signal is not caught. How do I get both hints to update all the dialogues? Thanks
class GUIgraph (QtGui.QDialog): def __init __ (self, parent = none): QtGui.QDialog .__ init __ ( Self, Parents) Print
This is a histograph dialog class function 'self.graph = Ui_histogram_Dialog () self. Graph.setupUi (self)
def loadFiles (self): .... The text after the new "newprint" = "text"> < P> I think you have architectural problems. I do not see all my code but less Less than this is very weird:
def TempgraphFunc (self): QtGui.QWidget .__ init __ (self, parent = none) self.TempBox = GUIgraph () self.TempBox .setWindowTitle ("Temperature") self.NewTemp_signal.connect (self.TempPlotFunc) self.TempBox.show ()
QtGui .QWidget .__ Init __ ??? Parents 'constructor' is the method, and you call it from sub-class override
__init __ To do
Comments
Post a Comment