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 details)

Uploaded Python 3

File details

Details for the file tkcalendar2-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tkcalendar2-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for tkcalendar2-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe775f876ccc6fadb1771a473422cbba95a9d34f7daf0888914c3f2a059861c0
MD5 8e917e0ad7ac0643aa18db87d383ad7e
BLAKE2b-256 9558778a32d7f916439dbd5177408701946366569e3fb29e2d2c3c53d7d2f1ba

See more details on using hashes here.

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