Skip to main content

A customized dateentry to facilitate date selection in graphical interfaces.

Project description

CTkDateEntry

CTkDateEntry is a Python library that extends the use of customtkinter to provide custom widgets such as a customtkinter DateEntry with a calendar CTkCalendar with selectable dates. It was designed to make it easier to create more modern and interactive graphical user interfaces (GUIs).

Example:

Debug CTkDateEntry

img_1

What's New in Version 0.1.2 :

Creation of the CTkStringVar class, to insert indicative text into the CTkDateEtry entr

Example:

import customtkinter as ctk
from ctkdateentry import CTkDateEntry, CTkStringVar
from tkinter import *

root = ctk.CTk()

root.geometry('200x200')
root.title('CTkDateEntry')
ctk.set_appearance_mode('light')
ctk.set_default_color_theme('dark-blue')

var = CTkStringVar(root, value='Enter a Date') #Variable that will be inserted in CTkDateEntry

date_entry = CTkDateEntry(root,
    width=150,
    variable =var,
    justify ='left',
    font=('Roboto', 14, 'bold'))
date_entry.pack(pady=50)

root.mainloop()

Open Calendar CTkDateEntry

CTkDateEntry_Dark-blue-removebg-previewCTkDateEntry_Light-removebg-preview

Adjustments:

Adjustments to some parameters to make CTkDateEntry more customizable: font, text_color, fg_color, corner_radius, hover, and others.

exemplo:

Features

  • CTkDateEntry: A custom DateEntry based on Customtkinter to facilitate date selection in graphical interfaces.

Themes

  • CTkDateEntry: When customtkinter themes are applied to the graphical interface, they are automatically applied to CTkDateEntry, meaning there is no need to use a separate Theme Style

Usage

Here's a simple example of how to use the CTkDateEntr widget:

import customtkinter as ctk
from ctkdateentry import CTkDateEntry

root = ctk.CTk()

root.geometry('200x200')
root.title('CTkDateEntry ')
calendar = CTkDateEntry(root)
calendar.pack(pady=50)

root.mainloop()

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

ctkdateentry-0.1.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

CTkDateEntry-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file ctkdateentry-0.1.2.tar.gz.

File metadata

  • Download URL: ctkdateentry-0.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for ctkdateentry-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2d976560e132e0e2b25eb48c9e9eb747793aa9c632bc9aee0c9b1402ef893fc4
MD5 f9ee3528b3fdd51d169fede086c9952d
BLAKE2b-256 83b0f8b708ff6f0dfffad2372af07b28db73c465fc9a89f3e7234edba3254cc6

See more details on using hashes here.

File details

Details for the file CTkDateEntry-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: CTkDateEntry-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for CTkDateEntry-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78f518bcdd81bb331574be17018cd6ac4620d900835bac8f9cde565632c83a98
MD5 1021e0af75f3b4b9316a562a728952e4
BLAKE2b-256 645ec81987c8d41cdaa44de06da177717d863a91d1bec419bb27e543e886823f

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