Repository navigation
Deprecate Window foreign kwarg and Window.focus input_only kwarg - #3234
Conversation
Window foreign kwarg and Window.focus input_only kwarg
|
Also added another deprecation for the Now the only think left to address in porting |
yunline
left a comment
There was a problem hiding this comment.
Accroding to this commit the SDL_WINDOW_FOREIGN is not removed. It's renamed to SDL_WINDOW_EXTERNAL.
However I approve to deprecate this kwarg.
In Window.__init__ we create a SDL window, However SDL_WINDOW_EXTERNAL is a flag for "window not created by SDL". Setting this kwarg doesn't make any sence.
MyreMylar
left a comment
There was a problem hiding this comment.
LGTM I guess, external would be a clearer keyword anyway if we need it for some reason (integration with Tkinter maybe?)
I was looking at compiling
Windowunder SDL3, and seems likeSDL_WINDOW_FOREIGNis now gone, with no mention or a replacement in SDL3. The easiest thing to do now seems to be undocumenting, and the code now raises a deprecation warning if theforeignkwarg is received.