0
0
mirror of https://github.com/python/cpython.git synced 2024-11-27 23:47:29 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
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
Guido van Rossum
c3d1c8e9fc added applet initialization;
fewer restrictions on loading modules from resources (+ fix!);
macstrerror -> MacOS_StrError
1995-02-18 15:01:31 +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
6cfab2346c Changed PyMac_GetPythonDir to use a preferences file to store the
alias resource. Also added a few comments.
1995-02-13 22:46:00 +00:00
Guido van Rossum
cc9bc8f824 null-terminate the error string in macstrerror 1995-02-13 16:17:03 +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
Guido van Rossum
cc0d879069 added <OSEvents.h> for Think C 1995-01-30 08:57:13 +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
Guido van Rossum
5279ec683a reverse h/v in Point and Rect 1995-01-26 22:56:59 +00:00
Jack Jansen
e8e8ae0f2c Added eventhandling in mainloop/busywait routine plus leaving some
cycles for background apps. MacOS has a new method to set the amount
of time for bg apps.
1995-01-26 16:36:45 +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