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

Added hotkey to rename the QtConsole window. #151

Merged
merged 4 commits into from
Oct 13, 2016

Conversation

tmr232
Copy link
Contributor

@tmr232 tmr232 commented Oct 10, 2016

The Alt+R hotkey now renames the main QtConsole window.
This closes #100 .

Copy link
Contributor

@wmvanvliet wmvanvliet left a 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),
Copy link
Contributor

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)
Copy link
Collaborator

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

@ccordoba12
Copy link
Collaborator

+1 from me for this one :-)

@ccordoba12 ccordoba12 added this to the 4.3 milestone Oct 12, 2016
@minrk
Copy link
Member

minrk commented Oct 13, 2016

Looks like this conflicts with #148, but ok to merge once conflicts are resolved.

# Conflicts:
#	qtconsole/mainwindow.py
@takluyver takluyver merged commit 4b96237 into jupyter:master Oct 13, 2016
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 API to change QtConsole title
5 participants