Skip to main content

tkcalendar2

基于WinForms.MonthCalendar的tkinter富文本显示组件。

目前仅提供基础显示功能。更多功能请调用self.ca实现。


Dependence

tkrichtext uses this package:

  • pythonnet(clr)

Usage(TkCalendar Class)

Demo:

from tkinter import Tk
from tkcalendar2 import TkCalendar

a=Tk()
a.geometry('600x600+5+5')

ca=TkCalendar(a,500,500)
ca.pack(fill='both',expand='True')
ca.date_selected(print)
ca.date_changed(print)
ca.max_selection_count(20)

a.mainloop()

date_selected(func)::日期被选择时回调的函数。

func(this,start_day,end_day)

date_changed(func)::日历被单击选中时回调的函数。

func(this,day)

max_selection_count(days)::最大选择天数。

Metadata

Release files for tkcalendar2 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for tkcalendar2 1.1.0
File Interpreter ABI Platform
tkcalendar2-1.1.0-py3-none-any.whl Python 3 none any Details

Release files / tkcalendar2-1.1.0-py3-none-any.whl

Download URL tkcalendar2-1.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe775f876ccc6fadb1771a473422cbba95a9d34f7daf0888914c3f2a059861c0
BLAKE2b-256 checksum
How to use checksums
9558778a32d7f916439dbd5177408701946366569e3fb29e2d2c3c53d7d2f1ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 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

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page