It looks like you're new here. If you want to get involved, click one of these buttons!
Hello,
I have got a problem due to the Python GUI. The widgets (e.g. RadioButton, Label, LineEdit) are not shown in the GUI window. You can see, there is only an empty window. I tested this script under two Linux distributions: it is broken under Debian as well under Ubuntu.
But there are some funny things. Although the items are not visible, they are working. If you know where the button is, you can click on it's place and the connected code is executed.
Another funny thing is, the widgets become visible, if I scale up or down the window. As long as I am pressing my mouse on the window's border, the widgets are shown. But if I release the mouse key, they disappear again.
Under Microsoft Windows, this GUI application is running correctly. It is only an issue on Linux systems. Maybe it is not really a bug in KLayout, but a problem due to the display or window manager (e.g. x11 or KDE).
Thank you for helping!
Comments
Hi,
I had almost the same problem on Tuxedo OS (which is Ubuntu-based) running Wayland. It was actually worse there – fractional scaling wrought havoc on Qt – so all the UI elements behaved like this. I solved it for now by using the Flatpak version. Not ideal, but it works.
Please try without Debugger on, i.e this button unchecked:
The debugger discards paint events. As it runs in the same event loop than the application, setting an event filter in Ruby or Python would otherwise make the debugger being captured in debugging into it's own events.
That is a basic limitation when the debugger is integrated in the application. A solution was to put the debugger into a separate process and let both communicate through some IPC mechanism, but I prefer spending my time elsewhere.
Matthias
Thank you, yes this was helpful. I disabled the debugger, and now it works.