I am trying to import one of the pyqtgraph Example modules. I call this 
module 
plot.py


I want to show the plot when a button is clicked. I am very new to PyQt, so 
I am probably not going about this the right way.

Here is what I did:

self.pushButton.clicked.connect(self.barPlot)



def barPlot(self):

    import plot


This works as expected, the plot shows in a pop up window when the button 
is clicked.

But, when I close the window with the plot and click on the button the 
second time, to show the plot again, nothing happens.
I have some ideas why this is happening, but I don't know enough about PyQt 
yet to solve this problem.

Any help will be greatly appreciated.

Thanks.

Cheers,

Joe

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/dc1190a7-c257-4990-a4d4-7c5098423a78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to