GTK error on Destructor of PlotWidget caused by missing parent Widget
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyqtgraph |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
i report a bug using PlotWidget. It appears if I closed my application(code below). But doesn't occur if watches every tab widget.
propably this could help regarding to this article http://
errors messages:
(python:30803): Gtk-CRITICAL **: IA__gtk_
(python:30803): Gtk-CRITICAL **: IA__gtk_
(python:30803): Gtk-CRITICAL **: IA__gtk_
(python:30803): Gtk-CRITICAL **: IA__gtk_
(python:30803): Gtk-CRITICAL **: IA__gtk_
.....
code snippet below:
app = QtGui.QApplicat
mw = QtGui.QMainWindow()
cw = QtGui.QWidget(None)
cwl = QtGui.QGridLayo
tw = QtGui.QTabWidge
cwl.addWidget(tw)
mw.setCentralWi
mw.resize(1024,600)
class MachineView():
def __init__(self, machine):
self.data = []
self.w = QtGui.QWidget(tw)
self.l = QtGui.QVBoxLayo
self.pw = pg.PlotWidget(
self.pwzoom = pg.PlotWidget(
self.lr = pg.LinearRegion
def updateData(self):
self.data = [1,2,3,2]# something what you want
def getWidget(self):
return self.w
def _updatePlot(self):
def _updateRegion(
class Monitor():
def __init__(self):
for machine in self.machines:
pw = MachineView(
monitor = Montior()
mw.show()
description: | updated |
I get this same issue with the following simple test program:
import pyqtgraph
from pyqtgraph.Qt import QtCore, QtGui
app = QtGui.QApplicat ion([]) PlotWidget( )
plot = pyqtgraph.