module: plainTextEdit

show text in a GUI window

class Assign_GUP.plainTextEdit.TextWindow(parent=None, title='window title', text='', settings=None)[source]

Bases: PyQt4.QtGui.QWidget

show text in a GUI window that remembers its geometry, based on supplied window title

Parameters:
  • parent (obj) – instance of QWidget
  • title (str) – to be used as the window title (and settings group name)
  • text (str) – window content
  • settings (obj) – instance of settings.ApplicationQSettings
closeEvent(event)[source]
moveEvent(event)[source]
restoreWindowGeometry()[source]

put the window back where it was

saveWindowGeometry()[source]

remember where the window was

setText(text)[source]
setTitle(title)[source]
settingsGroupName()[source]

need a group name in the settings file to save the window geometry, based on window title