-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.py
More file actions
30 lines (24 loc) · 791 Bytes
/
index.py
File metadata and controls
30 lines (24 loc) · 791 Bytes
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
from tkinter import *
import tkinter as tk
from geopy.geocoders import Nominatim
from tkinter import ttk, messagebox
from timezonefinder import TimezoneFinder
from datetime import datetime
import requests
import pytz
root = Tk()
root.title("Weather App")
root.geometry("900x500+300+200")
root.resizable(False, False)
#search box
# search_img= PhotoImage(file="sicon.png")
# myImage = Label(image = search_img)
# myImage.place(x=20, y=20)
textfield = tk.Entry(root, justify="center", width=17, font=("poppins", 25, "bold"), bg="#404040", border=0, fg="white")
textfield.place(x=20, y=20)
textfield.focus()
search_icon = PhotoImage(file="searcgi.png")
myImageIcon=Button(image=search_icon, borderwidth=0, cursor="hand2", bg="#404040")
myImageIcon.place(x=400, y=34)
#log0
root.mainloop()