-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[GUI] Add context manager support for ui.Gui #3055
Conversation
Signed-off-by: Xuanwo <github@xuanwo.io>
✔️ Deploy Preview for jovial-fermat-aa59dc canceled. 🔨 Explore the source changes: a772cc0 🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/615fcdc115a2da0008ea46ea |
LGTM , would you mind adding some extra unit tests for the change? |
Of course. Can you guide me to the existing unit tests about the GUI class? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def __exit__(self, exc_type, exc_val, exc_tb):
use may better
def __exit__(self, *args)
Signed-off-by: Xuanwo <github@xuanwo.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PTAL @ailzhang |
Signed-off-by: Xuanwo <github@xuanwo.io>
This PR will introduce a new API called |
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Unfortunately, we don't have any tests for GGUI yet, because we haven't figured out headlessly running GGUI. Don't worry about writing tests for now. I will work on making GGUI testable when I have time. |
Signed-off-by: Xuanwo <github@xuanwo.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, thanks for contributing!
"""Creating a context manager for subwindow | ||
|
||
Note:: | ||
All args of this method should align with `begin`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this line should be removed along with begin/end in the next PR ;)
Signed-off-by: Xuanwo <github@xuanwo.io>
Hello, is there any thing I can do to help this PR get merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thx!
You need to pass the code format check below :-) The easiest way is to leave a comment |
/format |
Merge with master to fix the code format check. |
Signed-off-by: Xuanwo github@xuanwo.io
Related issue = close #3015
Note
This PR will introduce a new API called
sub_window
.