Skip to main content

A collection of useful code "snippets"

Project description

Features:

clip


clip contains the following function:

.clip


Puts a string into the user's clipboard

Notice: currently only the win32 platform is supported for this.

Possible Arguments:

  • content The String that should be put in the users clipboard. This string cannot be empty or only contain whitespace/spaces Type:str

  • no_os_error Tells the function to not raise a OSError when the operating system is not win32 Type:bool Default:False

Use:

from einfach import clip

    

clip.clip(content="Hello World") 

# this wont ignore the OSError that is raised when not run on win32

    

clip.clip(content="Hi! :D", no_os_error=True) 

# this will ignore the OSError if run on a non win32 platform. This will result in the clipboard not changing on the non-win32 os. 

pathdialog


pathdialog contains the following functions:

.open_file


.save_file


.open_dir


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

einfach-0.1.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

einfach-0.1.0.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page