On 9/24/2021 12:46 AM, Mohsen Owzar wrote:
Hi Guys
I've written a GUI using PyQt5 and in there I use StyleSheets (css) for the
buttons and labels to change their background- and foreground-colors and their
states as well.
Because my program doesn't function correctly, I try to debug it in my IDE
(PyCharm).
The problem is that during debugging, when I change some attributes of a button
or label, let say its background-color, I can not see this modification of the
color until the whole method or function is completed.
I believe that I have seen somewhere during my searches and googling that one
can flush or update the GUI after each step/action is done.
But until now I couldn't manage it and I don't know where I have to invoke
flush/update command in PyCharm.
If anyone has done this before and knows about it, I would very appreciate
seeing his solution.
Regards
Mohsen
screen:
form.repaint()
individual widgets:
form.widget.repaint()
--
https://mail.python.org/mailman/listinfo/python-list