Skip to main content

show a calendar in your tkinter application

Project description

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)::最大选择天数。

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

tkcalendar2-1.1.0-py3-none-any.whl (3.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