Skip to content
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

Need to make it not possible to close window w/o killing process #47

Closed
Techsplosion opened this issue Sep 30, 2023 · 6 comments
Closed

Comments

@Techsplosion
Copy link
Contributor

Techsplosion commented Sep 30, 2023

This feature is (pretty much) required for my game Dot. The entire game can be skipped via closing the window (which skips to the next level).

I'd prefer a method -something named like window.disable_close()-. It disables the close button like on error popups.

I have considered directly interacting with window.window - although I will have to do some research on PyGame.

For example, the feature request would make enabled_close look like disabled_close.

@nmsderp
Copy link
Contributor

nmsderp commented Sep 30, 2023

This has very much been needed

@zenthm
Copy link
Contributor

zenthm commented Oct 1, 2023

Well, this is maybe impossible to implement since the library depends on pygame which doesn't have this feature and also SDL2 (which pygame depends on) doesn't have this I think.

@Techsplosion Techsplosion changed the title Make it not possible to close window w/o killing process Need to make it not possible to close window w/o killing process Oct 1, 2023
@Techsplosion
Copy link
Contributor Author

Well, this is maybe impossible to implement since the library depends on pygame which doesn't have this feature and also SDL2 (which pygame depends on) doesn't have this I think.

I'm fine with making the close button do nothing. Also, it would be nice to have an enable function as well.

@dimkauzh
Copy link
Member

dimkauzh commented Oct 1, 2023

Well, this is maybe impossible to implement since the library depends on pygame which doesn't have this feature and also SDL2 (which pygame depends on) doesn't have this I think.

I'm fine with making the close button do nothing. Also, it would be nice to have an enable function as well.

Yes I can do that it's no problem. But gimme time, I can't do it today. Maybe it will come in the next release.

@Techsplosion
Copy link
Contributor Author

Well, this is maybe impossible to implement since the library depends on pygame which doesn't have this feature and also SDL2 (which pygame depends on) doesn't have this I think.

I'm fine with making the close button do nothing. Also, it would be nice to have an enable function as well.

Yes I can do that it's no problem. But gimme time, I can't do it today. Maybe it will come in the next release.

Aight, fine with me.

@Techsplosion
Copy link
Contributor Author

@dimkauzh Please check out #48.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants