Skip to content

Commit

Permalink
Update gui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidhved committed Jun 13, 2021
1 parent e4c2c31 commit 21793ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from tkinter import ttk
from PIL import Image, ImageTk

# Initialize tkinter token with the root widget
root = Tk()
style = ttk.Style(root)
#adjust the path here according to your local env
Expand All @@ -10,6 +11,7 @@
current_theme = style.theme_use('awdark')
root.iconphoto(False, PhotoImage(file="icon.ico"))

# Configuration Specifications
label = Label(root, width=768)
#adjust the path here according to your locak env
img = Image.open(r"C:\\Users\\miniconda3\\envs\\test\\sample.png")
Expand All @@ -23,11 +25,13 @@
label.columnconfigure((0,4), weight=0)
label.columnconfigure((1,2), weight=1)

# Calling Label Widget with the specified IP
ttk.Label(label, text="Your IP: ").grid(row = 1, column = 1, sticky='se', padx=20)
e1 = ttk.Entry(label)
e1.place(anchor=CENTER)
e1.grid(row = 1, column = 2, sticky='sw')

# Initializing Radiobutton Widget
R1 = ttk.Radiobutton(label, text="Option 1", variable=IntVar(), value=1)
R2 = ttk.Radiobutton(label, text="Option 2", variable=IntVar(), value=2)
R1.place(relx=0.5, rely=0.5, anchor=CENTER)
Expand All @@ -41,4 +45,4 @@
root.maxsize(768,600)
root.title("VCallZer")

root.mainloop()
root.mainloop() # root widget call

0 comments on commit 21793ca

Please sign in to comment.