Python Forum
[Tkinter] Retrieving a value from a calendar with a single click
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Retrieving a value from a calendar with a single click
#2
like this?:
# coding:utf-8
from tkinter import *

from tkcalendar import Calendar, DateEntry

def get_my_date():
    date= entry_date.get()
    print(date)

root = Tk()
root.geometry("500x500")
entry_date_label = Label(root, text="Entry date simple click").pack()
entry_date = DateEntry(root,)
entry_date.pack()
btn_submit= Button(root, text='submit',command= get_my_date)
btn_submit.pack()
root.mainloop()
Reply


Messages In This Thread
RE: Retrieving a value from a calendar with a single click - by joe_momma - Jan-23-2020, 01:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to set the calendar widget to current date scratchmyhead 4 7,256 May-11-2020, 08:27 PM
Last Post: scratchmyhead
  Tkinter calendar widget scratchmyhead 4 4,411 May-03-2020, 07:01 PM
Last Post: scratchmyhead

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020