Posts: 7
Threads: 1
Joined: Oct 2017
Oct-30-2017, 06:56 PM
(This post was last modified: Oct-30-2017, 07:00 PM by Mekire.)
Hey Guys! I have made a module that allows the user to print text one letter at a time as if you were typing it! You can download this module at:
https://drive.google.com/file/d/0B85j-y5...sp=sharing
Installation:
1. Open the .whl file as a ZIP file, using 7-zip, or similar applications.
2. copy the "delay" folder to:
[drivename]:/Python[Version#]/Lib
EX. C:/Python34/Lib
3. Close and reopen Python if it is open
Now the module is installed!
How to use:
1. In a .py file, or IDLE, type:
from delay import delay
2. now, you can type:
delay.write('[words of your choice]')
and it will print one letter at a time, with a delay of 0.08 seconds!
Posts: 7
Threads: 1
Joined: Oct 2017
Please try out my MODULE!
Posts: 7,324
Threads: 123
Joined: Sep 2016
Oct-31-2017, 03:27 PM
(This post was last modified: Oct-31-2017, 03:27 PM by snippsat.)
(Oct-30-2017, 08:23 PM)EgMusic Wrote: Please try out my MODULE! You are using wheel format wrong,it should install with pip.
C:\Users\Tom\Downloads
λ pip install delay_1.0.whl
delay_1.0.whl is not a valid wheel filename. Now is this all code.
import time
def write(str):
for letter in str:
time.sleep(0.08)
print(letter, end = '') No one will use you code if you do it this way.
There is a standard way to make wheel and and share it,eventually use PyPi to distribute it.
I have a tutorial about this here.
Posts: 7
Threads: 1
Joined: Oct 2017
(Oct-31-2017, 03:27 PM)snippsat Wrote: (Oct-30-2017, 08:23 PM)EgMusic Wrote: Please try out my MODULE! You are using wheel format wrong,it should install with pip.
C:\Users\Tom\Downloads
λ pip install delay_1.0.whl
delay_1.0.whl is not a valid wheel filename. Now is this all code.
import time
def write(str):
for letter in str:
time.sleep(0.08)
print(letter, end = '') No one will use you code if you do it this way.
There is a standard way to make wheel and and share it,eventually use PyPi to distribute it.
I have a tutorial about this here.
https://drive.google.com/open?id=0B85j-y...TNzc0F4WXc
There you go! I made a proper wheel file out of it
Posts: 5,151
Threads: 396
Joined: Sep 2016
Your entire module is 4 lines of actual code. I dont really need to run/install it to know what its doing. I can just look at it.
Quote:def write(str):
for letter in str:
time.sleep(0.08)
print(letter, end = '')
Recommended Tutorials:
Posts: 7
Threads: 1
Joined: Oct 2017
(Nov-01-2017, 03:46 PM)metulburr Wrote: Your entire module is 4 lines of actual code. I dont really need to run/install it to know what its doing. I can just look at it.
Quote:def write(str):
for letter in str:
time.sleep(0.08)
print(letter, end = '')
That's not the point of the module. The point of the module is to help beginners.
For example, if someone wanted to make their first game, and didn't know jack squat about python, they would need a module to help them. Or a tutorial.
Posts: 5,151
Threads: 396
Joined: Sep 2016
Nov-01-2017, 04:29 PM
(This post was last modified: Nov-01-2017, 04:29 PM by metulburr.)
Quote:For example, if someone wanted to make their first game, and didn't know jack squat about python, they would need a module to help them. Or a tutorial.
That was my response to...
(Oct-30-2017, 08:23 PM)EgMusic Wrote: Please try out my MODULE!
You never mentioned that this is suppose to be a training exercise. I would instruct people in question about modules to read through tutorials such as... https://python-forum.io/Thread-Basic-Modules-part-1
Recommended Tutorials:
Posts: 7,324
Threads: 123
Joined: Sep 2016
Nov-01-2017, 04:44 PM
(This post was last modified: Nov-01-2017, 04:44 PM by snippsat.)
(Nov-01-2017, 03:55 PM)EgMusic Wrote: For example, if someone wanted to make their first game, and didn't know jack squat about python, they would need a module to help them. Or a tutorial. That you have manged to make a wheel dos not help anyone.
The wheel file you have made is also wrong,it don't contain any Python code which is kind of a important point
Posts: 8,165
Threads: 160
Joined: Sep 2016
(Nov-01-2017, 03:55 PM)EgMusic Wrote: For example, if someone wanted to make their first game, and didn't know jack squat about python, they would need a module to help them. If they are not able to do something simple as this, they will be long way from making a game or anything else ...
Posts: 3,458
Threads: 101
Joined: Sep 2016
Untrue! You could easily make a number guessing game even if this was rather new to you :p
|