Yes, the following works, Thanks. On Sunday, October 6, 2019 at 12:10:31 AM UTC+8, Kenneth Lyons wrote: > > Note that GraphicsWindow is deprecated in favor of GraphicsLayoutWidget, > but in any case, you'll need to make sure you show the window. In addition, > unless you're running this code in an interactive environment (e.g. the > Python/IPython REPL or running a script with the -i flag), you also need to > run the Qt event loop at the end. Does the following work? > > import pyqtgraph as pg > gw = pg.GraphicsWindow() > gw.show() > pg.mkQApp().exec_() > > The documentation here is incomplete but may be helpful: > http://pyqtgraph.org/documentation/qtcrashcourse.html > > On Thursday, October 3, 2019 at 11:08:02 AM UTC-7, Ted Zeng wrote: >> >> when I use the following code, the graph crashed. >> >> import pyqtgraph as pg >> win = pg.GraphicsWindow() >> >> However, when I run the examples, it works. >> >> import pyqtgraph.examples >> pyqtgraph.examples.run() >> >> >> My system configure: >> windows 10, 64 >> python 3.7 >> pyqtgraph-0.10.0.win-amd64.exe >> <http://pyqtgraph.org/downloads/0.10.0/pyqtgraph-0.10.0.win-amd64.exe> >> >> >> I also find similar bug in this post : >> https://bugs.launchpad.net/pyqtgraph/+bug/1782302 >> >> Pleadse advice me how to solve this problem, thanks >> >> Ted >> >
-- 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/1399d323-1c2a-4699-abbc-b6804d217adf%40googlegroups.com.
