Printing module with pausing and sound effects
Project description
Achieve Dramatic Printing!
Hello! This is a class that would provide a print() method (weird, huh) that would add extra delay after each character printed!
To use this as the normal print, simply override it like this:
from dramaprint import Dramaprint # import the dramaprint object
printObj = Dramaprint()
print = printObj.print # strange, huh
print('Hello, World!') # now it would output it slowly
printObj.setDelay(0.02) # you can also change the delay
print('Hello Again!') # now it would output much faster!
sound_path = "path\\to\\your\\sound.wav" # Here is a typing sound effect (get it yourself)
print('Hello Again Again!', soundPath=sound_path) # now it should play your sound after EACH CHAR
print('Again...?', soundPath=sound_path, soundPerLine=True) # sound per LINE
- import
Dramaprintclass from the script containing it - get a variable and assign it to
Dramaprint()(You can set other things too in__init__()like delay) - (Optional) Override the default
print()with your obj (say printObj) like this:print = printObj.print - You MUST set a delay, either in
__init__()or withprintObj.setDelay(). Missing this step would cause failiure. - You can use it!
- If you have a typing-sound effect sound file (best in .wav, but .mp3 is fine), you can include the path and soundPerLine arg to make the print function play your sound!
Play around with it!
I have provided a example typing sound effect for you to use
I found it quite useful in my projects
Hope you'll have fun!
Enjoy :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dramaprint-1.0.2.tar.gz.
File metadata
- Download URL: dramaprint-1.0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d998d34778778f1ad8c784217d9baf4d5f4dddf755462b6f052b72ab9f24db3f
|
|
| MD5 |
03d68e8d7d5f6e924c4c6e0c512f655e
|
|
| BLAKE2b-256 |
8089ce54391614c308a66aaa3115dfb8524182f11f309873728240a909a6a16e
|
File details
Details for the file dramaprint-1.0.2-py3-none-any.whl.
File metadata
- Download URL: dramaprint-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e1dc9ed469d9a8dc0ba9f45cfbfe73eb5dcbb62b326a5227251846e2511f93a
|
|
| MD5 |
45478a1292a89cd6767bed294bd64361
|
|
| BLAKE2b-256 |
d82dba591dad3ff6a8c53d2b86e825ace75f973b17534d88890b067c956b9d3e
|