Skip to content

Adapting the code for Python 3 #5

@echavess

Description

@echavess

Hi Miili;

I have adapted the code for Python 3.x. However I have encounter an issue when I try to run it:

File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 55, in init
self.setupUI()

File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 67, in setupUI
self._initPlots()

File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 84, in _initPlots
self.canvas = FigureCanvas(self.fig)

File "//anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_qt4agg.py", line 76, in init
FigureCanvasQT.init(self, figure)
File "//anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_qt4.py", line 71, in init
QtWidgets.QWidget.init(self)
TypeError: init() missing 1 required positional argument: 'figure'

Attached is the script. Any ideas where I am missing the positional argument?

Thanks
streamPick.py.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions