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

Method __init__

Lib/idlelib/query.py:249–260  ·  view source on GitHub ↗

Get menu entry and url/local file for Additional Help. User enters a name for the Help resource and a web url or file name. The user can browse for the file.

(self, parent, title, *, menuitem='', filepath='',
                 used_names={}, _htest=False, _utest=False)

Source from the content-addressed store, hash-verified

247 # Used in ConfigDialog.HelpListItemAdd/Edit, (941/9)
248
249 def __init__(self, parent, title, *, menuitem='', filepath='',
250 used_names={}, _htest=False, _utest=False):
251 """Get menu entry and url/local file for Additional Help.
252
253 User enters a name for the Help resource and a web url or file
254 name. The user can browse for the file.
255 """
256 self.filepath = filepath
257 message = 'Name for item on Help menu:'
258 super().__init__(
259 parent, title, message, text0=menuitem,
260 used_names=used_names, _htest=_htest, _utest=_utest)
261
262 def create_extra(self):
263 "Add path widjets to rows 10-12."

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected