Skip to content

Modifying DateEntry with ctk #2448

Answered by Akascape
ZeroPlaya asked this question in Q&A
Discussion options

You must be logged in to vote

@ZeroPlaya You can use sv_ttk theme with customtkinter to match the style of that entry box.
Just add this line:

sv_ttk.set_theme("light")

Or you can use this ctk date picker class I made:

import customtkinter
import ctkdlib # pip install ctkdlib

class CTkDatePicker(customtkinter.CTkToplevel):
    def __init__(self,
                 master,
                 height=200,
                 width=200,
                 **kwargs):
        
        super().__init__(takefocus=1)

        self.attach = master
        self.height = height
        self.width = width
        
        self.overrideredirect(True)
    
        self.attach._canvas.tag_bind("right_parts", "<Button-1>", lambda e: self._ic…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ZeroPlaya
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ZeroPlaya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants