The notepad application example runs without problems on my Raspberry Pi. But the menu bar shows no icons. just blank rectangles. They do work if I click on them. What could be the problem?
Open the file notepad.py and go after this:
def __init__(self, *args, **kwargs): super(MainWindow, self).__init__(*args, **kwargs)
add the following lines:
icon = QIcon(os.path.join('images', 'blue-flolder-open-document.png')) print("availableSizes:", icon.availableSizes())
the output on the terminal should be:
availableSizes: [PyQt5.QtCore.QSize(16, 16)]
if it is different, for example:
try to replace all the occurrences of:
where path is the absolute path of your images folder for example:
path = '/home/USER_NAME/notepad/forum/images'
if the notepad folder is in the
To support developers in [[ countryRegion ]] I give a [[ localizedDiscount[couponCode] ]]% discount with the code [[ couponCode ]] — Enjoy!
For [[ activeDiscount.description ]] I'm giving a [[ activeDiscount.discount ]]% discount with the code [[ couponCode ]] — Enjoy!