Create text viewer for given text. parent - parent of this dialog title - string which is the title of popup dialog contents - text to display in this dialog wrap - type of text wrapping to use ('word', 'char' or 'none') modal - controls if users can interact with other windows
(parent, title, contents, modal=True, wrap='word', _utest=False)
| 148 | |
| 149 | |
| 150 | def view_text(parent, title, contents, modal=True, wrap='word', _utest=False): |
| 151 | """Create text viewer for given text. |
| 152 | |
| 153 | parent - parent of this dialog |
| 154 | title - string which is the title of popup dialog |
| 155 | contents - text to display in this dialog |
| 156 | wrap - type of text wrapping to use ('word', 'char' or 'none') |
| 157 | modal - controls if users can interact with other windows while this |
| 158 | dialog is displayed |
| 159 | _utest - bool; controls wait_window on unittest |
| 160 | """ |
| 161 | return ViewWindow(parent, title, contents, modal, wrap=wrap, _utest=_utest) |
| 162 | |
| 163 | |
| 164 | def view_file(parent, title, filename, encoding, modal=True, wrap='word', |
no test coverage detected
searching dependent graphs…