-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Add a Shortcuts Summary window #3464
Conversation
@rlaverde, let's have first the work to remove |
@rlaverde, could you rebase or merge this with the 3.x branch? It seems you started this work before 3.0 was released, and that's making Travis to fail :-) |
@rlaverde could you paste a screenshot just for reference? Is it finished otherwise? |
@goanpeca This isn't ready, I'm planning to rewrite some of the logic to calculate the maximum amount of lines for column |
Sorry, I have been rather picky 😊 |
Besides, the removal of fixed shortcuts have to be merged first :-) |
spyder/widgets/shortcuts.py
Outdated
MAX_FONT_SIZE = 16 | ||
MIN_FONT_SIZE = 8 | ||
|
||
class ShortCutsSummaryDialog(QDialog): |
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.
Please name this as ShortcutsSummaryDialog
spyder/widgets/shortcuts.py
Outdated
@@ -0,0 +1,147 @@ | |||
# -*- coding: utf-8 -*- |
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.
Please name this file as shortcutssummary.py
because just shortcuts
is a bit vague :-)
Tests are failing when they run this line
|
68ee28e
to
464de6b
Compare
@rlaverde, please solve conflicts for this one and finish it by the end of the week. |
464de6b
to
fb7a256
Compare
I tried to dynamically update the dialog to avoid it to be bigger of the screen, but it didn't work, because the size of the layout isn't updated when adding elements :/ I leave the "smart" logic that try to calculate the best amount of elements by column, and added an |
Please rebase on top of 3.x and post a screenshot of how things look now. |
The rebase is needed to fix the failures in Circle and Travis. |
…umn using screen size
- Fix misspelling Summary - Remove dlg.show() - Change spyderlib for spyder in Copyright comment - Remove TODO out of date - Add docstring - Remove unused parameters
fb7a256
to
eda8cfc
Compare
…tcuts in each column.
Screenshot???? @rlaverde |
I like it, a lot!! But I don't know if showing this dialog to the full width of the screen is the best option. @goanpeca, @jitseniesen, what do you think? |
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.
Looks good to me. I say we merge this and then we refine how it looks later if necessary.
Full width seems okay to me because the shortcuts won't fit otherwise. Unless we select and display only the "important" shortcuts. I guess I would prefer it if it scrolled vertically instead of horizontally. |
Yep, me too, but I don't know how we could achieve this. Ok, let's merge this because it's a great improvement. We can improve it later, as you said :-) |
@rlaverde its |
Fixes: #3275
Same as #3331 but to the 3.x branch, so It could be merged early