diff --git a/database/delete_record.py b/database/delete_record.py index 3cf09a4..161f53d 100644 --- a/database/delete_record.py +++ b/database/delete_record.py @@ -10,10 +10,10 @@ #------------------------------------------------------------------------------- import MySQLdb -db = MySQLdb.connect("localhost","root","","cable") +db = MySQLdb.connect("localhost","root","","binarynote") cursor = db.cursor() name = input("Enter any name : ") -sql ="delete from customer where name like '%" + name + "';" +sql ="delete from user where uname like '%" + name + "';" cursor.execute(sql) db.commit() db.close() diff --git a/fileHandling/delete_duplicate_files.py b/fileHandling/delete_duplicate_files.py index 032167c..70480ef 100644 --- a/fileHandling/delete_duplicate_files.py +++ b/fileHandling/delete_duplicate_files.py @@ -6,6 +6,7 @@ import glob import tkinter as tk from tkinter import filedialog + count=0 root = tk.Tk() root.withdraw() diff --git a/fileHandling/folderManager.py b/fileHandling/folderManager.py index c049df6..9eb19f4 100644 --- a/fileHandling/folderManager.py +++ b/fileHandling/folderManager.py @@ -2,11 +2,14 @@ # made by : rakesh kumar # last compiled on : 30/11/2019 - -import os import os.path from os import path +import sys import shutil +import tkinter as tk +from tkinter import filedialog +import tkinter.messagebox + source = r'C:\Users\rakesh\Documents' @@ -15,7 +18,7 @@ 'img': ['jpg', 'jpeg', 'png', 'gif', 'bmp'], 'exe': ['zip', 'rar', 'exe'], 'prg': ['py', 'cpp', 'php'], - 'music': ['mp3', 'mp4', 'mkv', 'wmv', '3gp', 'avi', 'mov', 'aac', 'flv', 'ogg', 'ogb', 'yuv', 'mpg'] + 'music': ['mp3', 'mp4', 'mkv', 'wmv', '3gp', 'avi', 'mov', 'aac', 'flv', 'mpg'] } @@ -31,8 +34,18 @@ def filemove(file, filetype, key): pass -for root, folder, files in os.walk(source): +root = tk.Tk() +root.withdraw() +sourcedir = filedialog.askdirectory() # source folder +if not sourcedir.strip(): + print("Folder Error...User did not selected any folder") + #rootdir = 'C:\\Users\\ace + sys.exit() + +for root, folder, files in os.walk(sourcedir): for file in files: for key in filetype.keys(): if(file.split('.')[1]) in filetype[key]: filemove(file, filetype, key) + +tkinter.messagebox.showinfo('Window Title', 'Please check your Folde now') diff --git a/hello.py b/hello.py index 8617dd4..9d6a43f 100644 --- a/hello.py +++ b/hello.py @@ -1,3 +1,3 @@ if __name__ == '__main__': - for i in range(1,101,3): - print(i) \ No newline at end of file + for i in range(1,24,3): + print(i) diff --git a/tempCodeRunnerFile.py b/tempCodeRunnerFile.py new file mode 100644 index 0000000..92b2adf --- /dev/null +++ b/tempCodeRunnerFile.py @@ -0,0 +1 @@ +target_list \ No newline at end of file diff --git a/turtle.py b/turtle.py index 3904dd0..093b452 100644 --- a/turtle.py +++ b/turtle.py @@ -1,6 +1,5 @@ import tkinter from turtle import * -color('red', 'yellow') begin_fill() while True: forward(200) diff --git a/welcome.mp3 b/welcome.mp3 index 5550d20..eb89195 100644 Binary files a/welcome.mp3 and b/welcome.mp3 differ