Abe404 / RootPainter3D

RootPainter3D: Interactive-machine-learning enables rapid and accurate contouring for radiotherapy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help > Keyboard shortcuts does not work

orting opened this issue · comments

The "Keyboard shortcuts" menu item does not display anything. It prints the following error

Traceback (most recent call last):
File "main.py", line 80, in
init_root_painter()
File "main.py", line 66, in init_root_painter
exit_code = app_context.app.exec_()
File "/RootPainter3D/painter/src/main/python/root_painter.py", line 422, in show_shortcut_window
self.shortcut_window = ShortcutWindow()
File "/RootPainter3D/painter/src/main/python/about.py", line 798, in init
self.initUI()
File "/RootPainter3D/painter/src/main/python/about.py", line 859, in initUI
table.horizontalHeader().sectionSizeFromContents(True)
RuntimeError: no access to protected functions or signals for objects not created from Python

Linux Debian 10
Python 3.7.3
PyQt 5.14.2

Can be solved by removing

table.horizontalHeader().sectionSizeFromContents(True)

It then looks like this screenshot.
Skærmbillede fra 2021-11-15 15-52-00

Fixed in: 2b0dcd9

This appears to be a linux only bug but it's such a non essential feature that I have just deleted the auto resize to contents line per your suggestion.