Mercurial > lcfOS
view python/ide/qtwrapper.py @ 350:2b02bd286fe9
Fixed A9 hello worle
author | Windel Bouwman |
---|---|
date | Sat, 08 Mar 2014 16:29:03 +0100 |
parents | 11c5a8a70c02 |
children |
line wrap: on
line source
import os from PyQt5 import QtCore, QtGui, QtWidgets, uic from PyQt5.QtCore import pyqtSignal, Qt def abspath(filename): script_path = os.path.abspath(os.path.dirname(__file__)) return os.path.join(script_path, filename) def get_icon(filename): return QtGui.QPixmap(abspath(os.path.join('icons', filename)))