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

Add content argument to MainWindow instantiation & Add Tests #2587

Closed

Conversation

Franklin19c
Copy link

@Franklin19c Franklin19c commented May 21, 2024

Add content argument to MainWindow instantiation & Add Tests (made by cosmatech in PR #2314)

I've added a 'context' parameter to the init_ method of the Window and MainWindow classes, a doc string for each of those parameters, and added testing functions for this.

This simplifies the configuration of the context of the MainWindow.

Fixes #2307.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@Franklin19c
Copy link
Author

Two of my checks failed. I haven't looked into them enough to know if I should change something. I hope to look into it more this weekend.

@rmartin16
Copy link
Member

The towncrier check is failing because your PR doesn't contain a changenote and the pre-commit check is failing because Black wants to make changes to updated files; more details are available here: https://beeware.org/contributing/how/process#code-style

@freakboy3742
Copy link
Member

This has been superseded by #2586.

@mhsmith
Copy link
Member

mhsmith commented May 29, 2024

Sorry for the confusion, it looks like two people somehow ended up working on this at the PyCon sprints.

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

Successfully merging this pull request may close these issues.

Add content argument to MainWindow instantiation
4 participants