Module gui

This module defines a function EditMsgBox, which instantiates an object from class TextMessageBox, allowing creation of a message box for GUI interaction. This class is used in the script edit_stdb.py.

class stdb.gui.App(ststr='', title='')

GUI message box for editing the fields of a station dictionary

stdb.gui.EditMsgBox(title='', ststr='')

Create an instance of TextMessageBox, and get data back from the user.

Parameters
  • title (str) – Station name being edited

  • ststr (str) – CSV format data string to be edited

  • b1 (str) – Text for left button, or a tuple (<text for button>, <to return on press>)

  • b2 (str) – Text for right button, or a tuple (<text for button>, <to return on press>)

  • frame (bool) – Include a standard outerframe: True or False

Returns

msgbox.returning – String representation of button pressed

Return type

str