Skip to content
Merged
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
3 changes: 1 addition & 2 deletions .idea/Filteristic.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions Tkinter/GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,15 @@ def importWindow():
Label(importWindow,text="Editing Type", font=("Arial", 25)).pack()
Label(importWindow, text="", font=("Arial", 25)).pack()

filterButton = TkinterCustomButton(master =importWindow, text="Add Filter", corner_radius=5, command= lambda: importFilterWindow(importWindow), fg_color="#3319CB",
hover_color="#005DFE", width=300,
filterButton = TkinterCustomButton(master =importWindow, text="Add Filter", corner_radius=5, command= lambda: importFilterWindow(importWindow),
fg_color="#FF5C58", hover_color="#ff544f", width=300,
cursor="shuttle", text_font=("sans-serif", 20))
filterButton.pack()

Label(importWindow, text="", font=("Arial", 25)).pack()

backgroundButton = TkinterCustomButton(master=importWindow, text="Add Background", corner_radius=5, command=lambda: backgroundWindow(importWindow),
fg_color="#3319CB",
hover_color="#005DFE", width=300,
fg_color="#FF5C58", hover_color="#ff544f", width=300,
cursor="shuttle", text_font=("sans-serif", 20))

backgroundButton.pack()
Expand Down Expand Up @@ -96,11 +95,11 @@ def on_closing():
image= PhotoImage(file ='../assest/2.png',width=960,height=540)
Label(root, image= image).grid(column=0,row=0,columnspan=2)
Label().grid(column=0,row=1)
importButton =TkinterCustomButton(text="Image", corner_radius=5, command=importWindow,fg_color="#3319CB",hover_color="#005DFE",width=300,
importButton =TkinterCustomButton(text="Image", corner_radius=5, command=importWindow,fg_color="#FF5C58",hover_color="#ff544f",width=300,
cursor="shuttle",text_font=("sans-serif", 20))
importButton.grid(row=2,column=0)
Label().grid(column=1,row=1)
cameraButton= TkinterCustomButton(text="Camera", corner_radius=5, command=videoWindow,fg_color="#3319CB",hover_color="#005DFE",width=300,
cameraButton= TkinterCustomButton(text="Camera", corner_radius=5, command=videoWindow,fg_color="#FF5C58",hover_color="#ff544f",width=300,
cursor="shuttle",text_font=("sans-serif", 20))
# cameraButton.place(relx=0.5, rely=0.5, anchor=CENTER)
cameraButton.grid(row=2,column=1)
Expand Down
13 changes: 5 additions & 8 deletions Tkinter/GUI_Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def browse():
img_label.place(x=228, y=40)

filtering = TkinterCustomButton(master=newWindow,text="Add Filter", corner_radius=5,command=lambda: image_filter(filename, newWindow),
fg_color="#3319CB", hover_color="#005DFE", width=200,cursor="shuttle", text_font=("sans-serif", 20))
fg_color="#FF5C58",hover_color="#ff544f", width=200,cursor="shuttle", text_font=("sans-serif", 20))
filtering.place(x=380, y=550)


Expand All @@ -48,7 +48,7 @@ def browse():
newWindow.title("New Window")
newWindow.geometry("960x630")
browse_button = TkinterCustomButton(master=newWindow,text="Browse", corner_radius=5, command=browse,
fg_color="#3319CB", hover_color="#005DFE", width=200, cursor="shuttle",
fg_color="#FF5C58",hover_color="#ff544f", width=200, cursor="shuttle",
text_font=("sans-serif", 20))


Expand Down Expand Up @@ -118,12 +118,10 @@ def image_filter(path, newWindow):
change_filter[0]['counte']
))
save = TkinterCustomButton(master=newWindow, text="Save", corner_radius=5,
command=lambda: open_popup(images[-1],newWindow), fg_color="#3319CB",
hover_color="#005DFE", width=200, cursor="shuttle", text_font=("sans-serif", 20))
command=lambda: open_popup(images[-1],newWindow), fg_color="#FF5C58",hover_color="#ff544f", width=200, cursor="shuttle", text_font=("sans-serif", 20))
save.place(x=50, y=550)
next = TkinterCustomButton(master=newWindow, text="Next", corner_radius=5,
command=lambda: next_fun(path), fg_color="#3319CB",
hover_color="#005DFE", width=200, cursor="shuttle", text_font=("sans-serif", 20))
command=lambda: next_fun(path), fg_color="#FF5C58",hover_color="#ff544f", width=200, cursor="shuttle", text_font=("sans-serif", 20))
newWindow.bind("<Right>", lambda x: next_fun(path))
next.place(x=710, y=550)
render(images[-1])
Expand All @@ -134,8 +132,7 @@ def open_popup(content,newWindow):
top.title("save")
global entry
sub_btn = TkinterCustomButton(master=top, text="Submit", corner_radius=5, command=lambda: submit(content,top),
fg_color="#3319CB",
hover_color="#005DFE", width=100,
fg_color="#2da44e",hover_color="#24843f", width=100,
cursor="shuttle", text_font=("sans-serif", 20))
entry = tk.Entry(top, width=20, bg="white")
entry.place(x=75, y=10)
Expand Down
16 changes: 8 additions & 8 deletions Tkinter/GUI_Live.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ def printInput():
height=1,
width=20)
inputtxt2.place(x=400,y=550)
printButton = TkinterCustomButton(master=newWindow,text="Add New Background", corner_radius=5, command=printInput, fg_color="#3319CB", hover_color="#005DFE",
width=150,
cursor="shuttle", text_font=("sans-serif", 10))
printButton = TkinterCustomButton(master=newWindow,text="Add New Background", corner_radius=5, command=printInput,
fg_color="#FF5C58",hover_color="#ff544f",width=150,cursor="shuttle", text_font=("sans-serif", 10))
printButton.place(x=408,y=570)

def nextback():
Expand All @@ -56,11 +55,13 @@ def nextWindow():



importButton = TkinterCustomButton(master=newWindow,text="Next background", corner_radius=5, command=nextback, fg_color="#3319CB", hover_color="#005DFE",
importButton = TkinterCustomButton(master=newWindow,text="Next background", corner_radius=5, command=nextback,
fg_color="#FF5C58",hover_color="#ff544f",
width=300,
cursor="shuttle", text_font=("sans-serif", 20))
importButton.place(x=500,y=490)
importButton = TkinterCustomButton(master=newWindow,text="Next filter", corner_radius=5, command=nextWindow, fg_color="#3319CB", hover_color="#005DFE",
importButton = TkinterCustomButton(master=newWindow,text="Next filter", corner_radius=5, command=nextWindow,
fg_color="#FF5C58",hover_color="#ff544f",
width=300, cursor="shuttle", text_font=("sans-serif", 20))
importButton.place(x=160,y=490)
image = tk.PhotoImage(file='../assest/camera.png')
Expand Down Expand Up @@ -127,9 +128,8 @@ def path_name(frame):
width=20)

inputtxt.pack()
printButton = TkinterCustomButton(master=top,text="Save Image", corner_radius=5, command=lambda: print_path2(inputtxt, frame), fg_color="#3319CB",
hover_color="#005DFE", width=300,
cursor="shuttle", text_font=("sans-serif", 20))
printButton = TkinterCustomButton(master=top,text="Save Image", corner_radius=5, command=lambda: print_path2(inputtxt, frame), fg_color="#2da44e",
hover_color="#24843f", width=150,cursor="shuttle", text_font=("sans-serif", 20))
printButton.pack()

# newWindow.mainloop()
Expand Down
18 changes: 6 additions & 12 deletions Tkinter/GUI_background.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def apply_color():
backgroundImage("color", images[-1], b[color_choosen.get()], '../assest/background/back1.png')
render("../saved/temp.png")
colorButton = TkinterCustomButton(master= window, text="Add color", corner_radius=5,
command=apply_color, fg_color="#3319CB",
hover_color="#005DFE", width=200,
command=apply_color,fg_color="#FF5C58",hover_color="#ff544f", width=200,
cursor="shuttle", text_font=("sans-serif", 16))
colorButton.place(x=510, y=550)
m = StringVar()
Expand Down Expand Up @@ -102,14 +101,12 @@ def on_closing(top):
window.deiconify()

importButton = TkinterCustomButton(master=window, text="Browse", corner_radius=5,
command=browse, fg_color="#3319CB",
hover_color="#005DFE", width=200,
command=browse, fg_color="#FF5C58",hover_color="#ff544f", width=200,
cursor="shuttle", text_font=("sans-serif", 20))
importButton.place(x=140, y= 10)

web_link_Button = TkinterCustomButton(master=window, text="Download", corner_radius=5,
command=add_from_web, fg_color="#3319CB",
hover_color="#005DFE", width=200,
command=add_from_web,fg_color="#FF5C58",hover_color="#ff544f", width=200,
cursor="shuttle", text_font=("sans-serif", 20))
web_link_Button.place(x=660, y= 10)

Expand All @@ -126,8 +123,7 @@ def open_popup(newWindow):
top.geometry("250x150")
top.title("save")
sub_btn = TkinterCustomButton(master=top, text="Submit", corner_radius=5, command=lambda: saving(top),
fg_color="#3319CB",
hover_color="#005DFE", width=100,
fg_color="#2da44e",hover_color="#24843f", width=100,
cursor="shuttle", text_font=("sans-serif", 20))

global entryy
Expand All @@ -137,14 +133,12 @@ def open_popup(newWindow):

def common():
typeButton = TkinterCustomButton(master=window, text="Apply Filter", corner_radius=5,
command=get_filter_type, fg_color="#3319CB",
hover_color="#005DFE", width=200,
command=get_filter_type, fg_color="#FF5C58",hover_color="#ff544f", width=200,
cursor="shuttle", text_font=("sans-serif", 16))
typeButton.place(x=140, y=550)

saveButton = TkinterCustomButton(master=window, text="Save", corner_radius=5,
command=lambda: open_popup(window), fg_color="#3319CB",
hover_color="#005DFE", width=200,
command=lambda: open_popup(window), fg_color="#FF5C58",hover_color="#ff544f", width=200,
cursor="shuttle", text_font=("sans-serif", 20))
saveButton.place(x=400, y=600)
type_choosen['values'] = ('image',
Expand Down
Binary file added Tkinter/__pycache__/GUI_Image.cpython-39.pyc
Binary file not shown.
Binary file added Tkinter/__pycache__/GUI_Live.cpython-39.pyc
Binary file not shown.
Binary file added Tkinter/__pycache__/GUI_background.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.