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

Function setupApp

Lib/idlelib/macosx.py:253–273  ·  view source on GitHub ↗

Perform initial OS X customizations if needed. Called from pyshell.main() after initial calls to Tk() There are currently three major versions of Tk in use on OS X: 1. Aqua Cocoa Tk (native default since OS X 10.6) 2. Aqua Carbon Tk (original native, 32-bit only, deprec

(root, flist)

Source from the content-addressed store, hash-verified

251 root.unbind_class('Text', '<<PasteSelection>>')
252
253def setupApp(root, flist):
254 """
255 Perform initial OS X customizations if needed.
256 Called from pyshell.main() after initial calls to Tk()
257
258 There are currently three major versions of Tk in use on OS X:
259 1. Aqua Cocoa Tk (native default since OS X 10.6)
260 2. Aqua Carbon Tk (original native, 32-bit only, deprecated)
261 3. X11 (supported by some third-party distributors, deprecated)
262 There are various differences among the three that affect IDLE
263 behavior, primarily with menus, mouse key events, and accelerators.
264 Some one-time customizations are performed here.
265 Others are dynamically tested throughout idlelib by calls to the
266 isAquaTk(), isCarbonTk(), isCocoaTk(), isXQuartz() functions which
267 are initialized here as well.
268 """
269 if isAquaTk():
270 hideTkConsole(root)
271 overrideRootMenu(root, flist)
272 addOpenEventSupport(root, flist)
273 fixb2context(root)
274
275
276if __name__ == '__main__':

Callers

nothing calls this directly

Calls 5

isAquaTkFunction · 0.85
hideTkConsoleFunction · 0.85
overrideRootMenuFunction · 0.85
addOpenEventSupportFunction · 0.85
fixb2contextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…