Merge two pieces of code
Moved
Unsolved
Qt for Python
-
@john_hobbyist said in Merge two pieces of code:
Do you see the problem?
Bluntly speaking, your MyMplCanvas
__init__
implementation is a mess. You are calling the init method of QLabel, do some stuff, then call the base class init implementation through super, set the parent independently, then you manage to use a method called imshow which is also a method from OpenCV's highgui module.You really should start by cleaning this up.
Do things step by step.
First question is: taking the rubber band part out of the equation for now, why do you need all these modifications on the MplCanvas class ? Are you sure you are using it correctly ?
-
This post is deleted!