Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tooltips for the buttons in external edit window.

  • Loading branch information...
commit 436f902e0cf55a1f9d37678e73e6271c2e41adf7 1 parent 6f6966d
@timo authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 zasim/gui/externaledit.py
View
10 zasim/gui/externaledit.py
@@ -42,8 +42,8 @@ def setup_ui(self):
self.lay.addWidget(self.fname_disp)
self.btn_box_u = QDialogButtonBox(parent=self)
- self.btn_box_u.addButton(QDialogButtonBox.Reset)
- self.btn_box_u.addButton("Update", QDialogButtonBox.AcceptRole)
+ self.btn_box_u.addButton(QDialogButtonBox.Reset).setToolTip("Change the configuration back to what it was before.")
+ self.btn_box_u.addButton("Update", QDialogButtonBox.AcceptRole).setToolTip("Read the file and load the configuration.")
self.btn_box_u.clicked.connect(self.button_clicked)
self.lay.addWidget(self.btn_box_u)
@@ -60,9 +60,9 @@ def setup_ui(self):
self.lay.addStretch()
- self.btn_box_l = QDialogButtonBox(QDialogButtonBox.Ok |
- QDialogButtonBox.Cancel,
- parent=self)
+ self.btn_box_l = QDialogButtonBox(parent=self)
+ self.btn_box_l.addButton(QDialogButtonBox.Ok).setToolTip("Close this window and keep all changes.")
+ self.btn_box_l.addButton(QDialogButtonBox.Cancel).setToolTip("Reset all changes and close this window.")
self.btn_box_l.clicked.connect(self.button_clicked)
self.lay.addWidget(self.btn_box_l)
Please sign in to comment.
Something went wrong with that request. Please try again.