Commit Graph

24 Commits

Author SHA1 Message Date
Jack Jansen 6c11f7444c Added PyMac_GetFullPath(), PyMac_ApplicationPath and PyMac_ApplicationFSSpec 1996-11-09 18:48:06 +00:00
Jack Jansen 3d228879fe macglue: added PyMac_AppRefNum
pythonresources: elaborated comment on preferences, added new options
1996-09-06 22:18:40 +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 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 70463665d3 PyMac_BuildNumVersion added 1996-08-02 11:21:03 +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 fa4d5d0414 Added converters for Fixed 1995-11-15 15:19:29 +00:00
Jack Jansen 32486f5662 Added PyMac_PromptGetFile, removed stuff gone to other sources. 1995-08-14 12:36: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 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 f71a9a9c6e macstrerror -> MacOS-StrError; added applet and cfm-68k support 1995-02-18 14:59:48 +00:00
Jack Jansen 74162f311f Added support for loading pyc code from a resource. 1995-02-15 22:58:33 +00:00
Guido van Rossum becdbec806 ported to Think C 1995-02-14 01:27:24 +00:00
Jack Jansen 8cd2b720f6 Added PyMac_GetPythonDir routine which obtains python home directory
from an alias resource (or from the user). Note: this uses a dialog
resource so there's an accompanying change in the resource file.
1995-02-13 11:33:28 +00:00
Jack Jansen a76382a6ac Added HandleEvent method to macos, so python programs can hand back
events they don't want to handle to stdio
1995-02-02 14:25:56 +00:00
Jack Jansen ee23d6ec87 - Moved interrupt code to macglue.c
- Added possibility to turn off mainloop event handling
- Check interrupts even when not handling events
- Be more carefulabout which events we want
- Use different method to determine fg/bg
1995-01-27 14:43:25 +00:00
Jack Jansen fdbc79e779 Prototypes for new routines. 1995-01-26 16:37:21 +00:00
Guido van Rossum cf27c2d541 Some layout changes; added EventRecord Get/Build functions (as a tuple). 1995-01-25 23:06:44 +00:00
Guido van Rossum b340466af9 cosmetics: copyright, comments 1995-01-22 18:36:13 +00:00
Guido van Rossum 9aa3d1370e renamed Get routines to PyMac_Get; added macfs to config.c 1995-01-21 13:46:04 +00:00
Guido van Rossum 8f69179f97 modernized/rationalized, added PyMac_BuildOSType 1995-01-18 23:57:26 +00:00
Jack Jansen 5f653091d1 - Moved some useful routines from macosmodule.c here
- Added GetFSSpec (tuple-style), BuildFSSpec and Pstring
  (platform-independent correct conversion of C to Pascal strings)
1995-01-18 13:53:49 +00:00
Guido van Rossum fffb8bb526 rename2 changes 1995-01-12 12:37:24 +00:00
Jack Jansen f93c72a4b0 New routines:
macstrerror - strerror which uses 'Estr' resource to convert numerical
	MacOS errors to strings.
PyErr_Mac - Raise exception with MacOS error in string form.
PyMac_Idle - better idle-loop routine, which allows the user to
	switch applications.
1994-12-14 14:07:50 +00:00