Example #1
0
import tkinter as tk
from tkinter import ttk
from tkinter.constants import CENTER
from tkinter.ttk import *
from Frames import Timer, Settings
from windows import set_dpi_awareness

set_dpi_awareness()

# Color Palette Definition
COLOUR_PRIMARY = "#2e3f4f"
COLOUR_SECONDARY = "#293846"
COLOUR_LIGHT_BACKGROUND = "#fff"
COLOUR_LIGHT_TEXT = "#eee"
COLOUR_DARK_TEXT = "#8095a8"


class Pomodoro_Timer(tk.Tk):
    def __init__(self):
        super().__init__()
        self.title('Pomodoro Timer')
        self.geometry('300x200')
        self.columnconfigure(0, weight=1)
        self.rowconfigure(0, weight=1)
        self.stage_list = {}

        # Styling
        style = Style()
        style.theme_use('clam')
        style.configure("Timer.TFrame", background=COLOUR_PRIMARY)
        style.configure("Background.TFrame", background=COLOUR_PRIMARY)
Example #2
0
def main(args):
    set_dpi_awareness()
    app = App(args.test)
    app.mainloop()