Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
This function is suitable for displaying general written text.
The text parameter should be a string, or a list or tuple of lines to be
displayed in the textbox.
:param str msg: the msg to be displayed
:param str title: the window title
:param str text: what to display in the textbox
:param str self.codebox: if 1, act as a codebox
:param callback: if set, this function will be called when OK is pressed
:param run: if True, a box object will be created and returned, but not run
:str self.codebox: if 1, act as a codebox
"""
if run:
tb = TextBox(msg=msg, title=title, text=text,
codebox=codebox, callback=callback)
reply = tb.run()
return reply
else:
tb = TextBox(msg=msg, title=title, text=text,
codebox=codebox, callback=callback)
return tb
:param str msg: the msg to be displayed
:param str title: the window title
:param str text: what to display in the textbox
:param str self.codebox: if 1, act as a codebox
:param callback: if set, this function will be called when OK is pressed
:param run: if True, a box object will be created and returned, but not run
:str self.codebox: if 1, act as a codebox
"""
if run:
tb = TextBox(msg=msg, title=title, text=text,
codebox=codebox, callback=callback)
reply = tb.run()
return reply
else:
tb = TextBox(msg=msg, title=title, text=text,
codebox=codebox, callback=callback)
return tb