Skip to main content

Start/stop functions/methods with hotkeys!

$pip install pykeycontrol

from pykeycontrol import StopStart

from time import sleep

def testest2():

    startstop = StopStart(hotkey_enable="ctrl+alt+p",

                          hotkey_disable="ctrl+alt+o",

                          hotkey_hc_exit="ctrl+alt+e", )

    startstop.reset_all_hotkeys().add_hotkeys()

    startstop.stop = False

    while startstop.stop is False:

        print('baba')

        sleep(1)

		

		

		

class NewClass:

    def __init__(self):

        self.startstop = StopStart(hotkey_enable="ctrl+alt+p",

                                   hotkey_disable="ctrl+alt+o",

                                   hotkey_hc_exit="ctrl+alt+e", )

        self.startstop.add_hotkeys()

        self.startstop.stop = False

    def testest(self):

        while self.startstop.stop is False:

            print('baba')

            sleep(1)

			

			

testest2()

baba

baba

baba

baba

baba

HARDCORE EXIT! FTW!

Process finished with exit code 1   #"ctrl+alt+e"



nac=NewClass()

nac.testest()

baba

baba

baba

baba

baba

baba

baba

baba

Disabled! #"ctrl+alt+o"

Metadata

Release files for pykeycontrol 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pykeycontrol 0.10
File Size Uploaded Provenance Actions
pykeycontrol-0.10.tar.gz 3.3 kB Without provenance Details for pykeycontrol-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pykeycontrol 0.10
File Interpreter ABI Platform Actions
pykeycontrol-0.10-py3-none-any.whl Python 3 none any Details for pykeycontrol-0.10-py3-none-any.whl

Total release size: 7.3 kB

Release files / pykeycontrol-0.10.tar.gz

Download URL pykeycontrol-0.10.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a326054b8ec61603406c7e9c04ebc06a1afbc1889ae4fd6339f6903857ba752c
BLAKE2b-256 checksum
How to use checksums
6740234c8891c417b4ee67baede6d02be0911c60030dd51e480cf1470594b5c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pykeycontrol-0.10-py3-none-any.whl

Download URL pykeycontrol-0.10-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d187ff833f86ded455d65529db61c47350d4f83e673ca247a78a138941dbd026
BLAKE2b-256 checksum
How to use checksums
87d258bd3f087c34205468cab73f39d139295b960269e224b988c043f34edc39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for pykeycontrol 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page