-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
896d03f
commit 8036766
Showing
6 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import subprocess | ||
subprocess.Popen('C:\\Windows\\System32\\calc.exe') | ||
subprocess.Popen(['C:\\Windows\\notepad.exe', 'C:\\main.cpp']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import time | ||
import subprocess | ||
|
||
timeleft =10 | ||
while timeleft>0: | ||
print("Time left {}".format(timeleft)) | ||
time.sleep(1) | ||
timeleft = timeleft -1 | ||
subprocess.Popen(['start', r'C:\Users\acer\Desktop\PythonBox\pythonPrograms\Multi_threading\alarm.wav'], shell=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import threading, time | ||
print('Start of program.') | ||
|
||
def takeANap(): | ||
time.sleep(5) | ||
print('Wake up!') | ||
|
||
threadObj = threading.Thread(target=takeANap) | ||
threadObj.start() | ||
|
||
print('End of program.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Hello Dear, | ||
|
||
How are you? I am fine and trying to learn someting using python | ||
|
||
Kind regards | ||
rakesh kumar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters