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

Add an option to set window title to the command line #3133

Merged
merged 3 commits into from
Apr 26, 2016

Conversation

eendebakpt
Copy link
Contributor

@eendebakpt eendebakpt commented Apr 22, 2016

Fixes #3129

@@ -37,5 +37,7 @@ def get_options():
parser.add_option('--profile', action='store_true', default=False,
help="Profile mode (internal test, "
"not related with Python profiling)")
parser.add_option('--windowtitle', type=str, default=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add an hyphen between window and title? So this option should be

--window-title

@ccordoba12 ccordoba12 added this to the v3.0beta4 milestone Apr 22, 2016
@ccordoba12 ccordoba12 changed the title add option to set window title to command line Add an option to set window title to the command line Apr 22, 2016
@ccordoba12
Copy link
Member

Other than my minor comments, I think this is ready :-)

@eendebakpt
Copy link
Contributor Author

Ok, code is updated with the suggestions.

@@ -439,6 +439,9 @@ def signal_handler(signum, frame=None):
sys.version_info[1])
if DEBUG:
title += " [DEBUG MODE %d]" % DEBUG
if not options.window_title is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if options.window_title is not None: is more commonly used in python, because it looks like an english sentence.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, changed to code for this

@ccordoba12 ccordoba12 modified the milestones: v3.0beta3, v3.0beta4 Apr 25, 2016
@ccordoba12
Copy link
Member

@eendebakpt, thanks a lot for your contribution! :-)

@ccordoba12 ccordoba12 merged commit c2346e2 into spyder-ide:master Apr 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants