-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
32 lines (23 loc) · 882 Bytes
/
main.py
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
31
32
# Copyright (c) 2023 Saiyam Jain
import tkinter as tk
from tkinter import tix
import configparser
import map_viewer as mapv
import clocks_viewer as clocksv
class WorldClockApp(tix.Tk):
def __init__(self):
super().__init__()
settings = configparser.ConfigParser()
settings.read("settings.ini")
COL_THEME = dict(settings["col_theme"])
self.title("Python World Clock")
self.iconbitmap(".\\images\\icon.ico")
self.geometry("700x700")
self["background"] = COL_THEME["bg_col"]
map_frame = mapv.MapFrame(self, COL_THEME)
map_frame.pack(fill = tk.BOTH, expand = 1, pady = 0)
clocks_frame = clocksv.ClocksFrame(self, COL_THEME, map_frame.map_widget)
clocks_frame.pack(fill = tk.BOTH, expand = 1)
self.mainloop()
if __name__ == "__main__":
WorldClockApp()