Logo Search packages:      
Sourcecode: mago version File versions  Download package

def mago::application::main::Application::write_text (   self,
  text,
  txt_field = '' 
)

Given an application it tries to write text to its current buffer.

Definition at line 128 of file main.py.

00128                                             :
        """
        Given an application it tries to write text to its current buffer.
        """
        app = ooldtp.context(self.name)

        if txt_field == '':
            try:
                ldtp.enterstring(text)
            except ldtp.LdtpExecutionError:
                raise ldtp.LdtpExecutionError, "We couldn't write text."
        else:
            try:
                app_txt_field = app.getchild(txt_field)
            except ldtp.LdtpExecutionError:
                raise ldtp.LdtpExecutionError, "The " + txt_field + " text field was not found."
            try:
                app_txt_field.settextvalue(text)
            except ldtp.LdtpExecutionError:
                raise ldtp.LdtpExecutionError, "We couldn't write text."

    def _enable_a11y(self, enable):


Generated by  Doxygen 1.6.0   Back to index