-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
368 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import customtkinter as ctk | ||
from src.pomodoro_frame import PomodoroFrame | ||
from src.settings_frame import SettingsFrame | ||
from src.stats_frame import StatsFrame | ||
from src.utils import load_config | ||
|
||
|
||
class TabView(ctk.CTkTabview): | ||
def __init__(self, master, **kwargs): | ||
super().__init__(master, **kwargs) | ||
|
||
self.add("Main") | ||
self.add("Settings") | ||
self.add("Stats") | ||
|
||
self.main_frame = PomodoroFrame(self.tab("Main")) | ||
self.main_frame.pack(expand=True, fill='both') | ||
|
||
self.settings_frame = SettingsFrame(self.tab("Settings")) | ||
self.settings_frame.pack(expand=True, fill='both') | ||
|
||
self.stats_frame = StatsFrame(self.tab("Stats")) | ||
self.stats_frame.pack(expand=True, fill='both') | ||
|
||
|
||
class PomodoroApp(ctk.CTk): | ||
WIDTH = 350 | ||
HEIGHT = 400 | ||
|
||
def __init__(self): | ||
super().__init__() | ||
|
||
self.title("Pomodoro Tracker") | ||
self.geometry(f"{PomodoroApp.WIDTH}x{PomodoroApp.HEIGHT}") | ||
|
||
self.tabview = TabView(master=self) | ||
self.tabview.pack(pady=(15, 30), expand=True, fill='y') | ||
|
||
|
||
if __name__ == "__main__": | ||
config = load_config() | ||
ctk.set_default_color_theme(f"themes/{config['theme']}.json") | ||
ctk.set_appearance_mode("dark") | ||
app = PomodoroApp() | ||
app.mainloop() |
File renamed without changes.
Empty file.
Oops, something went wrong.