PyQt5 QTextBrowser – setText – Alignment issue?
I am trying to make a simple GUI console using PyQt5. On trying to print the text using QTextBrowser – setText, it loses alignment and looks bad. but the text is aligned in my python console
I am trying to make a simple GUI console using PyQt5. On trying to print the text using QTextBrowser – setText, it loses alignment and looks bad. but the text is aligned in my python console
I have a code which looks like:
What I have done so far, using PyQt classes:
is there a way to detect if user trying to close window?
For example, in Tkinter we can do something like this:
As far as I can see, if an exception occurs in a slot under PyQt, the exception is printed to screen, but not bubbled. This creates a problem in my testing strategy, because if an exception occurs in a slot, I will not see the test fail.