-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapping_version.py
More file actions
64 lines (62 loc) · 2.55 KB
/
Copy pathmapping_version.py
File metadata and controls
64 lines (62 loc) · 2.55 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
from qgis.PyQt.QtCore import Qt
from qgis.PyQt.QtWidgets import QSizePolicy,QFrame,QFileDialog,QDialog,QMessageBox
# QT6
try :
# Dialog = Qt.WindowType.Dialog
WindowCloseButtonHint = Qt.WindowType.WindowCloseButtonHint
# WindowTitleHint = Qt.WindowType.WindowTitleHint
WindowStaysOnTopHint = Qt.WindowType.WindowStaysOnTopHint
Checked = Qt.CheckState.Checked
Unchecked = Qt.CheckState.Unchecked
# ItemIsEnabled = Qt.ItemFlag.ItemIsEnabled
# ItemIsUserCheckable = Qt.ItemFlag.ItemIsUserCheckable
# MatchExactly = Qt.MatchFlag.MatchExactly
# RightSide = QTabBar.ButtonPosition.RightSide
# LeftSide = QTabBar.ButtonPosition.LeftSide
# Warning = QMessageBox.Icon.Warning
# YesRole = QMessageBox.ButtonRole.YesRole
# AcceptRole = QMessageBox.ButtonRole.AcceptRole
ScrollBarAlwaysOff = Qt.ScrollBarPolicy.ScrollBarAlwaysOff
ScrollBarAsNeeded = Qt.ScrollBarPolicy.ScrollBarAsNeeded
CustomContextMenu = Qt.ContextMenuPolicy.CustomContextMenu
Expanding = QSizePolicy.Policy.Expanding
Fixed = QSizePolicy.Policy.Fixed
MinimumExpanding = QSizePolicy.Policy.MinimumExpanding
VLine = QFrame.Shape.VLine
Directory = QFileDialog.FileMode.Directory
ShowDirsOnly = QFileDialog.Option.ShowDirsOnly
DontResolveSymlinks = QFileDialog.Option.DontResolveSymlinks
Accept = QFileDialog.DialogLabel.Accept
Accepted = QFileDialog.DialogCode.Accepted
No = QMessageBox.StandardButton.No
Yes = QMessageBox.StandardButton.Yes
# QT5
except :
# Dialog = Qt.Dialog
WindowCloseButtonHint = Qt.WindowCloseButtonHint
# WindowTitleHint = Qt.WindowTitleHint
WindowStaysOnTopHint = Qt.WindowStaysOnTopHint
Checked = Qt.Checked
Unchecked = Qt.Unchecked
# ItemIsEnabled = Qt.ItemIsEnabled
# ItemIsUserCheckable = Qt.ItemIsUserCheckable
# MatchExactly = Qt.MatchFlag.MatchExactly
# RightSide = QTabBar.RightSide
# LeftSide = QTabBar.LeftSide
# Warning = QMessageBox.Warning
# YesRole = QMessageBox.YesRole
# AcceptRole = QMessageBox.AcceptRole
ScrollBarAlwaysOff = Qt.ScrollBarAlwaysOff
ScrollBarAsNeeded = Qt.ScrollBarAsNeeded
CustomContextMenu = Qt.CustomContextMenu
Expanding = Qt.Expanding
Fixed = Qt.Fixed
MinimumExpanding = Qt.MinimumExpanding
VLine = Qt.VLine
Directory = Qt.Directory
ShowDirsOnly = Qt.ShowDirsOnly
DontResolveSymlinks = Qt.DontResolveSymlinks
Accept = QFileDialog.Accept
Accepted = QDialog.Accepted
No = QMessageBox.No
Yes = QMessageBox.Yes