On Wed, Jul 03, 2019 at 11:42:16AM +0200, Karsten Hilbert wrote:
> I am seeing this exception with some code ported from wxp2/3 to wxp4:
>
> 2019-07-02 12:13:58 DEBUG gm.gui [3081825984 MainThread] (/home/ncq/Projekte/gm/git/gnumed/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx() #198): unhandled exception caught:
> Traceback (most recent call last):
> File "/home/ncq/Projekte/gm/git/gnumed/gnumed/Gnumed/wxpython/gmTextCtrl.py", line 386, in _on_expando_needs_layout
> y_view = self.ViewStart[1]
> AttributeError: 'cProgressNotesEAPnl' object has no attribute 'ViewStart'
...
> which fails, due to the .ViewStart property not available anymore.
>
> I have not been able to derive from documentation what I
> should use instead.
However, single-stepping through dir(wx.ScrolledWindow)
showed that .GetViewStart() still exists, it simply seems to
not be exposed as a Property anymore.