ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since aefde77 was
4992ff2,
checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago
|
Initial, in-progress version. Not really working atm. SASVIEW-787
|
-
Property mode set to
100644
|
File size:
560 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 | """ |
---|
[4992ff2] | 5 | from PyQt5 import QtWidgets |
---|
[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) |
---|
| 14 | self.txtTitle.setText(new_title) |
---|
| 15 | |
---|
| 16 | def title(self): |
---|
[edbd4b6] | 17 | """ Return the new title """ |
---|
[27313b7] | 18 | return self.txtTitle.text() |
---|
| 19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.