source: sasview/src/sas/qtgui/Plotting/WindowTitle.py @ 6b43c58

Last change on this file since 6b43c58 was 83eb5208, checked in by Piotr Rozyczko <rozyczko@…>, 8 years ago

Putting files in more ordered fashion

  • Property mode set to 100644
File size: 552 bytes
RevLine 
[edbd4b6]1"""
2Allows users to change the title of the current graph
3from "Graph_n" to any ASCII text.
4"""
[27313b7]5from PyQt4 import QtGui
6
[83eb5208]7from sas.qtgui.Plotting.UI.WindowTitleUI import Ui_WindowTitle
[27313b7]8
9class WindowTitle(QtGui.QDialog, Ui_WindowTitle):
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.