Skip to content

Commit 777c906

Browse files
authored
Merge pull request #380 from ujjwalkar0/main
Made gpscript script installer for install, update, remove a single script using gpscript command, and added guidelines in README.md
2 parents 60ebba9 + fcacb77 commit 777c906

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+129
-9
lines changed

README.md

Lines changed: 69 additions & 0 deletions

packages.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"FolderName":"ExecutableFileName.py",
3+
"AI_Workout_Tracker":"home.py",
4+
"AudioBook":"AudioBook.py",
5+
"alarm-clock":"alarm_clock.py",
6+
"Auto-Backup":"autobackup.py",
7+
"Automatic_screen_recorder":"main.py",
8+
"Battery-Notifier":"Batttery_notifier.py",
9+
"Ceaser_Cipher":"CeaserCipher.py",
10+
"Check-System-Usage":"system-usage.py",
11+
"Copy_to_clipboard":"clipboard.py",
12+
"Covid-Tracker":"coronacasestracker.py",
13+
"CpTemplate":"temp.cpp",
14+
"CryptoCurrency":"main.py",
15+
"CryptoCurrencyTracker":"main.py",
16+
"Currency-Converter":"main.py",
17+
"Daily_stocks":"top_stocks.py",
18+
"Docx_To_PDF_Converter":"script.py",
19+
"Email-Sender":"script.py",
20+
"File_Organizer":"organize.py",
21+
"HandDetectionModule":"HandDetectionModule.py",
22+
"ImageConverter":"ImageConversion.py",
23+
"Instagram_Photo_Downloader":"insta_pic_downloader.py",
24+
"Json-xlsx":"script.py",
25+
"LinkedIn-Job-Scraper":"main.py",
26+
"Meaning_Finder":"meaning_finder.py",
27+
"Mood_Sentiment_Analyzer":"app.py",
28+
"Morse-code-translation":"script.py",
29+
"Music-Visualizer":"audio_visualizer.py",
30+
"NATO_Alphabet":"script.py",
31+
"NewsDown":"main.py",
32+
"NewsReader":"news_reader.py",
33+
"NoticeScrapper":"webscraper.py",
34+
"Notification_Reminder":"notification.py",
35+
"OCR_Scanner":"ocr.py",
36+
"OSINT_TOOLS":"main.py",
37+
"PDF_to_Docx_Converter":"script.py"
38+
}
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Created by @nipunarora8
2-
32
from tkinter import *
43
from PIL import ImageTk, Image
54
import cv2
@@ -12,6 +11,10 @@
1211
from mediapipe.python.solutions.pose import PoseLandmark
1312
from exercise import workout
1413

14+
import os
15+
16+
base_dir = os.path.dirname(os.path.realpath(__file__))
17+
1518
root = Tk()
1619
root.attributes("-fullscreen", True)
1720
root.geometry(f"{root.winfo_screenwidth()}x{root.winfo_screenheight()}")
@@ -78,7 +81,7 @@ def stop_camera():
7881
# sets the geometry of toplevel
7982
camera_window.geometry(f"{root.winfo_screenwidth()}x{root.winfo_screenheight()}")
8083

81-
cam_bg = PhotoImage(file="resources/camera_bg.png")
84+
cam_bg = PhotoImage(file=f"{base_dir}/resources/camera_bg.png")
8285
bg_cam = Label(camera_window, image=cam_bg)
8386
bg_cam.place(x=0, y=0, relwidth=1, relheight=1)
8487

@@ -91,7 +94,7 @@ def stop_camera():
9194
highlightbackground="white",
9295
)
9396
imgcanvas.place(x=40, y=140)
94-
begin = PhotoImage(file="resources/begin.png")
97+
begin = PhotoImage(file=f"{base_dir}/resources/begin.png")
9598
labell = Label(imgcanvas, image=begin)
9699
labell["bg"] = "black"
97100
labell["border"] = "0"
@@ -112,13 +115,13 @@ def stop_camera():
112115
labelr.place(x=110, y=220)
113116

114117
# buttons
115-
startt_btn = PhotoImage(file="resources/start_video.png")
118+
startt_btn = PhotoImage(file=f"{base_dir}/resources/start_video.png")
116119
btn_startt = Button(camera_window, image=startt_btn, command=start_camera)
117120
btn_startt["bg"] = "#2A2D2C"
118121
btn_startt["border"] = "0"
119122
btn_startt.place(x=300, y=725)
120123

121-
stop_btn = PhotoImage(file="resources/stop_video.png")
124+
stop_btn = PhotoImage(file=f"{base_dir}/resources/stop_video.png")
122125
btn_stop = Button(camera_window, image=stop_btn, command=stop_camera)
123126
btn_stop["bg"] = "#232525"
124127
btn_stop["border"] = "0"
@@ -127,12 +130,12 @@ def stop_camera():
127130
camera_window.bind("<Key-Escape>", quit)
128131

129132

130-
bg = PhotoImage(file="resources/main_screen.png")
133+
bg = PhotoImage(file=f"{base_dir}/resources/main_screen.png")
131134

132135
bg_img = Label(root, image=bg)
133136
bg_img.place(x=0, y=0, relwidth=1, relheight=1)
134137

135-
start_btn = PhotoImage(file="resources/Start Button.png")
138+
start_btn = PhotoImage(file=f"{base_dir}/resources/Start Button.png")
136139
btn_start = Button(root, text="clickme", image=start_btn, command=opencameraWindow)
137140
btn_start["bg"] = "#202020"
138141
btn_start["border"] = "0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)