[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <bug>: on activation of progress notes tab
From: |
Karsten Hilbert |
Subject: |
Re: <bug>: on activation of progress notes tab |
Date: |
Fri, 31 Mar 2023 14:08:17 +0200 |
Am Fri, Mar 31, 2023 at 07:59:49AM +0200 schrieb Marc Angermann:
> user comment : on activation of progress notes tab
>
> client version: 1.8.10
>
> Exception:
>
> type: <class 'TypeError'>
> value: SplitterWindow.SetSashPosition(): argument 1 has unexpected type
> 'float'
>
> Traceback:
>
> File
> "/home/marc/gnumed/gnumed-client.1.8.10/Gnumed/wxpython/gmHorstSpace.py",
> line 420, in _on_notebook_page_changed
> target_page.receive_focus()
> File "/home/marc/gnumed/gnumed-client.1.8.10/Gnumed/wxpython/gmPlugin.py",
> line 172, in receive_focus
> self._widget.repopulate_ui()
> File
> "/home/marc/gnumed/gnumed-client.1.8.10/Gnumed/wxpython/gmSOAPWidgets.py",
> line 627, in repopulate_ui
> self.__refresh_problem_list()
> File
> "/home/marc/gnumed/gnumed-client.1.8.10/Gnumed/wxpython/gmSOAPWidgets.py",
> line 509, in __refresh_problem_list
> self.__splitter.SetSashPosition((splitter_width / 2), True)
This is fixed for 1.8.11. It was a leftover from Python 2->3
division symbol conversion.
Meanwhile, one can edit line 509 in
Gnumed/wxpython/gmSOAPWidgets.py
to read
self.__splitter.SetSashPosition((splitter_width // 2), True)
Notice the TWO //'s.
Best,
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B