-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathqt.py
51 lines (47 loc) · 1.28 KB
/
qt.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
"""
Copyright (c) 2013-present Matic Kukovec.
Released under the GNU GPL3 license.
For more information check the 'LICENSE.txt' file.
For complete license information of the dependencies, check the 'additional_licenses' directory.
"""
"""
PyQt4 / PyQt5 / PyQt6 selection
NOTE:
Objects are imported so that they can be used either directly with qt.QSize,
or by specifiying the full namespace with qt.PyQt.QtCore.QSize!
"""
try:
import PyQt6.Qsci
import PyQt6.QtCore
import PyQt6.QtGui
import PyQt6.QtWidgets
import PyQt6.sip
PyQt = PyQt6
sip = PyQt6.sip
from PyQt6.Qsci import *
from PyQt6.QtCore import *
from PyQt6.QtGui import *
from PyQt6.QtWidgets import *
PYQT_MODE = 6
except:
try:
import PyQt5.Qsci
import PyQt5.QtCore
import PyQt5.QtGui
import PyQt5.QtWidgets
PyQt = PyQt5
from PyQt5.Qsci import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
PYQT_MODE = 5
except:
import PyQt4.Qsci
import PyQt4.QtCore
import PyQt4.QtGui
PyQt = PyQt4
from PyQt4.Qsci import *
from PyQt4.QtCore import *
from PyQt4.QtGui import *
PYQT_MODE = 4