MCPcopy Index your code
hub / github.com/python/cpython / view_text

Function view_text

Lib/idlelib/textview.py:150–161  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

148
149
150def 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
164def view_file(parent, title, filename, encoding, modal=True, wrap='word',

Callers 4

helpMethod · 0.90
viewMethod · 0.90
showMethod · 0.90
view_fileFunction · 0.85

Calls 1

ViewWindowClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…