mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist and representing pathnames in a os.separator-neutral format. These shouldn't interfere too much with Just's work on the next generation IDE, I hope.
This commit is contained in:
parent
c71efe0116
commit
815d2bf067
8 changed files with 71 additions and 38 deletions
|
@ -455,7 +455,8 @@ class ModalDialog(Dialog):
|
|||
Dialog.close(self)
|
||||
|
||||
def mainloop(self):
|
||||
saveyield = MacOS.EnableAppswitch(-1)
|
||||
if hasattr(MacOS, 'EnableAppswitch'):
|
||||
saveyield = MacOS.EnableAppswitch(-1)
|
||||
while not self.done:
|
||||
#self.do1event()
|
||||
self.do1event( Events.keyDownMask +
|
||||
|
@ -465,7 +466,8 @@ class ModalDialog(Dialog):
|
|||
Events.mDownMask +
|
||||
Events.mUpMask,
|
||||
10)
|
||||
MacOS.EnableAppswitch(saveyield)
|
||||
if hasattr(MacOS, 'EnableAppswitch'):
|
||||
MacOS.EnableAppswitch(saveyield)
|
||||
|
||||
def do1event(self, mask = Events.everyEvent, wait = 0):
|
||||
ok, event = self.app.getevent(mask, wait)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue