In this video, learn how to extend your GUI by turning it into a weather app using data from NOAA. First, use previously saved data to populate your GUI, and in the end, directly retrieve the weather data in real time from the website.
- [Narrator] In this video, we will enhance our GUI,…and populate it with weather data.…First, we create a new labelframe.…Next, we move the location label,…and the combobox into this new labelframe.…So here, we create the new labelframe,…and we position it in column zero, and row zero.…Now, there was already the weather_conditions_frame…in row zero, so we have to move that one row down.…
So that's very easy using the grid layout manager.…All we have to do is change row zero to row one,…and create the new frame.…Column zero, row zero.…And then we put our combobox and the label…into the new weather_cities_frame labelframe.…When we now run the code, GUI looks like this.…Location label combobox are in a new labelframe up here.…And the Current Weather Conditions are still down here,…as they were before.…
Compare that to our previous GUI,…you can see that Location and combobox…were all in Current Weather Conditions.…Now we move them out and above…into it's own labelframe.…When we get data from the National Oceanic…and Atmospheric Administration website,…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Running Python programs within Eclipse
- Setting breakpoints
- Using the PyDev debugger
- Using design patterns
- Creating a GUI application with Tkinter
- Writing a Windows scheduling service