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 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

Dialog window class

  class GUIgraph (QtGui.QDialog): def __init __ (self, parent = none): QtGui.QDialog .__ init __ ( Self, Parents) Print   

Functions that create new windows

  This is a histograph dialog class function 'self.graph = Ui_histogram_Dialog () self. Graph.setupUi (self)   

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

  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 ()   

In a method you are calling QtGui .QWidget .__ Init __ ??? Parents 'constructor' is the method, and you call it from sub-class override __init __ To do

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -