import requests
from tkinter import *



def weather():
    city=city_listbox.get()
    url="https://openweathermap.org/data/2.5/weather?q={}&appid=b6907d289e10d714a6e88b30761fae22".format(city)
    res=requests.get(url)
    output=res.json()

    weather_status=output["weather"][0]["description"]
    temperature=output["main"]["temp"]
    humidity=output["main"]["humidity"]
    wind_speed=output["wind"]["speed"]

    weather_status_label.configure(text="weather status : "+ weather_status)
    temperature_label.configure(text="temperature : "+ str(temperature))
    humidity_label.configure(text="humidity : "+ str(humidity))
    wind_speed_label.configure(text="wind speed : "+ str(wind_speed))



window=Tk()
window.geometry("300x250")

city_name_list=["Alafaya", "Daytona Beach", "Boca Raton", "Jupiter", "Orlando", "Cleveland"]

city_listbox=StringVar(window)
city_listbox.set("select the city")
option=OptionMenu(window, city_listbox,*city_name_list)
option.grid(row=2, column=2, padx=50, pady=50)

b1=Button(window, text="click",width=15, command=weather)
b1.grid(row=5,column=2, padx=100)


weather_status_label=Label(window,font=("times", 10, "bold"))
weather_status_label.grid(row=10, column=2)

temperature_label=Label(window,font=("times", 10, "bold"))
temperature_label.grid(row=12, column=2)

humidity_label=Label(window,font=("times", 10, "bold"))
humidity_label.grid(row=10, column=2)

wind_speed_label=Label(window,font=("times", 10, "bold"))
wind_speed_label.grid(row=14, column=2)

weather_status_label=Label(window,font=("times", 10, "bold"))
weather_status_label.grid(row=16, column=2)

window.mainloop()
56c88899e5b59ec5f165c698328a7b9dd8e5695f
<mask token>


def weather():
    city = city_listbox.get()
    url = (
        'https://openweathermap.org/data/2.5/weather?q={}&appid=b6907d289e10d714a6e88b30761fae22'
        .format(city))
    res = requests.get(url)
    output = res.json()
    weather_status = output['weather'][0]['description']
    temperature = output['main']['temp']
    humidity = output['main']['humidity']
    wind_speed = output['wind']['speed']
    weather_status_label.configure(text='weather status : ' + weather_status)
    temperature_label.configure(text='temperature : ' + str(temperature))
    humidity_label.configure(text='humidity : ' + str(humidity))
    wind_speed_label.configure(text='wind speed : ' + str(wind_speed))


<mask token>

<mask token>


def weather():
    city = city_listbox.get()
    url = (
        'https://openweathermap.org/data/2.5/weather?q={}&appid=b6907d289e10d714a6e88b30761fae22'
        .format(city))
    res = requests.get(url)
    output = res.json()
    weather_status = output['weather'][0]['description']
    temperature = output['main']['temp']
    humidity = output['main']['humidity']
    wind_speed = output['wind']['speed']
    weather_status_label.configure(text='weather status : ' + weather_status)
    temperature_label.configure(text='temperature : ' + str(temperature))
    humidity_label.configure(text='humidity : ' + str(humidity))
    wind_speed_label.configure(text='wind speed : ' + str(wind_speed))


<mask token>
window.geometry('300x250')
<mask token>
city_listbox.set('select the city')
<mask token>
option.grid(row=2, column=2, padx=50, pady=50)
<mask token>
b1.grid(row=5, column=2, padx=100)
<mask token>
weather_status_label.grid(row=10, column=2)
<mask token>
temperature_label.grid(row=12, column=2)
<mask token>
humidity_label.grid(row=10, column=2)
<mask token>
wind_speed_label.grid(row=14, column=2)
<mask token>
weather_status_label.grid(row=16, column=2)
window.mainloop()

<mask token>


def weather():
    city = city_listbox.get()
    url = (
        'https://openweathermap.org/data/2.5/weather?q={}&appid=b6907d289e10d714a6e88b30761fae22'
        .format(city))
    res = requests.get(url)
    output = res.json()
    weather_status = output['weather'][0]['description']
    temperature = output['main']['temp']
    humidity = output['main']['humidity']
    wind_speed = output['wind']['speed']
    weather_status_label.configure(text='weather status : ' + weather_status)
    temperature_label.configure(text='temperature : ' + str(temperature))
    humidity_label.configure(text='humidity : ' + str(humidity))
    wind_speed_label.configure(text='wind speed : ' + str(wind_speed))


window = Tk()
window.geometry('300x250')
city_name_list = ['Alafaya', 'Daytona Beach', 'Boca Raton', 'Jupiter',
    'Orlando', 'Cleveland']
city_listbox = StringVar(window)
city_listbox.set('select the city')
option = OptionMenu(window, city_listbox, *city_name_list)
option.grid(row=2, column=2, padx=50, pady=50)
b1 = Button(window, text='click', width=15, command=weather)
b1.grid(row=5, column=2, padx=100)
weather_status_label = Label(window, font=('times', 10, 'bold'))
weather_status_label.grid(row=10, column=2)
temperature_label = Label(window, font=('times', 10, 'bold'))
temperature_label.grid(row=12, column=2)
humidity_label = Label(window, font=('times', 10, 'bold'))
humidity_label.grid(row=10, column=2)
wind_speed_label = Label(window, font=('times', 10, 'bold'))
wind_speed_label.grid(row=14, column=2)
weather_status_label = Label(window, font=('times', 10, 'bold'))
weather_status_label.grid(row=16, column=2)
window.mainloop()

import requests
from tkinter import *


def weather():
    city = city_listbox.get()
    url = (
        'https://openweathermap.org/data/2.5/weather?q={}&appid=b6907d289e10d714a6e88b30761fae22'
        .format(city))
    res = requests.get(url)
    output = res.json()
    weather_status = output['weather'][0]['description']
    temperature = output['main']['temp']
    humidity = output['main']['humidity']
    wind_speed = output['wind']['speed']
    weather_status_label.configure(text='weather status : ' + weather_status)
    temperature_label.configure(text='temperature : ' + str(temperature))
    humidity_label.configure(text='humidity : ' + str(humidity))
    wind_speed_label.configure(text='wind speed : ' + str(wind_speed))


window = Tk()
window.geometry('300x250')
city_name_list = ['Alafaya', 'Daytona Beach', 'Boca Raton', 'Jupiter',
    'Orlando', 'Cleveland']
city_listbox = StringVar(window)
city_listbox.set('select the city')
option = OptionMenu(window, city_listbox, *city_name_list)
option.grid(row=2, column=2, padx=50, pady=50)
b1 = Button(window, text='click', width=15, command=weather)
b1.grid(row=5, column=2, padx=100)
weather_status_label = Label(window, font=('times', 10, 'bold'))
weather_status_label.grid(row=10, column=2)
temperature_label = Label(window, font=('times', 10, 'bold'))
temperature_label.grid(row=12, column=2)
humidity_label = Label(window, font=('times', 10, 'bold'))
humidity_label.grid(row=10, column=2)
wind_speed_label = Label(window, font=('times', 10, 'bold'))
wind_speed_label.grid(row=14, column=2)
weather_status_label = Label(window, font=('times', 10, 'bold'))
weather_status_label.grid(row=16, column=2)
window.mainloop()

import requests
from tkinter import *



def weather():
    city=city_listbox.get()
    url="https://openweathermap.org/data/2.5/weather?q={}&appid=b6907d289e10d714a6e88b30761fae22".format(city)
    res=requests.get(url)
    output=res.json()

    weather_status=output["weather"][0]["description"]
    temperature=output["main"]["temp"]
    humidity=output["main"]["humidity"]
    wind_speed=output["wind"]["speed"]

    weather_status_label.configure(text="weather status : "+ weather_status)
    temperature_label.configure(text="temperature : "+ str(temperature))
    humidity_label.configure(text="humidity : "+ str(humidity))
    wind_speed_label.configure(text="wind speed : "+ str(wind_speed))



window=Tk()
window.geometry("300x250")

city_name_list=["Alafaya", "Daytona Beach", "Boca Raton", "Jupiter", "Orlando", "Cleveland"]

city_listbox=StringVar(window)
city_listbox.set("select the city")
option=OptionMenu(window, city_listbox,*city_name_list)
option.grid(row=2, column=2, padx=50, pady=50)

b1=Button(window, text="click",width=15, command=weather)
b1.grid(row=5,column=2, padx=100)


weather_status_label=Label(window,font=("times", 10, "bold"))
weather_status_label.grid(row=10, column=2)

temperature_label=Label(window,font=("times", 10, "bold"))
temperature_label.grid(row=12, column=2)

humidity_label=Label(window,font=("times", 10, "bold"))
humidity_label.grid(row=10, column=2)

wind_speed_label=Label(window,font=("times", 10, "bold"))
wind_speed_label.grid(row=14, column=2)

weather_status_label=Label(window,font=("times", 10, "bold"))
weather_status_label.grid(row=16, column=2)

window.mainloop()