Skip to content

Commit

Permalink
Introduced application settings and exposed window dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
RealDanTheMan committed Jun 7, 2024
1 parent fb99ada commit 55e8678
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pyrousel/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
from dataclasses import dataclass
from .appwindow import AppWindow

def Run() -> None:
@dataclass
class ApplicationSettings:
window_width: int = 1024
window_height: int = 1024

def Run(settings: ApplicationSettings = ApplicationSettings()) -> None:
print('Running Pyrousel...')
app_window = AppWindow(1280, 1280)
app_window.Init()
app_window = AppWindow(settings.window_width, settings.window_height)
app_window.Init()
app_window.Run()
print('Quitting Pyrousel')

0 comments on commit 55e8678

Please sign in to comment.