Mercurial > lcfOS
diff python/ide/qtwrapper.py @ 333:dcae6574c974
Increment to qt5
author | Windel Bouwman |
---|---|
date | Sun, 09 Feb 2014 15:27:57 +0100 |
parents | |
children | 11c5a8a70c02 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/ide/qtwrapper.py Sun Feb 09 15:27:57 2014 +0100 @@ -0,0 +1,11 @@ +import os +from PyQt5 import QtCore, QtGui, QtWidgets +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))) +