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

  • SEARCH
  • Home
  • 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

Related Questions

Does anyone know if it is possible to change the font and/or color for
Does anyone know if it possible to define the equivalent of a java custom
Does anyone know if its possible to create a new property on an existing
Does anyone know if it is possible to detect whether the browser has closed
Does anyone know if it is possible to restart a J2EE application (from the
Does anyone know if it's possible to use regex capture within Apache's DirectoryMatch directive?
Does anyone know if it's possible to get a Win32 application to run under
Does anyone know if it is possible to reliably determine (programattically C/C++...) whether or
Does anyone know if it is possible to add other controls to a Flex
Does anyone know if it is possible to install SQL 2000 Reporting Services Server

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.