Skip to main content

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


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

tkrichtext-1.0.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page