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)
| 251 | root.unbind_class('Text', '<<PasteSelection>>') |
| 252 | |
| 253 | def 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 | |
| 276 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected
searching dependent graphs…