Skip to main content

A timer/scheduler for Tkinter, built to function similarly to PyQt's QTimer

Project description

TkScheduler

TkScheduler is a simple timer/scheduler for Tkinter, akin to PyQt's QTimer. It is designed to function similarly and I am building it mostly for use in my own text editor written in Tkinter. However, if you want a feature, I am always open to suggestions if you get me interested enough in an idea that's practical.

Usage

The scheduler provides two core methods: start() and stop().

It is designed for lightweight scheduling tasks such as autosave, linting debounce, and periodic UI updates in Tkinter applications.

Available options:

option description default form
root Tkinter root instance used for scheduling required parameter when initializing class
fn callback function executed on timeout None property
interval delay in milliseconds between executions 0 property & parameter of start()
singleShotState if True, runs only once; if False, repeats False property
isActive returns whether a timer is currently scheduled derived (read-only) function that gets the internal active state

Installing

This software comes as a pip package hosted on PyPI.

pip install tkscheduler

License

This software is licensed under the GNU GPLv3. For more info, see the LICENSE file.

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

tkscheduler-0.1.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

tkscheduler-0.1.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file tkscheduler-0.1.0.tar.gz.

File metadata

  • Download URL: tkscheduler-0.1.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for tkscheduler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 80ef20cb0f27f4fed26d22468fe4cea47295a403e68ccd6a05c57b5eb9079e6b
MD5 13fe7e4c6517f8f504760760074b08e5
BLAKE2b-256 81b8f7b76c718a4914f9335a2f24da6e52cc44f6a1076340c54ebc2978be4b18

See more details on using hashes here.

File details

Details for the file tkscheduler-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tkscheduler-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for tkscheduler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06a4059ae2eed180f0f0b73679e242b22d33aaca8c40c3afae6015f8c0fe0b67
MD5 bcc9e469060754726a5ed307e2b5f377
BLAKE2b-256 0d5dc36987bff3ce7215b7de96f63b52b6a4a04c75561ea858ddbafd4d08c23f

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