-
Notifications
You must be signed in to change notification settings - Fork 0
/
weatherday1.py
22 lines (16 loc) · 870 Bytes
/
weatherday1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import tkinter as tk
from guisettings import *
class WeatherTowmorrowWidget(tk.Frame):
def __init__(self, root, *args, **kwargs):
tk.Frame.__init__(self, root, *args, **kwargs)
self.root = root
self.temperature = str(0)
self.Min = str(2)
self.Max = str(4)
self.imageEx = tk.PhotoImage(file = '200x200')
self.image = tk.Label(image = self.imageEx)
self.image.grid(row=4, column=1)
self.mintemptomorrow = tk.Label(self, text = "Min: " + self.Min + "°", font = ('arial', LABEL_FONT_SIZE, 'bold'), background = "#" + BACKGROUND)
self.mintemptomorrow.grid()
self.maxtemptomorrow = tk.Label(self, text = "Max: " + self.Max + "°", font = ('arial', LABEL_FONT_SIZE, 'bold'), background = "#" + BACKGROUND)
self.maxtemptomorrow.grid()