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

PR: Added management for toolbars in new Editor windows instances. #3806

Merged
merged 7 commits into from
Dec 13, 2016

Conversation

dalthviz
Copy link
Member

@dalthviz dalthviz commented Dec 8, 2016

Fixes first point of #3790

@dalthviz
Copy link
Member Author

dalthviz commented Dec 8, 2016

A screenshot to illustrate the changes:

editorinstance

@ccordoba12 ccordoba12 added this to the v3.1 milestone Dec 8, 2016
@ccordoba12
Copy link
Member

Nice, I like it a lot!

Please merge with 3.x to fix the tests in CircleCI. This is a new service we integrated with the repo to run our tests faster and check for code style.

@ccordoba12
Copy link
Member

@dalthviz, there are code style failures reported by ciocheck.

Please take a look at

https://circleci.com/gh/spyder-ide/spyder/20

to fix them :-)

toolbars_names = CONF.get('main', 'last_visible_toolbars', default=[])
print(toolbars_names)
if toolbars_names:

Copy link
Member

Choose a reason for hiding this comment

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

Remove this blank line

dic[toolbar.objectName()] = toolbar
toolbar.toggleViewAction().setChecked(False)
toolbar.setVisible(False)
print(dic)
Copy link
Member

Choose a reason for hiding this comment

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

Remove this print

"""Loads the last visible toolbars from the .ini file."""

toolbars_names = CONF.get('main', 'last_visible_toolbars', default=[])
print(toolbars_names)
Copy link
Member

Choose a reason for hiding this comment

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

Remove this print


def load_toolbars(self):
"""Loads the last visible toolbars from the .ini file."""

Copy link
Member

Choose a reason for hiding this comment

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

Remove this blank

"""Get the toolbars."""
return self.toolbars

def add_actions_to_menu(self, menu_title, actions):
Copy link
Member

Choose a reason for hiding this comment

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

This method should be called add_toolbars_to_menu

menus.append(menu)
self.menus.append(menu)

def get_menu(self, menu_title):
Copy link
Member

Choose a reason for hiding this comment

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

Please change the definition of this method to to get_toolbar(self, toolbar_name)

@ccordoba12
Copy link
Member

Thanks @dalthviz, this looks good now :-)

@ccordoba12 ccordoba12 merged commit 8e4c4dc into spyder-ide:3.x Dec 13, 2016
ccordoba12 added a commit that referenced this pull request Dec 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.

2 participants