Skip to content

feat(window): add kwargs to open_window #2329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion arcade/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,7 @@ def open_window(
window_title: str | None = None,
resizable: bool = False,
antialiasing: bool = True,
**kwargs,
) -> Window:
"""
Shortcut for opening/creating a window with less options.
Expand All @@ -1231,9 +1232,13 @@ def open_window(
Whether the user can resize the window.
antialiasing:
Whether to use antialiasing
**kwargs:
Additional keyword arguments to pass to the window constructor.
"""
global _window
_window = Window(width, height, window_title, resizable=resizable, antialiasing=antialiasing)
_window = Window(
width, height, window_title, resizable=resizable, antialiasing=antialiasing, **kwargs
)
_window.invalid = False
return _window

Expand Down
Loading