-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
about_popup: Terminal size added. #1542
base: main
Are you sure you want to change the base?
Conversation
03845de
to
2ce2242
Compare
Hello @Swarnim114, it seems like you have referenced #1536 in your pull request description, but you have not referenced them in your commit message description(s). Referencing an issue in a commit message automatically closes the corresponding issue when the commit is merged, which makes the issue tracker easier to manage. Please run An example of a correctly-formatted commit:
To learn how to write a great commit message, please refer to our guide. |
ERROR: Label "Pr need review" does not exist and was thus not added to this pull request. |
@zulipbot label "PR needs review" |
@rsashank, I apologize for the confusion. This will be my final pull request for this issue. Thank you for your patience.This is the same code from before, |
@@ -301,6 +302,9 @@ def popup_with_message(self, text: str, width: int) -> None: | |||
self.show_pop_up(NoticeView(self, text, width, "NOTICE"), "area:error") | |||
|
|||
def show_about(self) -> None: | |||
terminal_size = shutil.get_terminal_size() |
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.
You changed to using shutil here - was there as a specific reason for this?
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.
@Swarnim114 To confirm, this looks good, but I wasn't sure why you switched to this.
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.
@neiljp I thought it would be just simpler and give me no issues..
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.
os.get_terminal_size()
works fine, no?
I tried to replicate what @Swarnim114 did in this PR but without using shutil
and it's working for me.
@Swarnim114 are there any shortcomings of doing it this way?
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.
@neiljp, any advice on this?
closes #1536
What does this PR do, and why?
Adds a Terminal size label under the "Detected Environment " in About popup
External discussion & connections
topic
How did you test this?
Self-review checklist for each commit
Visual changes