Skip to content

Adapting the code for Python 3 #5

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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