Jack Jansen
7e1fb7c92d
New about box, with the version mesage filled in in a text item, and
...
PLstrcmp() fixed. (Just)
1998-07-31 09:36:30 +00:00
Jack Jansen
1e2260fcb4
All import-related code has moved to macimport.c.
...
There's also new support for importing code fragments: if a file on
sys.path contains a PYD resource with resourcename equal to the name
of the module to be imported this PYD resource should contain a
(pascal) string with the name of a code fragment to load. This allows
freezing Python programs without access to source or a development
environment.
1998-07-13 13:37:12 +00:00
Jack Jansen
fa68b07526
Print message when we load a PYC resource, if verbose import flag is on.
1998-06-26 14:52:04 +00:00
Jack Jansen
bbf4be2c2f
Incorrect argument for PyMacBuildwide()
1998-04-23 13:20:17 +00:00
Jack Jansen
d58cd630eb
Added PyMac_{Get,Build}wide. These should support python longints at
...
some point in the future.
1998-04-21 15:24:39 +00:00
Jack Jansen
efaada75e4
- Universal Headers 3 mods
...
- Started on menubar-restore code (but it still doesn't work 100%)
1998-02-20 16:03:15 +00:00
Jack Jansen
213649023c
Bug fix for fast module location
1997-10-08 15:32:46 +00:00
Jack Jansen
c73f83c8d9
Fixed for new "import dir.module" semantics. Needs accompanying fix in
...
import.c (yes Guido, I'll send it tomorrow)
1997-10-07 21:48:31 +00:00
Jack Jansen
0c96887d35
Handle systemclicks ourselves, in stead of passing them to Sioux. This
...
fixes (or masks?) a bug with Python becoming unreactive during
time.sleep() if you have already switched applications before.
1997-08-26 13:20:34 +00:00
Jack Jansen
a8441ded7a
Added (dummy) PyOS_FiniInterrupts
1997-08-08 14:57:37 +00:00
Jack Jansen
36ed506f09
Added PyMac_SetEventHandler which allows you to replace complete event
...
handling in inner loop with python code. Also move (previously
machine independent) PyErr_CheckSignals here, so we can propagate
exceptions in event handling code.
1997-06-20 16:18:15 +00:00
Jack Jansen
eda78634a4
Make imports faster on the Mac, by
...
- Remembering whether sys.path components refer to files or folders,
- Using mac-specific code to check for file existence, in stead of trying
to fopen() each possible file.
These mods need an accompanying mod to import.c.
1997-06-12 15:29:46 +00:00
Jack Jansen
caa7c46ac4
- Restore SIOUX menubar just before exiting, if the console window is kept
...
open (so the user can quit with cmd-Q, print, etc)
- Removed a few unused routines
1997-06-12 10:49:13 +00:00
Jack Jansen
e3ae0dfeb7
Removed old scheduler parameterizing calls and replaced with something
...
a bit easier to use and understand
1997-06-03 15:28:29 +00:00
Jack Jansen
a39f1b0ce2
- Added Py_GetProgramFullPath
...
- Added PyMac_StopGUSISpin and have it called at exit time (fixes crash
when exiting with sockets open)
- Added PLstr... funcs needed by gusi: those provided by StdCLib are
broken under cfm68k
1997-05-23 15:35:14 +00:00
Jack Jansen
08c3be35c3
Changed the few old routine names still used to the new ones
...
Started working on MSL support
1997-04-08 15:27:00 +00:00
Jack Jansen
c587301e2e
- Changed GestaltEqu.h to Gestalt.h
...
- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
1997-02-24 13:59:38 +00:00
Jack Jansen
7e94404081
Only go into eventloop/interrupt check 10 times per second
1997-02-20 15:23:18 +00:00
Jack Jansen
42218ce33c
Added/updated copyright notices
...
(and the &*^$%@ resource files got binhexed again, sigh)
1997-01-31 16:15:11 +00:00
Jack Jansen
8096daad4f
When loading a PYC resource check whether the filename is the
...
application, and if so take a shortcut. This should speedup loading
PYC resources when running off a CDROM quite a bit.
1996-11-09 18:43:44 +00:00
Jack Jansen
0e06e7e7d5
About boxes should be at 20% of screen height, not halfway
1996-09-23 15:51:06 +00:00
Jack Jansen
d617c57dce
Changed default background yield time to 1 tick
1996-09-22 22:14:30 +00:00
Jack Jansen
7d5f9e847a
- Put all options in a struct
...
- Unified initialization code for interpreter and applet
- Implemented new options to skip AE-processing for argc/argv and for
disabling interactive option setting
1996-09-07 17:09:31 +00:00
Jack Jansen
3469e997b4
Python about box implemented. Slightly convoluted, since (a) we have
...
to override an internal sioux routine and (b) we have to override the
"about sioux" menuitem after sioux has created its menus.
1996-09-06 00:30:45 +00:00
Jack Jansen
b9bf6e2dde
Removed unused vars
1996-09-05 15:17:57 +00:00
Jack Jansen
f6865f77d4
- Fixed PyMac_DoYield:
...
- Update lastyield correctly
- Do event handling if PyMac_YieldEnabled > 0 (previous cmd-. fix
broke this)
- Use our own GUSISpin routine: fixes crash when exiting with sockets
open and keeps windows, etc reacting consistently when waiting for
accepts(), etc.
1996-09-04 15:24:59 +00:00
Jack Jansen
bf05d4cd6f
Fixed command-. handling
...
Added hacks for GetEventQueue (so you don't have to edit Events.h)
1996-08-19 15:11:45 +00:00
Jack Jansen
cfadbd40e1
Guido:
...
- new SpinCursor (replacing Jack's almost-identical one)
- use GetEventQueue in stead of GetEvQHdr
1996-08-19 11:36:25 +00:00
Jack Jansen
7ac70afed1
Dummy SpinCursor() if __CFM68K__ is defined
1996-08-19 11:01:05 +00:00
Jack Jansen
d1f06313f6
- Minimum stacksize is now 8K for PPC, 4K for 68K
...
- Added PyMac_BuildNumVersion
1996-08-01 15:23:54 +00:00
Jack Jansen
1ed9529a68
Added PyOS_CheckStack() function which returns -1 when we are running
...
low on stackspace.
1996-07-22 15:25:10 +00:00
Jack Jansen
31dd5c083b
PyMac_GetFixed() didn't return 1 on success
1996-05-31 13:01:39 +00:00
Jack Jansen
975aa22bdd
Don't change Standard File folder on chdir().
1996-03-25 15:46:25 +00:00
Jack Jansen
378815ca86
Replaced previous gusi-chdir() fix by a call to PyMac_FixGUSIcd()
...
after each chdir call.
1996-03-06 16:21:34 +00:00
Jack Jansen
911ad6b067
Added code to make fsspecs work for gusi-python
1996-03-05 16:56:24 +00:00
Jack Jansen
fa4d5d0414
Added converters for Fixed
1995-11-15 15:19:29 +00:00
Jack Jansen
38e976665d
Cosmetic change to event handling.
1995-11-10 14:53:00 +00:00
Jack Jansen
847e89ecfa
Removed unused variables
1995-08-31 13:57:40 +00:00
Jack Jansen
819f1770f6
Lots of stuff moved to other files.
...
Include pythonresources.h.
1995-08-14 12:35:10 +00:00
Jack Jansen
cf6369394e
Better error messages wrt missing resources and preferences
1995-08-07 14:36:06 +00:00
Jack Jansen
292b0f96f3
Added code so you canset "command line options" if you
...
option-click/drag python. Needs a new dialog resource.
1995-07-29 13:52:37 +00:00
Jack Jansen
f74f63a43f
Initial port to CodeWarrior CFM68K support (mainly by disabling
...
unsupported features).
1995-06-27 13:18:14 +00:00
Jack Jansen
08305504f1
Added code to obtain sys.path from a resource
...
Removed code to update the preferences file, use EditPythonPrefs.py
in stead (actually, code is still there if you define USE_MAC_MODPREFS)
1995-06-18 20:03:40 +00:00
Jack Jansen
45ff77f43e
- The prefs file wasn't updated correctly if it already existed.
...
- Guido's r1.23 fix wrt PyMac_DoYieldEnabled had somehow gotten lost.
1995-04-24 12:41:41 +00:00
Jack Jansen
16df2aa57b
Under MW also be more conservative about events to request
1995-02-27 16:17:28 +00:00
Guido van Rossum
e7134aa0f2
return old value of PyMac_DoYieldEnabled; -1 means do not even check for interrupts
1995-02-26 10:20:53 +00:00
Jack Jansen
76efd8e7a1
MAde a few things more orthogonal and did some cleanups:
...
- Applications now have their (minimal) main prrogram in
macapplication.c and the rest of the init code in macglue.c.
- A new define, USE_MAC_APPLET_SUPPORT, independent of
USE_MAC_SHARED_LIB
- chdir to script directory now done in PyMac_InitApplication.
1995-02-24 22:53:16 +00:00
Guido van Rossum
24a45e3c18
ported to MPW, moved main() here
1995-02-20 23:45:53 +00:00
Jack Jansen
3ec804af85
- Added PyMac_GetDirectory call which asks the user to select a
...
directory.
- No __main__ resource found message is now a dialog
- Fixes wrt stdio window handling in applets.
NB: these fixes require a new resource file.
1995-02-20 15:56:10 +00:00
Guido van Rossum
8c89a6fdc7
use PyMac_GetArgv (in macgetargv.c) for applet inits
1995-02-19 15:52:17 +00:00