Mercurial > lcfOS
annotate python/ide/qtwrapper.py @ 397:5d03c10fe19d
Small changes
author | Windel Bouwman |
---|---|
date | Thu, 29 May 2014 10:47:28 +0200 |
parents | 11c5a8a70c02 |
children |
rev | line source |
---|---|
333 | 1 import os |
343 | 2 from PyQt5 import QtCore, QtGui, QtWidgets, uic |
333 | 3 from PyQt5.QtCore import pyqtSignal, Qt |
4 | |
5 def abspath(filename): | |
6 script_path = os.path.abspath(os.path.dirname(__file__)) | |
7 return os.path.join(script_path, filename) | |
8 | |
9 def get_icon(filename): | |
10 return QtGui.QPixmap(abspath(os.path.join('icons', filename))) | |
11 |