Last change
on this file since a0f13e6 was
33c0561,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 6 years ago
|
Replace Apply button menu driven functionality with additional button.
Removed Cancel.
Removed the window system context help button from all affected widgets.
SASVIEW-1239
|
-
Property mode set to
100644
|
File size:
698 bytes
|
Rev | Line | |
---|
[edbd4b6] | 1 | """ |
---|
| 2 | Allows users to change the title of the current graph |
---|
| 3 | from "Graph_n" to any ASCII text. |
---|
| 4 | """ |
---|
[33c0561] | 5 | from PyQt5 import QtWidgets, QtCore |
---|
[27313b7] | 6 | |
---|
[83eb5208] | 7 | from sas.qtgui.Plotting.UI.WindowTitleUI import Ui_WindowTitle |
---|
[27313b7] | 8 | |
---|
[4992ff2] | 9 | class WindowTitle(QtWidgets.QDialog, Ui_WindowTitle): |
---|
[27313b7] | 10 | """ Simple GUI for a single line text query """ |
---|
| 11 | def __init__(self, parent=None, new_title=""): |
---|
| 12 | super(WindowTitle, self).__init__(parent) |
---|
| 13 | self.setupUi(self) |
---|
[33c0561] | 14 | # disable the context help icon |
---|
| 15 | self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) |
---|
| 16 | |
---|
[27313b7] | 17 | self.txtTitle.setText(new_title) |
---|
| 18 | |
---|
| 19 | def title(self): |
---|
[edbd4b6] | 20 | """ Return the new title """ |
---|
[27313b7] | 21 | return self.txtTitle.text() |
---|
| 22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.