Skip to content

Commit 27f5331

Browse files
committed
Made changes as per requirements
1 parent 2f2eda5 commit 27f5331

File tree

3 files changed

+41
-9
lines changed

3 files changed

+41
-9
lines changed

Diff for: AutomationScripts/PIP Upgrade/Pip_Upgrade.py

+6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@
33

44
root= tk.Tk()
55

6+
''' Creating window '''
67
canvas1 = tk.Canvas(root, width = 300, height = 350, bg = 'lightsteelblue2', relief = 'raised')
78
canvas1.pack()
89

10+
'''
11+
Creating GUI for the button
12+
'''
913
label1 = tk.Label(root, text='Upgrade PIP', bg = 'lightsteelblue2')
1014
label1.config(font=('helvetica', 20))
1115
canvas1.create_window(150, 80, window=label1)
1216

17+
18+
'''Main function to upgrade the pip version'''
1319
def upgradePIP ():
1420
os.system('start cmd /k python.exe -m pip install --upgrade pip')
1521

Diff for: AutomationScripts/PIP Upgrade/README.md

+33-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,40 @@
1-
# This is a Python Script which will upgrade your PIP version in your OS.
1+
# Pip Upgrade Script
22

3-
## Requirements
3+
-----------------
44

5-
For this script to run you need to just follow the instruction.
5+
## Short description of package/script
66

7+
- You can easily upgrade your pip version of os to the latest upgrade just by running the script.
78

8-
Run the program using command
9+
------------------
910

10-
```
11-
$ python Pip_Upgrade.py
12-
```
11+
**Imported Libraries:**
12+
- tkinter
13+
- os
1314

14-
But this script is built in a way you don't need to open Command Prompt at all.
15+
------------------
1516

16-
-->Just run the script via any editor and you are good to go.
17+
**Purpose:**
18+
It's an actual tool that I use at interval of few days to upgrade my pip version without actually opening command prompt. It's basically making life easy with PYTHON.
19+
20+
------------------
21+
22+
## Setup instructions
23+
24+
1. Open your favorite editor and run the script
25+
2. Pop-up window will open with 'PIP UPGRADE' button on it.
26+
3. Click the button and see the magic!!
27+
28+
------------------
29+
30+
## Output
31+
32+
![Screenshot](https://user-images.githubusercontent.com/57145318/122200772-f84c8200-ceb8-11eb-8115-1f6a148a159e.png)
33+
![Output](https://user-images.githubusercontent.com/57145318/122200784-fbe00900-ceb8-11eb-9c6a-e8b676cf34d7.png)
34+
35+
36+
-----------------
37+
38+
## Author(s)
39+
40+
Rishav Kumar

Diff for: AutomationScripts/PIP Upgrade/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- tkinter
2+
- os

0 commit comments

Comments
 (0)