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