comparison python/ide/qtwrapper.py @ 333:dcae6574c974

Increment to qt5
author Windel Bouwman
date Sun, 09 Feb 2014 15:27:57 +0100
parents
children 11c5a8a70c02
comparison
equal deleted inserted replaced
332:87feb8a23b4d 333:dcae6574c974
1 import os
2 from PyQt5 import QtCore, QtGui, QtWidgets
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