python/examples/main.py - add instructions to generate rc_assets.py

This commit is contained in:
Allen Winter
2021-09-30 15:57:22 -04:00
parent aaa64bf769
commit 3eb52c46b1
2 changed files with 8 additions and 2 deletions

View File

@@ -15,7 +15,10 @@ from MyMainWindow import MyMainWindow
from PySide6 import QtWidgets, QtCore
import sys
import rc_assets
try:
import rc_assets
except:
exit("Oops.. rc_assets needs to be generated first.\nPlease run:\n rcc -g python -o rc_assets.py ../../examples/dockwidgets/resources_example.qrc\n(Make sure to use the rcc from the Qt6 version used to generate the bindings!)")
if __name__ == "__main__":
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)