Skip to content

Commit a5da245

Browse files
authored
Add files via upload
1 parent 8b36fd8 commit a5da245

File tree

2 files changed

+124
-0
lines changed

2 files changed

+124
-0
lines changed

Sign Up Page.py

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import tkinter as tk
2+
from tkinter import ttk
3+
4+
root = tk.Tk()
5+
root.title("Sign Up Page")
6+
root.iconbitmap('icon.ico')
7+
root.option_add("*tearOff", False) # This is always a good idea
8+
root.geometry("1000x600")
9+
root.columnconfigure(index=0, weight=1)
10+
root.columnconfigure(index=1, weight=1)
11+
root.columnconfigure(index=2, weight=1)
12+
root.rowconfigure(index=0, weight=1)
13+
root.rowconfigure(index=1, weight=1)
14+
root.rowconfigure(index=2, weight=1)
15+
root.resizable(False,False)
16+
sizegrip = ttk.Sizegrip(root)
17+
sizegrip.grid(row=100, column=100, padx=(0, 5), pady=(0, 5))# Create a style
18+
style = ttk.Style(root)
19+
widgets_frame = ttk.Frame(root, padding=(40,0, 0, 10))
20+
widgets_frame.grid(row=0, column=1, padx=0, pady=(50,10), sticky="nsew", rowspan=3)
21+
widgets_frame.columnconfigure(index=0, weight=1)
22+
# Import the tcl file
23+
root.tk.call("source", "proxttk-dark.tcl")
24+
25+
# Set the theme with the theme_use method
26+
style.theme_use("proxttk-dark")
27+
28+
d = tk.IntVar(value=2)
29+
# Label
30+
text1 = ttk.Label(widgets_frame, text="SIGN UP",font="colortube 20",foreground="white")
31+
text1.grid(row=0, column=0, pady=50, columnspan=2)
32+
33+
34+
35+
36+
d = tk.IntVar(value=2)
37+
38+
# Entry
39+
box = ttk.Entry(widgets_frame)
40+
box.insert(0, "")
41+
box.grid(row=2, column=0, padx=200, pady=0, sticky="ew")
42+
43+
44+
45+
46+
47+
# Entry
48+
box2 = ttk.Entry(widgets_frame)
49+
box2.insert(0, "Enter e-mail here...")
50+
box2.grid(row=8, column=0, padx=200, pady=50, sticky="ew")
51+
52+
# Entry
53+
box = ttk.Entry(widgets_frame)
54+
box.insert(0, "Enter name here...")
55+
box.grid(row=2, column=0, padx=200, pady=0, sticky="ew")
56+
a=box.get()
57+
b=box2.get()
58+
59+
60+
61+
62+
63+
64+
65+
66+
accentbutton = ttk.Button(widgets_frame, text="SIGN UP", style="AccentButton")
67+
accentbutton.grid(row=10, column=0, padx=300, pady=10, sticky="nsew")
68+
root.mainloop()

URL Cutter.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import tkinter as tk
2+
from tkinter import ttk
3+
4+
5+
root = tk.Tk()
6+
root.title("URL Cutter")
7+
root.iconbitmap('icon.ico')
8+
root.option_add("*tearOff", False) # This is always a good idea
9+
root.geometry("1000x600")
10+
root.columnconfigure(index=0, weight=1)
11+
root.columnconfigure(index=1, weight=1)
12+
root.columnconfigure(index=2, weight=1)
13+
root.rowconfigure(index=0, weight=1)
14+
root.rowconfigure(index=1, weight=1)
15+
root.rowconfigure(index=2, weight=1)
16+
root.resizable(False,False)
17+
18+
style = ttk.Style(root)
19+
widgets_frame = ttk.Frame(root, padding=(40,0, 0, 10))
20+
widgets_frame.grid(row=0, column=1, padx=0, pady=(50,10), sticky="nsew", rowspan=3)
21+
widgets_frame.columnconfigure(index=0, weight=1)
22+
# Import the tcl file
23+
root.tk.call("source", "proxttk.tcl")
24+
25+
# Set the theme with the theme_use method
26+
style.theme_use("proxttk")
27+
28+
d = tk.IntVar(value=2)
29+
# Label
30+
text1 = ttk.Label(widgets_frame, text="URL CUTTER",font="gotham 40 bold",foreground="#333333")
31+
text1.grid(row=0, column=0, pady=50, columnspan=2)
32+
33+
34+
35+
36+
37+
38+
d = tk.IntVar(value=2)
39+
40+
# Entry
41+
box = ttk.Entry(widgets_frame)
42+
box.insert(0, "")
43+
box.grid(row=2, column=0, padx=250, pady=0, sticky="ew")
44+
45+
46+
# Label
47+
text1 = ttk.Label(root, text=" Enter URL ",foreground="#333333")
48+
text1.grid(row=0, column=0, pady=155, columnspan=2)
49+
50+
51+
52+
53+
54+
accentbutton = ttk.Button(widgets_frame, text="CUT", style="AccentButton")
55+
accentbutton.grid(row=10, column=0, padx=300, pady=30, sticky="nsew")
56+
root.mainloop()

0 commit comments

Comments
 (0)