Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion alarm_clock/AlarmClock.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


def snooze(t):
global set_time
HH_MM = set_time.split(':')
HH_MM[1] = str(int(HH_MM[1]) + t)
set_time = ':'.join(HH_MM)
Expand Down
2 changes: 0 additions & 2 deletions audio_sticky_notes/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ def makenew():


def maker(wins):
global numofwindows
subprocess.Popen(["python.exe", "note.py", str(numofwindows)], shell=True)
numofwindows = 1 + wins
maintain()


def maintain():
global numofwindows
storage = open("assets\\storage", "w")
storage.write(str(numofwindows))
storage.close()
Expand Down
1 change: 0 additions & 1 deletion auto_clicker/autoclicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def choose_delay():


def key_press(key):
global running, pause

if key == start_or_pause_key:
pause = not pause
Expand Down
3 changes: 0 additions & 3 deletions auto_sms/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import requests

# Variables
global apiKey
global SID
global senderID
apiKey = "" # enter your api key
SID = "" # enter your SID number
senderID = "" # enter the senderID registered
Expand Down
5 changes: 0 additions & 5 deletions book_manager/bookman.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

class Ui_MainWindow(object):
def setupUi(self, MainWindow):
global books
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1037, 622)
self.centralwidget = QtWidgets.QWidget(MainWindow)
Expand Down Expand Up @@ -133,7 +132,6 @@ def retranslateUi(self, MainWindow):

def show_all(self):
self.list_1.clear()
global books
# print(books)
for item in books:
newitem = QtWidgets.QListWidgetItem(
Expand All @@ -147,7 +145,6 @@ def show_all(self):
self.lineEdit.clear()

def search_books(self):
global books
results = []
searchtext = self.lineEdit.text()
field = [self.radioButton_1.isChecked(), self.radioButton_2.isChecked(
Expand All @@ -167,7 +164,6 @@ def search_books(self):
self.list_1.addItem(newitem)

def add_books(self):
global books
res = self.open_dialog_box()
name = res[0].split('/')[-1]
Dialog2 = QtWidgets.QDialog()
Expand Down Expand Up @@ -196,7 +192,6 @@ def open_dialog_box(self):
# print(filename)

def open_properties(self, item):
global books
lines = item.text().split('\n')
final = []
for index, i in enumerate(lines):
Expand Down
3 changes: 0 additions & 3 deletions corona_tracker_visualizer/corona_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,6 @@ def refresh():
def main_ui():
"""Main user interface"""

global root
global frame_stat
global frame_data

root = tk.Tk()

Expand Down
1 change: 0 additions & 1 deletion discord_github_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def get_github_notifications():
# Notification Sender function
async def send_notification(context):
# Check if channel is present in guild
global already_sent
channel = discord_get(
context.guild.text_channels,
name=config.DISCORD_CHANNEL,
Expand Down
11 changes: 0 additions & 11 deletions interview_automater/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


# Defining global variables
global name, score
score = 0


Expand Down Expand Up @@ -81,7 +80,6 @@ def update_name(name, n_clicks):
[Input('a1', 'value')]
)
def q1(a1):
global score
if a1 is None:
raise PreventUpdate
else:
Expand All @@ -107,7 +105,6 @@ def q1(a1):
[Input('a2', 'value')]
)
def q2(a2):
global score
if a2 is None:
raise PreventUpdate
else:
Expand Down Expand Up @@ -135,7 +132,6 @@ def q2(a2):
[Input('a3', 'value')]
)
def q3(a3):
global score
if a3 is None:
raise PreventUpdate
else:
Expand Down Expand Up @@ -177,7 +173,6 @@ def q3(a3):
[Input('a4', 'value')]
)
def q4(a4):
global score
if a4 is None:
raise PreventUpdate
else:
Expand Down Expand Up @@ -210,7 +205,6 @@ def q4(a4):
[Input('a5', 'value')]
)
def q5(a5):
global score
if a5 is None:
raise PreventUpdate
else:
Expand All @@ -235,7 +229,6 @@ def q5(a5):
[Input('a6', 'value')]
)
def q6(a6):
global score
if a6 is None:
raise PreventUpdate
else:
Expand Down Expand Up @@ -263,7 +256,6 @@ def q6(a6):
[Input('a7', 'value')]
)
def q7(a7):
global score
if a7 is None:
raise PreventUpdate
else:
Expand Down Expand Up @@ -291,7 +283,6 @@ def q7(a7):
[Input('a8', 'value')]
)
def q8(a8):
global score
if a8 is None:
raise PreventUpdate
else:
Expand Down Expand Up @@ -321,7 +312,6 @@ def q8(a8):
[Input('a9', 'value')]
)
def q9(a9):
global score
if a9 is None:
raise PreventUpdate
else:
Expand Down Expand Up @@ -357,7 +347,6 @@ def q9(a9):
[Input('a10', 'value')]
)
def q10(a10):
global score
if a10 is None:
raise PreventUpdate
else:
Expand Down
2 changes: 0 additions & 2 deletions jpg_to_png/jpg_to_png.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# function to convert file from jpg to png

def jpg_to_png():
global im1
import_filename = fd.askopenfilename()

if import_filename.endswith('.jpg'):
Expand All @@ -42,7 +41,6 @@ def jpg_to_png():
# function to convert png file to jpg

def png_to_jpg():
global im1
import_filename = fd.askopenfilename()

if import_filename.endswith('.png'):
Expand Down
3 changes: 0 additions & 3 deletions json_to_md/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ def build_value_chain(key, value, depth):

def add_header(value, depth):
chain = build_header_chain(depth)
global markdown
markdown += chain.replace('value', value.title())


def add_value(key, value, depth):
chain = build_value_chain(key, value, depth)
global markdown
markdown += chain


Expand All @@ -87,7 +85,6 @@ def convert(input_file, output_file, options):
json_data = load_json(input_file)
depth = 0
parse_json(json_data, depth, options)
global markdown
markdown = markdown.replace('#######', '######')
write_out(markdown, output_file)

Expand Down
1 change: 0 additions & 1 deletion mp4_to_mp3_convertor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@


def mp4_choose():
global filename, onlyfilename
filename = filedialog.askopenfilename(initialdir="/",
title="Choose MP4",
filetypes=(("Text files", "*.Mp4*"),
Expand Down
Loading
Loading