annotate python/ide/qtwrapper.py @ 385:d056b552d3f4

Made better use of layout
author Windel Bouwman
date Thu, 01 May 2014 14:03:12 +0200
parents 11c5a8a70c02
children
rev   line source
333
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
1 import os
343
11c5a8a70c02 Fix ide
Windel Bouwman
parents: 333
diff changeset
2 from PyQt5 import QtCore, QtGui, QtWidgets, uic
333
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
3 from PyQt5.QtCore import pyqtSignal, Qt
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
4
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
5 def abspath(filename):
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
6 script_path = os.path.abspath(os.path.dirname(__file__))
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
7 return os.path.join(script_path, filename)
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
8
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
9 def get_icon(filename):
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
10 return QtGui.QPixmap(abspath(os.path.join('icons', filename)))
dcae6574c974 Increment to qt5
Windel Bouwman
parents:
diff changeset
11