class MathDialog(OkDialog): ''' A math dialog box that displays what the application is doing. ''' def __init__(self, parent): ''' Instantiates the dialog box. @precondition: none. @postcondition: the dialog box is initialized and ready to use. @param parent: The parent window for this dialog box. ''' OkDialog.__init__(self, parent, "Mathematics") self._hc = None def _init_text(self, text_field): ''' Overrides the OkDialog._init_text. @precondition: none. @postcondition: The text has been added to the text field. @param text_field: The tkinter.Text object which the text should be added to. ''' self._hc = HelpContent('math') self._hc.write_to_text_widget(text_field)
def _init_text(self, text_field): ''' Overrides the OkDialog._init_text. @precondition: none. @postcondition: The text has been added to the text field. @param text_field: The tkinter.Text object which the text should be added to. ''' self._hc = HelpContent('math') self._hc.write_to_text_widget(text_field)