-
Notifications
You must be signed in to change notification settings - Fork 201
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
Added hotkey to rename the QtConsole window. #151
Conversation
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.
same comments as with #148
old_title = self.windowTitle() | ||
title, ok = QtGui.QInputDialog.getText(self, | ||
"Rename Window", | ||
"New Title:".format(old_title), |
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.
unnecessary code. New Title -> New title.
self, | ||
shortcut="Alt+R", | ||
statusTip="Rename window", | ||
triggered=self.set_window_title) |
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 align these lines to the left parenthesis of line 612
to follow pep8
+1 from me for this one :-) |
Looks like this conflicts with #148, but ok to merge once conflicts are resolved. |
# Conflicts: # qtconsole/mainwindow.py
The Alt+R hotkey now renames the main QtConsole window.
This closes #100 .