Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 56807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:35:32+00:00 2026-05-10T17:35:32+00:00

Does anyone know if it is possible (and if yes, how) to bind an

  • 0

Does anyone know if it is possible (and if yes, how) to bind an event (Python + Tkinter on MS Windows) to a system date change?

I know I can have .after events checking once in a while; I’m asking if I can somehow have an event fired whenever the system date/time changes, either automatically (e.g. for daylight saving time) or manually.

MS Windows sends such events to applications and Tkinter does receive them; I know, because if I have an .after timer waiting and I set the date/time after the timer’s expiration, the timer event fires instantly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:35:33+00:00Added an answer on May 10, 2026 at 5:35 pm

    I know, because if I have an .after timer waiting and I set the date/time after the timer’s expiration, the timer event fires instantly.

    That could just mean that Tkinter (or Tk) is polling the system clock as part of the event loop to figure out when to run timers.

    If you’re using Windows, Mark Hammond’s book notes that you can use the win32evtlogutil module to respond to changes in the Windows event log. Basically it works like this:

    import win32evtlogutil def onEvent(record):   # Do something with the event log record win32evtlogutil.FeedEventLogRecords(onEvent) 

    But you’ll need to get docs on the structure of the event records (I don’t feel like typing out the whole chapter, sorry 🙂 ). Also I don’t know if date changes turn up in the event log anyway.

    Really, though, is it so bad to just poll the system clock? It seems easiest and I don’t think it would slow you down much.

    (finally, a comment: I don’t know about your country, but here in NZ, daylight savings doesn’t involve a date change; only the time changes (from 2am-3am, or vice-versa))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 138k
  • Answers 138k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer At a casual glance, it appears that this should (as… May 12, 2026 at 7:34 am
  • Editorial Team
    Editorial Team added an answer You can close your php tag to drop into html… May 12, 2026 at 7:34 am
  • Editorial Team
    Editorial Team added an answer If your WCF service is a singleton service and guaranteed… May 12, 2026 at 7:34 am

Related Questions

I'm wondering if it's possible to make a method which behaves differently when called
Our current scenario is like this: we have an existing database that needs to
Every so often when I'm debugging, I get this message in nice brown text
I am currently trying to optimize a few queries and scripts, and I wonder

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.