tkrichtext
基于WinForms.RichTextBox的tkinter富文本显示组件。
目前仅提供基础显示功能。更多功能请调用
self.rt实现。
Dependence
tkrichtext uses this package:
- pythonnet(clr)
Usage(TkRichtext Class)
Demo:
from tkinter import Tk
from tkrichtext import TkRichtext
a=Tk()
a.geometry('600x600+5+5')
rt=TkRichtext(a,500,500)
rt.pack(fill='both',expand='True')
#rt.loadfile(r"E:\Py软件\Tin文件\软件说明.rtf")
#you can use "loadfile" to load a *.rtf file.
a.mainloop()
loadfile(path:str) => to show a rtf file in your GUI application.
Metadata
Release files for tkrichtext 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tkrichtext-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / tkrichtext-1.0.0-py3-none-any.whl
| Download URL | tkrichtext-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1f12f13b891446e6f563498a6868d2c55ddcdf43f41838d24874942942af68e
|
|
BLAKE2b-256 checksum How to use checksums |
1840bdd348bc70c468b2f7517e25acc2ab16d12fd2dc7ab750ff515f80147179
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|