Skip to main content

Persian (Shamsi) Calendar and Date Entry for Python Tkinter

Project description

ShamsiCalendar

ShamsiCalendar یک پکیج پایتون برای نمایش و انتخاب تاریخ شمسی (Persian / Jalali) در رابط کاربری Tkinter است. این پکیج شامل یک تقویم شمسی و یک ویجت ورودی تاریخ است که استفاده از آن برای برنامه‌های GUI ساده و سریع است.


ویژگی‌ها

  • تقویم شمسی با قابلیت انتخاب روز
  • دکمه "امروز" برای انتخاب سریع تاریخ فعلی
  • تغییر ماه و سال به راحتی
  • رنگ‌بندی مخصوص روز جاری و جمعه‌ها
  • ورودی تاریخ شمسی با Popup تقویم
  • فارسی‌سازی کامل نام ماه‌ها و روزهای هفته

نصب

pip install ShamsiCalendar

استفاده از ShamsiCalendar

import tkinter as tk
from shamsicalendar import ShamsiCalendar
import jdatetime

def on_date_selected(date):
    print("Selected date:", date)

root = tk.Tk()
root.title("Persian Shamsi Calendar")

cal = ShamsiCalendar(root, year=1404, month=6, select_callback=on_date_selected)
cal.pack(padx=10, pady=10)

root.mainloop()

استفاده از ShamsiDateEntry

import tkinter as tk
from shamsicalendar import ShamsiDateEntry

root = tk.Tk()
root.title("Persian Date Entry")

date_entry = ShamsiDateEntry(root)
date_entry.pack(padx=10, pady=10)

def show_date():
    print("Selected date:", date_entry.get())

btn = tk.Button(root, text="Show Date", command=show_date)
btn.pack(pady=5)

root.mainloop()

عکسScreenshot (254)


لینک‌ها


Keywords

Persian calendar, Shamsi calendar, Jalali date, Tkinter date picker, Python GUI, Persian date entry, Python ShamsiCalendar, تاریخ شمسی

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shamsicalendar-1.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shamsicalendar-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file shamsicalendar-1.0.1.tar.gz.

File metadata

  • Download URL: shamsicalendar-1.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for shamsicalendar-1.0.1.tar.gz
Algorithm Hash digest
SHA256 68f323f31808d6c7ab25a4f90ac7dce64f37fcd1062aaa8abe441adfe81ab9b4
MD5 128fe541175c3ab3e59e6abfd1f401d8
BLAKE2b-256 6dbf41cb60cc4c79963a0c972c84735f889c01319149ee2eca4658d86269105b

See more details on using hashes here.

File details

Details for the file shamsicalendar-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: shamsicalendar-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for shamsicalendar-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad0a035eddfdbfd1c4f54b23073d1070d3ff371886148d8fca31ca0f1be2622e
MD5 ad26613ab5a2583cd79c67ba5a9e0e7f
BLAKE2b-256 2217b1a29aef4fc268ca351064e676de5b9e5b136422b68c93bba3eddb4ea8e2

See more details on using hashes here.

Supported by

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