tkinterweb-tkhtml 1.0__py3-none-linux_armv7l.whl

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.
@@ -0,0 +1,44 @@
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
+
16
+
17
+
18
+ __title__ = 'TkinterWeb-Tkhtml'
19
+ __author__ = "Andereoo"
20
+ __copyright__ = "Copyright (c) 2025 Andereoo"
21
+ __license__ = "MIT"
22
+ __version__ = '1.0'
23
+
24
+
25
+ TKHTML_RELEASE = "3.0 (TkinterWeb standard)" # For debugging; eventually this project might also bundle experimental binaries
26
+ TKHTML_ROOT_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "tkhtml")
27
+
28
+ tkhtml_loaded = False
29
+
30
+
31
+ def get_tkhtml_folder():
32
+ "Get the location of the platform's Tkhtml binary"
33
+
34
+ return TKHTML_ROOT_DIR
35
+
36
+
37
+ def load_tkhtml(master, location=None, force=False):
38
+ "Load Tkhtml into the current Tcl/Tk instance"
39
+ global tkhtml_loaded
40
+ if (not tkhtml_loaded) or force:
41
+ if location:
42
+ master.tk.eval("set auto_path [linsert $auto_path 0 {" + location + "}]")
43
+ master.tk.eval("package require Tkhtml")
44
+ 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.
Binary file
@@ -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,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,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,9 @@
1
+ tkinterweb_tkhtml/__init__.py,sha256=yeb5XCI83xqZ8cxzmFprBl_FmkNmHwsucsFpLARbVR0,1338
2
+ tkinterweb_tkhtml/tkhtml/COPYRIGHT,sha256=DTaLs2-wF2uscyoCSsLB1oOqXwhtLRVZW1EdLa77OMs,1622
3
+ tkinterweb_tkhtml/tkhtml/libTkhtml3.0.so,sha256=7SLetf_4DXwz_iphlIRAvuuDnm6qYcfAdjVnnapfekc,310504
4
+ tkinterweb_tkhtml/tkhtml/pkgIndex.tcl,sha256=TLh_fgiI_ZWYOP04WT5fRPex4Jp8wl_FRuHFBGETFuo,125
5
+ tkinterweb_tkhtml-1.0.dist-info/LICENSE.md,sha256=A4A41a28mznzn27r63D6_15V0UfRNrfIbKrX3sabiX8,1064
6
+ tkinterweb_tkhtml-1.0.dist-info/METADATA,sha256=M3yHjinRnsxQzRgXjeOnatEXZ9KvOS3Bs_7sijFRHeo,1052
7
+ tkinterweb_tkhtml-1.0.dist-info/WHEEL,sha256=SfWbrUo49UCeTn4ZCaOubJz9Wtdk5gtBke9gOM6rnWs,101
8
+ tkinterweb_tkhtml-1.0.dist-info/top_level.txt,sha256=ZsOj9XY_g_0oGsUoDORlQhP0qdbT4X_Ts6yyFWG7i1A,18
9
+ tkinterweb_tkhtml-1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.42.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-linux_armv7l
5
+
@@ -0,0 +1 @@
1
+ tkinterweb_tkhtml