Open Grenny1 opened 5 months ago
Hi Martin On this page:
https://www.pythonguis.com/faq/built-in-qicons-pyqt/
The line in the PyQt5 code:
layout.addWidget(btn, n / 4, n % 4)
Throws up a float error.
I think the line should be:
layout.addWidget(btn, int(n / 4), int(n % 4))
Thanks for all the examples. They've helped me a lot.
Hi Martin On this page:
https://www.pythonguis.com/faq/built-in-qicons-pyqt/
The line in the PyQt5 code:
layout.addWidget(btn, n / 4, n % 4)
Throws up a float error.
I think the line should be:
layout.addWidget(btn, int(n / 4), int(n % 4))
Thanks for all the examples. They've helped me a lot.