-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
32 lines (26 loc) · 818 Bytes
/
__init__.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
# Copyright (c) 2022 5@xes
# Based on the TabAntiWarping plugin and licensed under LGPLv3 or higher.
VERSION_QT5 = False
try:
from PyQt6.QtCore import QT_VERSION_STR
except ImportError:
VERSION_QT5 = True
from . import TabPlus
from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog("tabplus")
def getMetaData():
if not VERSION_QT5:
QmlFile="qml/qml_qt6/CustomTab.qml"
else:
QmlFile="qml/qml_qt5/CustomTab.qml"
return {
"tool": {
"name": i18n_catalog.i18nc("@label", "Tab Plus"),
"description": i18n_catalog.i18nc("@info:tooltip", "Add Automatique Tab"),
"icon": "tool_icon.svg",
"tool_panel": QmlFile,
"weight": 11
}
}
def register(app):
return { "tool": TabPlus.TabPlus() }