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

ENH: Added "Restart Slicer" button into developer section for fast Slicer restarting #584

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ENH: Added "Restart Slicer" button into developer section
  • Loading branch information
che85 committed Sep 20, 2016
commit 03858d25595d214352103d87a8bd828eac6526e1
9 changes: 9 additions & 0 deletions Base/Python/slicer/ScriptedLoadableModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ def setupDeveloperSection(self):
self.layout.addWidget(self.reloadCollapsibleButton)
reloadFormLayout = qt.QFormLayout(self.reloadCollapsibleButton)

# restart Slicer button
# (use this during development, but remove it when delivering
# your module to users)
self.restartButton = qt.QPushButton("Restart Slicer")
self.restartButton.toolTip = "Restart Slicer"
self.restartButton.name = "ScriptedLoadableModuleTemplate Restart"
reloadFormLayout.addWidget(self.restartButton)
self.restartButton.connect('clicked()', slicer.app.restart)

# reload button
# (use this during development, but remove it when delivering
# your module to users)
Expand Down