Skip to content

Commit 99a541d

Browse files
committed
fix formatting in inbrowserhelp
1 parent 3fb6f8d commit 99a541d

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
11
"""
22
inbrowserhelp example: inbrowserhelp sample
33
"""
4-
import webbrowser
5-
import menuhook
64
from sys import version_info
75
from pymxs import runtime as rt
6+
import webbrowser
7+
import menuhook
88
MAX_VERSION = rt.maxversion()[7]
9-
MAX_HELP = f"help.autodesk.com/view/MAXDEV/{MAX_VERSION}/ENU"
9+
MAX_HELP = f"help.autodesk.com/view/MAXDEV"
1010

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

1313
MAX_VERSION_TOPICS = {
1414
2021: [
15-
("gettingstarted",
15+
("gettingstarted",
1616
"Getting Started With Python in 3ds Max",
17-
"help.autodesk.com/view/MAXDEV/2021/ENU/?guid=Max_Python_API_about_the_3ds_max_python_api_html",
17+
f"{MAX_HELP}/2021/ENU/?guid=Max_Python_API_about_the_3ds_max_python_api_html",
1818
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
19-
("pymxs",
19+
("pymxs",
2020
"Pymxs Online Documentation",
21-
"help.autodesk.com/view/MAXDEV/2021/ENU/?guid=Max_Python_API_using_pymxs_pymxs_module_html",
21+
f"{MAX_HELP}/2021/ENU/?guid=Max_Python_API_using_pymxs_pymxs_module_html",
2222
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
2323
],
2424
2022: [
25-
("gettingstarted",
25+
("gettingstarted",
2626
"Getting Started With Python in 3ds Max",
27-
"help.autodesk.com/view/MAXDEV/2022/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
27+
f"{MAX_HELP}/2022/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
2828
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
29-
("pymxs",
29+
("pymxs",
3030
"Pymxs Online Documentation",
31-
"help.autodesk.com/view/MAXDEV/2022/ENU/?guid=MAXDEV_Python_using_pymxs_html",
31+
f"{MAX_HELP}/2022/ENU/?guid=MAXDEV_Python_using_pymxs_html",
3232
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
3333
],
3434
2023: [
35-
("gettingstarted",
35+
("gettingstarted",
3636
"Getting Started With Python in 3ds Max",
37-
"help.autodesk.com/view/MAXDEV/2023/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
37+
f"{MAX_HELP}/2023/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
3838
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
39-
("pymxs",
39+
("pymxs",
4040
"Pymxs Online Documentation",
41-
"help.autodesk.com/view/MAXDEV/2023/ENU/?guid=MAXDEV_Python_using_pymxs_html",
41+
f"{MAX_HELP}/2023/ENU/?guid=MAXDEV_Python_using_pymxs_html",
4242
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
4343
],
4444
2024: [
45-
("gettingstarted",
45+
("gettingstarted",
4646
"Getting Started With Python in 3ds Max",
47-
"help.autodesk.com/view/MAXDEV/2024/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
47+
f"{MAX_HELP}/2024/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
4848
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
49-
("pymxs",
49+
("pymxs",
5050
"Pymxs Online Documentation",
51-
"help.autodesk.com/view/MAXDEV/2024/ENU/?guid=MAXDEV_Python_using_pymxs_html",
51+
f"{MAX_HELP}/2024/ENU/?guid=MAXDEV_Python_using_pymxs_html",
5252
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
5353
],
5454
2025: [
55-
("gettingstarted",
55+
("gettingstarted",
5656
"Getting Started With Python in 3ds Max",
57-
"help.autodesk.com/view/MAXDEV/2025/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
57+
f"{MAX_HELP}/2025/ENU/?guid=MAXDEV_Python_about_the_3ds_max_python_api_html",
5858
"64651C48-F4F1-42F9-8C8A-FF5D0AA031A2"),
59-
("pymxs",
59+
("pymxs",
6060
"Pymxs Online Documentation",
61-
"help.autodesk.com/view/MAXDEV/2025/ENU/?guid=MAXDEV_Python_using_pymxs_html",
61+
f"{MAX_HELP}/2025/ENU/?guid=MAXDEV_Python_using_pymxs_html",
6262
"44985F87-C175-4F3D-B70F-9FA0B6242AE1")
6363
]
6464
}
@@ -70,27 +70,27 @@ def get_version_topics(version):
7070

7171
V_TOPICS = get_version_topics(MAX_VERSION)
7272

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

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

8383
TOPICS = V_TOPICS + [
84-
("howtos",
84+
("howtos",
8585
"Python HowTos Github Repo",
8686
"github.com/ADN-DevTech/3dsMax-Python-HowTos",
8787
"2504EEA5-27D6-4EA0-A7A3-B3C058777ADC"),
88-
("samples",
88+
("samples",
8989
"Python samples (Github Repo)",
9090
"github.com/ADN-DevTech/3dsMax-Python-HowTos/tree/master/src/samples",
9191
"8ED9D9CC-3799-435D-8016-0F8F16D84004"),
9292
PYSIDE6_DOC if MAX_VERSION >= 2025 else PYSIDE2_DOC,
93-
("python",
93+
("python",
9494
f"Python {PYTHON_VERSION} Documentation",
9595
f"docs.python.org/{PYTHON_VERSION}/",
9696
"B51BCC07-D9E3-439C-AC88-85BD64B97912")
@@ -112,4 +112,4 @@ def startup():
112112
tooltip=topic[1],
113113
in2025_menuid=menuhook.BROWSE_DOCUMENTATION,
114114
id_2025=topic[3])
115-
115+

0 commit comments

Comments
 (0)