show a rtf file in your tkinter application
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file tkrichtext-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: tkrichtext-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1f12f13b891446e6f563498a6868d2c55ddcdf43f41838d24874942942af68e |
|
MD5 | da1916f83088ed1101b0deead002937e |
|
BLAKE2b-256 | 1840bdd348bc70c468b2f7517e25acc2ab16d12fd2dc7ab750ff515f80147179 |