Skip to content

Commit

Permalink
fix formatting in inbrowserhelp
Browse files Browse the repository at this point in the history
  • Loading branch information
hugow committed Apr 2, 2024
1 parent 3fb6f8d commit 99a541d
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions src/packages/inbrowserhelp/inbrowserhelp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
"""
inbrowserhelp example: inbrowserhelp sample
"""
import webbrowser
import menuhook
from sys import version_info
from pymxs import runtime as rt
import webbrowser
import menuhook
MAX_VERSION = rt.maxversion()[7]
MAX_HELP = f"help.autodesk.com/view/MAXDEV/{MAX_VERSION}/ENU"
MAX_HELP = f"help.autodesk.com/view/MAXDEV"

PYTHON_VERSION = f"{version_info[0]}.{version_info[1]}"

MAX_VERSION_TOPICS = {
2021: [
("gettingstarted",
("gettingstarted",
"Getting Started With Python in 3ds Max",
"help.autodesk.com/view/MAXDEV/2021/ENU/?guid=Max_Python_API_about_the_3ds_max_python_api_html",
f"{MAX_HELP}/2021/ENU/?guid=Max_Python_API_about_the_3ds_max_python_api_html",
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
("pymxs",
("pymxs",
"Pymxs Online Documentation",
"help.autodesk.com/view/MAXDEV/2021/ENU/?guid=Max_Python_API_using_pymxs_pymxs_module_html",
f"{MAX_HELP}/2021/ENU/?guid=Max_Python_API_using_pymxs_pymxs_module_html",
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
],
2022: [
("gettingstarted",
("gettingstarted",
"Getting Started With Python in 3ds Max",
"help.autodesk.com/view/MAXDEV/2022/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
f"{MAX_HELP}/2022/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
("pymxs",
("pymxs",
"Pymxs Online Documentation",
"help.autodesk.com/view/MAXDEV/2022/ENU/?guid=MAXDEV_Python_using_pymxs_html",
f"{MAX_HELP}/2022/ENU/?guid=MAXDEV_Python_using_pymxs_html",
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
],
2023: [
("gettingstarted",
("gettingstarted",
"Getting Started With Python in 3ds Max",
"help.autodesk.com/view/MAXDEV/2023/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
f"{MAX_HELP}/2023/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
("pymxs",
("pymxs",
"Pymxs Online Documentation",
"help.autodesk.com/view/MAXDEV/2023/ENU/?guid=MAXDEV_Python_using_pymxs_html",
f"{MAX_HELP}/2023/ENU/?guid=MAXDEV_Python_using_pymxs_html",
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
],
2024: [
("gettingstarted",
("gettingstarted",
"Getting Started With Python in 3ds Max",
"help.autodesk.com/view/MAXDEV/2024/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
f"{MAX_HELP}/2024/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
("pymxs",
("pymxs",
"Pymxs Online Documentation",
"help.autodesk.com/view/MAXDEV/2024/ENU/?guid=MAXDEV_Python_using_pymxs_html",
f"{MAX_HELP}/2024/ENU/?guid=MAXDEV_Python_using_pymxs_html",
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
],
2025: [
("gettingstarted",
("gettingstarted",
"Getting Started With Python in 3ds Max",
"help.autodesk.com/view/MAXDEV/2025/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
f"{MAX_HELP}/2025/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
("pymxs",
("pymxs",
"Pymxs Online Documentation",
"help.autodesk.com/view/MAXDEV/2025/ENU/?guid=MAXDEV_Python_using_pymxs_html",
f"{MAX_HELP}/2025/ENU/?guid=MAXDEV_Python_using_pymxs_html",
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
]
}
Expand All @@ -70,27 +70,27 @@ def get_version_topics(version):

V_TOPICS = get_version_topics(MAX_VERSION)

PYSIDE6_DOC = ("pyside6",
PYSIDE6_DOC = ("pyside6",
"Qt for Python Documentation (PySide6)",
"doc.qt.io/qtforpython-6/index.html",
"E0E5F945-CD55-404A-840B-81540829E4C4")

PYSIDE2_DOC = ("pyside2",
PYSIDE2_DOC = ("pyside2",
"Qt for Python Documentation (PySide2)",
"doc.qt.io/qtforpython-5/contents.html",
"13EEE11E-1BBB-470E-B757-F536D91215A9")

TOPICS = V_TOPICS + [
("howtos",
("howtos",
"Python HowTos Github Repo",
"github.com/ADN-DevTech/3dsMax-Python-HowTos",
"2504EEA5-27D6-4EA0-A7A3-B3C058777ADC"),
("samples",
("samples",
"Python samples (Github Repo)",
"github.com/ADN-DevTech/3dsMax-Python-HowTos/tree/master/src/samples",
"8ED9D9CC-3799-435D-8016-0F8F16D84004"),
PYSIDE6_DOC if MAX_VERSION >= 2025 else PYSIDE2_DOC,
("python",
("python",
f"Python {PYTHON_VERSION} Documentation",
f"docs.python.org/{PYTHON_VERSION}/",
"B51BCC07-D9E3-439C-AC88-85BD64B97912")
Expand All @@ -112,4 +112,4 @@ def startup():
tooltip=topic[1],
in2025_menuid=menuhook.BROWSE_DOCUMENTATION,
id_2025=topic[3])

0 comments on commit 99a541d

Please sign in to comment.