Skip to content
Snippets Groups Projects
Commit 19ff0080 authored by stefan's avatar stefan
Browse files

Icons for reset view message boxes

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2574 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 7d2ff1d0
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,7 @@ class InitMenuBar(QtCore.QObject): ...@@ -106,6 +106,7 @@ class InitMenuBar(QtCore.QObject):
def ResetView(self): def ResetView(self):
msg_box = QtGui.QMessageBox() msg_box = QtGui.QMessageBox()
msg_box.setWindowTitle("Reset the Panels and Widget"); msg_box.setWindowTitle("Reset the Panels and Widget");
msg_box.setIcon(QtGui.QMessageBox.Question)
msg_box.setText("Do you really want to reset the Panels and Widgets?"); msg_box.setText("Do you really want to reset the Panels and Widgets?");
msg_box.setStandardButtons(QtGui.QMessageBox.Yes | QtGui.QMessageBox.Cancel); msg_box.setStandardButtons(QtGui.QMessageBox.Yes | QtGui.QMessageBox.Cancel);
msg_box.setDefaultButton(QtGui.QMessageBox.Cancel); msg_box.setDefaultButton(QtGui.QMessageBox.Cancel);
...@@ -115,6 +116,7 @@ class InitMenuBar(QtCore.QObject): ...@@ -115,6 +116,7 @@ class InitMenuBar(QtCore.QObject):
settings.setValue("restore_settings",QtCore.QVariant(False)) settings.setValue("restore_settings",QtCore.QVariant(False))
info_box = QtGui.QMessageBox() info_box = QtGui.QMessageBox()
info_box.setStandardButtons(QtGui.QMessageBox.Ok) info_box.setStandardButtons(QtGui.QMessageBox.Ok)
info_box.setIcon(QtGui.QMessageBox.Information)
info_box.setWindowTitle("Restart OpenStructure") info_box.setWindowTitle("Restart OpenStructure")
info_box.setText("You must restart OpenStructure for the changes to take effect!"); info_box.setText("You must restart OpenStructure for the changes to take effect!");
info_box.exec_(); info_box.exec_();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment