On 13/05/2020 5:01 am, Wahabo Ouedraogo wrote:

Greetings,

When i run my code, i obtain this error:

*Traceback (most recent call last):*
*  File "d:/Documents/VISUAL STUDIO CODE EXO/Untitled-f.py", line 58, in <module>*
*    w = Window()*
*  File "d:/Documents/VISUAL STUDIO CODE EXO/Untitled-f.py", line 49, in __init__*
*    self.dockArea = pg.DockArea()*
*AttributeError: module 'pyqtgraph' has no attribute 'DockArea'*
*PS D:\Documents\VISUAL STUDIO CODE EXO\MEMOIRE> & C:/Users/ThinkPad/AppData/Local/Programs/Python/Python38/python.exe "d:/Documents/VISUAL STUDIO CODE EXO/Untitled-f.py"*
*PS D:\Documents\VISUAL STUDIO CODE EXO\MEMOIRE> *
*
*
*here, the script:*
*
*
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
import pyqtgraph as pg
/.../
        self.dockArea = pg.DockArea()

Perfectly normal. The package pyqtgraph has no DockArea attribute. It suffices to type *dir(pg)* to see it, couldn't you do it yourself before complaining? No idea where did you copy the included script from, but I suggest to verify:

*from pyqtgraph.dockarea import DockArea*

At least it works here.

Jerzy Karczmarczuk
/Caen, France/




--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

--
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/c7f2b842-91bf-37ba-dc73-55bb34cbd1e3%40gmail.com.

Reply via email to