Repository navigation
Remove _sdl2.video.messagebox - #3676
Conversation
pygame.display.message_box has been around to replace it since pygame-ce 2.4.0
📝 WalkthroughWalkthroughThis PR removes the messagebox API from the pygame SDL2 video module, including public constants, function implementations, type stubs, and documentation across all relevant files. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
💤 Files with no reviewable changes (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ankith26
left a comment
There was a problem hiding this comment.
I am neither in favor not against this at the moment. Removing it makes sense but having it does not hurt either? I'm generally unsure of what direction we plan to take _sdl2 in so maybe that is something that must be finalized first before we make any changes here?
|
The vision is to publicize features out of _sdl2 into permanent API locations with rewrites out of Cython. This is what happened with the Window module, this is what should happen with the SDL rendering API stuff. Since the message box functionality has been available outside of _sdl2 for some time now, it should be removed from _sdl2. Precedent PR from when Window was migrated: #2294 |
Matiiss
left a comment
There was a problem hiding this comment.
LGTM!
Makes sense to get rid of this!
damusss
left a comment
There was a problem hiding this comment.
I will agree, display.message_box is stable enough, there's no need for a cython duplicate.
pygame.display.message_box has been around to replace it since pygame-ce 2.4.0