-
Notifications
You must be signed in to change notification settings - Fork 144
/
Copy pathproject.py
29 lines (21 loc) · 821 Bytes
/
project.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""The build configuration file for QHexEdit, used by sip."""
import os
from os.path import abspath, join
from sipbuild import Option
from pyqtbuild import PyQtBindings, PyQtProject
import PyQt5
class QHexEditProject(PyQtProject):
"""The QHexEdit Project class."""
def __init__(self):
super().__init__()
self.bindings_factories = [QHexEditBindings]
def update(self, tool):
"""Allows SIP to find PyQt5 .sip files."""
super().update(tool)
self.sip_include_dirs.append(join(PyQt5.__path__[0], 'bindings'))
class QHexEditBindings(PyQtBindings):
"""The QHexEdit Bindings class."""
def __init__(self, project):
super().__init__(project, name='QHexEdit',
sip_file='qhexedit.sip',
qmake_QT=['widgets'])