I am having this error
TypeError: could not convert 'SourceEditor' to 'Dialog, with new wxPython 4.2.0, when starting my app, RIDE. This is not happening in my current development environment (Fedora 36, Python 3.10.6 and wxPython 4.0.7).
The error happens in Windows and Linux (and probably in Mac) for this version wxPython 4.2.0.
Like I mention in the Issue in RIDE project for this “TypeError: could not convert ‘SourceEditor’ to ‘Dialog’”, the offending class depends on wx.Panel, and uses a class based on wx.Dialog as an object.
Here is the note I have added to the issue.
class SourceEditor(wx.Panel, RIDEDialog): # (...) with superclass init: wx.Panel.__init__(self, parent) self.dlg = RIDEDialog()
class RIDEDialog(wx.Dialog): # (...) with superclass init: wx.Dialog.__init__(self, parent=parent, title=title, size=size, style=style)
Please help me in making the code functional, and clarify if this coding style is wrong.
I did not inspected agw.aui.auibook.py for changes that may help understand why now the error is happening.