tkinterweb-tkhtml 1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. tkinterweb-tkhtml-1.0/LICENSE.md +21 -0
  2. tkinterweb-tkhtml-1.0/MANIFEST.in +1 -0
  3. tkinterweb-tkhtml-1.0/PKG-INFO +24 -0
  4. tkinterweb-tkhtml-1.0/README.md +7 -0
  5. tkinterweb-tkhtml-1.0/setup.cfg +4 -0
  6. tkinterweb-tkhtml-1.0/setup.py +29 -0
  7. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/__init__.py +69 -0
  8. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/COPYRIGHT +29 -0
  9. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/linux_armv7l/libTkhtml3.0.so +0 -0
  10. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/linux_armv7l/pkgIndex.tcl +4 -0
  11. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/macosx_10_6_x86_64/libTkhtml3.0.dylib +0 -0
  12. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/macosx_10_6_x86_64/pkgIndex.tcl +4 -0
  13. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/macosx_11_0_arm64/libTkhtml3.0.dylib +0 -0
  14. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/macosx_11_0_arm64/pkgIndex.tcl +4 -0
  15. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/manylinux1_i686/libTkhtml3.0.so +0 -0
  16. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/manylinux1_i686/pkgIndex.tcl +4 -0
  17. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/manylinux1_x86_64/libTkhtml3.0.so +0 -0
  18. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/manylinux1_x86_64/pkgIndex.tcl +4 -0
  19. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/manylinux2014_aarch64/libTkhtml3.0.so +0 -0
  20. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/manylinux2014_aarch64/pkgIndex.tcl +2 -0
  21. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/win32/Tkhtml30.dll +0 -0
  22. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/win32/pkgIndex.tcl +4 -0
  23. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/win_amd64/Tkhtml30.dll +0 -0
  24. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml/tkhtml/win_amd64/pkgIndex.tcl +4 -0
  25. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml.egg-info/PKG-INFO +24 -0
  26. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml.egg-info/SOURCES.txt +26 -0
  27. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml.egg-info/dependency_links.txt +1 -0
  28. tkinterweb-tkhtml-1.0/tkinterweb_tkhtml.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Andereoo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ recursive-include tkinterweb_tkhtml/tkhtml *
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.1
2
+ Name: tkinterweb-tkhtml
3
+ Version: 1.0
4
+ Summary: HTML/CSS viewer for Tkinter
5
+ Home-page: https://github.com/Andereoo/TkinterWeb-Tkhtml
6
+ License: MIT
7
+ Keywords: tkinter,Tkinter,tkhtml,Tkhtml,Tk,HTML,CSS,webbrowser
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: Freeware
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Natural Language :: English
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Software Development
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE.md
17
+
18
+ # TkinterWeb-Tkhtml
19
+
20
+ **This package provides pre-built binaries of a modified version of the Tkhtml3 widget from http://tkhtml.tcl.tk, which enables the display of styled HTML and CSS code in Tkinter applications.**
21
+
22
+ This package can be used to import the Tkhtml widget into Tkinter projects but is mainly intended to be used through TkinterWeb, which provides a full Python interface.
23
+
24
+ **See https://github.com/Andereoo/TkinterWeb for more information.**
@@ -0,0 +1,7 @@
1
+ # TkinterWeb-Tkhtml
2
+
3
+ **This package provides pre-built binaries of a modified version of the Tkhtml3 widget from http://tkhtml.tcl.tk, which enables the display of styled HTML and CSS code in Tkinter applications.**
4
+
5
+ This package can be used to import the Tkhtml widget into Tkinter projects but is mainly intended to be used through TkinterWeb, which provides a full Python interface.
6
+
7
+ **See https://github.com/Andereoo/TkinterWeb for more information.**
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,29 @@
1
+ import pathlib
2
+ from setuptools import setup, find_namespace_packages
3
+
4
+ HERE = pathlib.Path(__file__).parent
5
+ README = (HERE / "README.md").read_text()
6
+
7
+
8
+ setup(
9
+ name="tkinterweb-tkhtml",
10
+ version="1.0",
11
+ description="HTML/CSS viewer for Tkinter",
12
+ long_description=README,
13
+ long_description_content_type="text/markdown",
14
+ url="https://github.com/Andereoo/TkinterWeb-Tkhtml",
15
+ license="MIT",
16
+ classifiers=[
17
+ "Intended Audience :: Developers",
18
+ "License :: Freeware",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Natural Language :: English",
21
+ "Programming Language :: Python",
22
+ "Programming Language :: Python :: 3",
23
+ "Topic :: Software Development",
24
+ ],
25
+ keywords="tkinter, Tkinter, tkhtml, Tkhtml, Tk, HTML, CSS, webbrowser",
26
+ packages=find_namespace_packages(include=["tkinterweb_tkhtml", "tkinterweb_tkhtml.*"]),
27
+ include_package_data=True,
28
+
29
+ )
@@ -0,0 +1,69 @@
1
+ """
2
+ TkinterWeb-Tkhtml v1.0
3
+ This package provides pre-built binaries of a modified version of the Tkhtml3 widget from http://tkhtml.tcl.tk/tkhtml.html,
4
+ which enables the display of styled HTML and CSS code in Tkinter applications.
5
+
6
+ This package can be used to import the Tkhtml widget into Tkinter projects
7
+ but is mainly intended to be used through TkinterWeb, which provides a full Python interface.
8
+ See https://github.com/Andereoo/TkinterWeb.
9
+
10
+ Copyright (c) 2025 Andereoo
11
+ """
12
+
13
+ import os
14
+
15
+ # Begin universal sdist
16
+ import sys
17
+ import platform
18
+
19
+ PLATFORM = platform.uname()
20
+ # End universal sdist
21
+
22
+
23
+ __title__ = 'TkinterWeb-Tkhtml'
24
+ __author__ = "Andereoo"
25
+ __copyright__ = "Copyright (c) 2025 Andereoo"
26
+ __license__ = "MIT"
27
+ __version__ = '1.0'
28
+
29
+
30
+ TKHTML_RELEASE = "3.0 (TkinterWeb standard)" # For debugging; eventually this project might also bundle experimental binaries
31
+ TKHTML_ROOT_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "tkhtml")
32
+
33
+ tkhtml_loaded = False
34
+
35
+
36
+ def get_tkhtml_folder():
37
+ "Get the location of the platform's Tkhtml binary"
38
+ # Begin universal sdist
39
+ if PLATFORM.system == "Linux":
40
+ if "arm" in PLATFORM.machine: # 32 bit arm Linux - Raspberry Pi and others
41
+ return os.path.join(TKHTML_ROOT_DIR, "linux_armv71")
42
+ elif "aarch64" in PLATFORM.machine: # 64 bit arm Linux - Raspberry Pi and others
43
+ return os.path.join(TKHTML_ROOT_DIR, "manylinux2014_aarch64")
44
+ elif sys.maxsize > 2**32: # 64 bit Linux
45
+ return os.path.join(TKHTML_ROOT_DIR, "manylinux1_x86_64")
46
+ else: # 32 bit Linux
47
+ return os.path.join(TKHTML_ROOT_DIR, "manylinux1_i686")
48
+ elif PLATFORM.system == "Darwin":
49
+ if "arm" in PLATFORM.machine: # M1 Mac
50
+ return os.path.join(TKHTML_ROOT_DIR, "macosx_11_0_arm64")
51
+ else: # other Macs
52
+ return os.path.join(TKHTML_ROOT_DIR, "macosx_10_6_x86_64")
53
+ else:
54
+ if sys.maxsize > 2**32: # 64 bit Windows
55
+ return os.path.join(TKHTML_ROOT_DIR, "win_amd64")
56
+ else: # 32 bit Windows
57
+ return os.path.join(TKHTML_ROOT_DIR, "win32")
58
+ # End universal sdist
59
+ return TKHTML_ROOT_DIR
60
+
61
+
62
+ def load_tkhtml(master, location=None, force=False):
63
+ "Load Tkhtml into the current Tcl/Tk instance"
64
+ global tkhtml_loaded
65
+ if (not tkhtml_loaded) or force:
66
+ if location:
67
+ master.tk.eval("set auto_path [linsert $auto_path 0 {" + location + "}]")
68
+ master.tk.eval("package require Tkhtml")
69
+ tkhtml_loaded = True
@@ -0,0 +1,29 @@
1
+ Copyright (c) 2005 Dan Kennedy.
2
+ All rights reserved.
3
+
4
+ This Open Source project was made possible through the financial support
5
+ of Eolas Technologies Inc.
6
+
7
+ Redistribution and use in source and binary forms, with or without
8
+ modification, are permitted provided that the following conditions are met:
9
+
10
+ * Redistributions of source code must retain the above copyright
11
+ notice, this list of conditions and the following disclaimer.
12
+ * Redistributions in binary form must reproduce the above copyright
13
+ notice, this list of conditions and the following disclaimer in the
14
+ documentation and/or other materials provided with the distribution.
15
+ * Neither the name of Eolas Technologies Inc. nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
+ POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,4 @@
1
+ package ifneeded Tkhtml 3.0 [string map [list @ $dir] {
2
+ load [file join {@} libTkhtml3.0.so]
3
+ package provide Tkhtml 3.0
4
+ }]
@@ -0,0 +1,4 @@
1
+ package ifneeded Tkhtml 3.0 [string map [list @ $dir] {
2
+ load [file join {@} libTkhtml3.0.dylib]
3
+ package provide Tkhtml 3.0
4
+ }]
@@ -0,0 +1,4 @@
1
+ package ifneeded Tkhtml 3.0 [string map [list @ $dir] {
2
+ load [file join {@} libTkhtml3.0.dylib]
3
+ package provide Tkhtml 3.0
4
+ }]
@@ -0,0 +1,4 @@
1
+ package ifneeded Tkhtml 3.0 [string map [list @ $dir] {
2
+ load [file join {@} libTkhtml3.0.so]
3
+ package provide Tkhtml 3.0
4
+ }]
@@ -0,0 +1,4 @@
1
+ package ifneeded Tkhtml 3.0 [string map [list @ $dir] {
2
+ load [file join {@} libTkhtml3.0.so]
3
+ package provide Tkhtml 3.0
4
+ }]
@@ -0,0 +1,2 @@
1
+ package ifneeded Tkhtml 3.0 [list load [file join $dir libTkhtml3.0.so]]
2
+ package ifneeded hv3 0.1 [list source [file join $dir hv3-0.1.tm]]
@@ -0,0 +1,4 @@
1
+ package ifneeded Tkhtml 3.0 [string map [list @ $dir] {
2
+ load [file join {@} Tkhtml30.dll]
3
+ package provide Tkhtml 3.0
4
+ }]
@@ -0,0 +1,4 @@
1
+ package ifneeded Tkhtml 3.0 [string map [list @ $dir] {
2
+ load [file join {@} Tkhtml30.dll]
3
+ package provide Tkhtml 3.0
4
+ }]
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.1
2
+ Name: tkinterweb-tkhtml
3
+ Version: 1.0
4
+ Summary: HTML/CSS viewer for Tkinter
5
+ Home-page: https://github.com/Andereoo/TkinterWeb-Tkhtml
6
+ License: MIT
7
+ Keywords: tkinter,Tkinter,tkhtml,Tkhtml,Tk,HTML,CSS,webbrowser
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: Freeware
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Natural Language :: English
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Software Development
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE.md
17
+
18
+ # TkinterWeb-Tkhtml
19
+
20
+ **This package provides pre-built binaries of a modified version of the Tkhtml3 widget from http://tkhtml.tcl.tk, which enables the display of styled HTML and CSS code in Tkinter applications.**
21
+
22
+ This package can be used to import the Tkhtml widget into Tkinter projects but is mainly intended to be used through TkinterWeb, which provides a full Python interface.
23
+
24
+ **See https://github.com/Andereoo/TkinterWeb for more information.**
@@ -0,0 +1,26 @@
1
+ LICENSE.md
2
+ MANIFEST.in
3
+ README.md
4
+ setup.py
5
+ tkinterweb_tkhtml/__init__.py
6
+ tkinterweb_tkhtml.egg-info/PKG-INFO
7
+ tkinterweb_tkhtml.egg-info/SOURCES.txt
8
+ tkinterweb_tkhtml.egg-info/dependency_links.txt
9
+ tkinterweb_tkhtml.egg-info/top_level.txt
10
+ tkinterweb_tkhtml/tkhtml/COPYRIGHT
11
+ tkinterweb_tkhtml/tkhtml/linux_armv7l/libTkhtml3.0.so
12
+ tkinterweb_tkhtml/tkhtml/linux_armv7l/pkgIndex.tcl
13
+ tkinterweb_tkhtml/tkhtml/macosx_10_6_x86_64/libTkhtml3.0.dylib
14
+ tkinterweb_tkhtml/tkhtml/macosx_10_6_x86_64/pkgIndex.tcl
15
+ tkinterweb_tkhtml/tkhtml/macosx_11_0_arm64/libTkhtml3.0.dylib
16
+ tkinterweb_tkhtml/tkhtml/macosx_11_0_arm64/pkgIndex.tcl
17
+ tkinterweb_tkhtml/tkhtml/manylinux1_i686/libTkhtml3.0.so
18
+ tkinterweb_tkhtml/tkhtml/manylinux1_i686/pkgIndex.tcl
19
+ tkinterweb_tkhtml/tkhtml/manylinux1_x86_64/libTkhtml3.0.so
20
+ tkinterweb_tkhtml/tkhtml/manylinux1_x86_64/pkgIndex.tcl
21
+ tkinterweb_tkhtml/tkhtml/manylinux2014_aarch64/libTkhtml3.0.so
22
+ tkinterweb_tkhtml/tkhtml/manylinux2014_aarch64/pkgIndex.tcl
23
+ tkinterweb_tkhtml/tkhtml/win32/Tkhtml30.dll
24
+ tkinterweb_tkhtml/tkhtml/win32/pkgIndex.tcl
25
+ tkinterweb_tkhtml/tkhtml/win_amd64/Tkhtml30.dll
26
+ tkinterweb_tkhtml/tkhtml/win_amd64/pkgIndex.tcl
@@ -0,0 +1 @@
1
+ tkinterweb_tkhtml