Commit Graph

2232 Commits

Author SHA1 Message Date
Jack Jansen 0e5a733887 Solve sync() signature conflict differently: manually return 0 if
we have GUSI's void sync().
2002-03-21 21:09:36 +00:00
Jack Jansen 99286f96ac New checkin to convert from BinHex to AppleSingle encoding. 2002-03-21 20:18:32 +00:00
Jack Jansen ca9a4a6e17 Lurking bug found by patch for 531291: FSSpecs should be passed to
Py_BuildValue by address, not by value.

2.2.1 candidate.
2002-03-18 15:41:32 +00:00
Jack Jansen cb6cf13261 Some of the newer routines return an OSErr, like most toolbox calls, in stead of depending on ResError(). Second half of fix for #531291.
2.2.1 candidate.
2002-03-18 15:31:08 +00:00
Jack Jansen a1e5da91d5 Applet icon. 2002-03-16 00:34:03 +00:00
Jack Jansen 86c4d64751 Modifed for new included expat. 2002-03-14 23:14:43 +00:00
Jack Jansen 648c8920bd Updated for new included expat and new waste. 2002-03-14 23:13:33 +00:00
Just van Rossum a2168eceb0 mkalias() now also works for folders. Fixes bug #515830. 2002-03-10 19:28:02 +00:00
Jack Jansen 3014ce94ba CGStubLib wasn't weak-linked, fixed. 221 candidate. 2002-03-05 22:43:50 +00:00
Just van Rossum dd989e1ce7 Added ClipCGContextToRegion() from Quickdraw.h. 2002-03-04 10:31:32 +00:00
Just van Rossum 38b504e9e3 Added support for SyncCGContextOriginWithPort(). 2002-03-02 10:20:44 +00:00
Jack Jansen 5ae815af99 Some buffers needed to be unsigned char, not char. 2002-02-26 21:36:19 +00:00
Jack Jansen 6a60915843 Don't blacklist ModalFilterUPP but always pass it as NULL. This enables the record routines to be generated. 2002-02-05 22:35:36 +00:00
Jack Jansen e62ceac7d4 Added SndRecord and (classic only) SndRecordToFile. 2002-02-05 22:34:35 +00:00
Jack Jansen 5bb8f78d97 Added support for unicode strings (utxt). 2002-02-05 21:24:47 +00:00
Just van Rossum 4014401c6c Added minimal support for floating windows. 2002-02-04 12:52:44 +00:00
Just van Rossum bf0a9084c5 Don't append quit menu when on OSX, it is special and automatic there. 2002-02-04 12:48:06 +00:00
Just van Rossum 4e7203855e Flush screen buffer upon console.flush() and output.flush().
This fixes bug #511992.
2002-02-04 11:53:53 +00:00
Jack Jansen c7dd34b5e7 Added a note about compiler warnings. 2002-01-30 10:42:59 +00:00
Jack Jansen fea155370e Use full paths for Rez and DeRez, which may not be on $PATH. Fixes bug
#509074.
2002-01-27 20:05:20 +00:00
Jack Jansen 402dd6e255 Added contributors. 2002-01-25 16:13:38 +00:00
Jack Jansen 9051ad1bf2 Some modifications and clarifications (by me) to Michael's mods. 2002-01-25 15:28:39 +00:00
Jack Jansen c7a7d2d4e8 Rewritten, clarified, corrected and cleaned up by Michael J. Barber. 2002-01-25 15:06:19 +00:00
Jack Jansen b2ecc2c6c8 Get rid of keyword list and use keyword.iskeyword() function (which I wasn't aware of previously). 2002-01-24 22:44:07 +00:00
Jack Jansen bdd6e705ae "yield" is also a keyword. Spotted by Neal Norwitz. 2002-01-24 12:36:51 +00:00
Jack Jansen 8b0ee24e22 (Much) better list of Python keywords, supplied by Michael J. Barber. 2002-01-23 22:49:48 +00:00
Jack Jansen c8febecd3c Rename the routine to start the target running _start(), with a compatibility
routine start() calling it.

Some suites declare an event start(), which obscures this method, which
causes the class initializer to fail when called with start=1.

Based on bug report and fix suggestion by Jacob Kaplan-Moss.
2002-01-23 22:46:30 +00:00
Jack Jansen 685d46fee1 Newer names for various error include files. 2002-01-22 23:25:12 +00:00
Jack Jansen a618c3fcfe Build _tkinter for Carbon too. 2002-01-22 23:24:41 +00:00
Jack Jansen 7ebcbf5cf9 Identify() enum values. This was changed in 1.14, but I don't think it is a good idea. 2002-01-22 23:24:03 +00:00
Jack Jansen 368875c2d3 Regenerated to take advantage of new _builtinSuites package. 2002-01-22 23:22:32 +00:00
Jack Jansen d50c66b1e5 A "magic" suite that is the base suite for StdSuites. This solves a problem with the required events open/openapp/reopen/print/quit officially being part of Required but being defined (by Apple) in Standard.
Most of the code and ideas contributed by Michael j. Barber.
2002-01-22 23:20:12 +00:00
Jack Jansen eafff4c248 Get rid of fsspec type initializer, it wasn't used anyway. 2002-01-21 23:02:03 +00:00
Jack Jansen a4adacbd7e 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.
2002-01-21 23:01:24 +00:00
Jack Jansen 815d2bf067 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.
2002-01-21 23:00:52 +00:00
Jack Jansen c71efe0116 Also install the Tools directory on "make installmacsubtree". 2002-01-21 22:51:55 +00:00
Jack Jansen ba4fe77fba Added as_pathname() method to FSRef objects. 2002-01-18 16:13:15 +00:00
Jack Jansen 109f0945e4 Added a note that you have to add Mac/Lib to sys.path after doing
a "make installmacsubtree".
2002-01-18 16:12:27 +00:00
Jack Jansen fdc8d758ad Include errors.rsrc in the Python.app resource file, so the error strings
are available in MacOS API exceptions.
2002-01-15 23:20:40 +00:00
Jack Jansen 32d1a3b1c9 Fixed to work under MachoPython, doing the expected unpacking for applesingle files. The IDE still doesn't work, though, because it uses :-style pathnames. 2002-01-13 23:18:00 +00:00
Jack Jansen d48b10621e In MachoPython expect Unix-style pathnames for both FSSpec and FSRef initializers. TBD: Do the reverse for MacPython, and also handle as_pathname(). 2002-01-13 23:16:32 +00:00
Jack Jansen 51e77e1324 Regenerated from UH 3.4. Candidate for 2.2.1. 2002-01-13 22:59:49 +00:00
Jack Jansen 8aa498774d Removed references to download of Waste. 2002-01-11 12:41:01 +00:00
Jack Jansen 4a667c724a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads. 2002-01-11 12:39:03 +00:00
Jack Jansen 8f54f2a3f3 Internet Config is now part of official Apple interfaces, so use the new
headers and libraries.
2002-01-11 12:38:08 +00:00
Jack Jansen b99e521319 - Updated to Waste 2.0.
- Use waste included with CW in stead of separate package.
2002-01-11 12:37:15 +00:00
Jack Jansen 00638bd4f9 Don't call PyMac_OutputSeen if we have a custom console. Fix by Alexandre Parenteau. 2002-01-11 10:24:23 +00:00
Jack Jansen f706b1c807 Updated for CW7 and Tcl/Tk 8.3.4. 2002-01-10 00:07:00 +00:00
Jack Jansen 6c6b079185 Added the modules I missed first time around. Still not good enough, though: bgerror does a "package require msgcat" and I don't see a way to put packages into resources. Off to the mactcl list for help... 2002-01-10 00:05:54 +00:00
Just van Rossum 4b367359b5 Fixed TrackMouseRegion() argument: ioWasInRgn is an in/out parameter. 2002-01-09 18:54:16 +00:00
Jack Jansen e0b1e6af58 Updated for CW7 and Tcl/Tk 8.3.4. Also added a few other things
that were changed but not yet reflected in this document.
2002-01-08 23:03:45 +00:00
Jack Jansen 850bbcdf76 Upgraded _tkinter to Tcl/Tk 8.3.4. 2002-01-08 22:11:51 +00:00
Just van Rossum ec0107f023 Today's Carbon Toolbox addition: CarbonEvt.TrackMouseLocation() and friends. 2002-01-08 11:49:31 +00:00
Just van Rossum ca3b2ffbb9 Today's Carbon Toolbox addition: QDTextBounds() 2002-01-07 14:15:02 +00:00
Just van Rossum 6253a114a7 Added support for DrawThemeButton() and friends. 2002-01-06 23:03:39 +00:00
Just van Rossum 8a107fbfed Whoops, it's late -- generated output now matches what's checked in... 2002-01-05 23:44:33 +00:00
Just van Rossum eae95044ae Q&D support for ThemeDrawingState objects. 2002-01-05 23:37:19 +00:00
Just van Rossum c4cf27e8e0 - added support for UserPaneKeyDownProc and UserPaneFocusProc
- clear error after failing PyArg_Parse()
2002-01-04 19:45:15 +00:00
Jack Jansen a22a7b7a06 UH 3.4 checkin that I had forgotten about. 2002-01-04 16:01:23 +00:00
Jack Jansen 3bac5ca11a Some of the new routines are carbon-only. 2002-01-04 16:00:27 +00:00
Just van Rossum 7d1d396134 Callback error handling improvements:
- print traceback
- don't use fprintf()
- clear exception (implied by PyErr_Print())
2002-01-04 14:39:29 +00:00
Just van Rossum 3e584aaa2a Ugh, by all means, _do_ report exceptions somehow ;-) 2002-01-04 13:49:36 +00:00
Just van Rossum 43c2de230d fixed SetEventParameter() signature: removed unneccesary length arg. 2002-01-03 20:45:47 +00:00
Just van Rossum 8edfc542f0 The output MenuRef of GetMenuItemHierarchicalMenu() may be NULL. 2002-01-03 12:16:18 +00:00
Jack Jansen 4b517854d0 In MachoPython, don't simulate argc/argv unless we have argc=1 and argv[1]
starts with "-psn_". This means the drag-and-drop continues to work as
expected, but we can now also do
/Applications/Python.app/Contents/MacOS/python script.py
from the command line, which is a lot easier with debugging. Pressing <option>
at this point also has the expected effect of opening the options dialog!
2002-01-02 22:53:38 +00:00
Just van Rossum 4f6fe52424 - Added DrawThemeTextBox()
- fixed GetThemeTextDimensions(): it has an in/out Point arg, not just out.
2002-01-02 15:11:44 +00:00
Just van Rossum 1ca65c0738 rectified copy/paste oversight in comment 2002-01-02 14:59:03 +00:00
Just van Rossum ca3cff30ec - Added support for optional MenuObj arguments
- Added a bunch of calls as functions with an optional
  MenuObj first argument. The same calls already
  exist as methods, but then the first arg isn't
  optional... The method versions could go as far as I'm
  concerned. Jack?
2002-01-02 14:48:36 +00:00
Jack Jansen 69ac361cb5 Added some support for unicode arguments. 2002-01-01 22:43:13 +00:00
Jack Jansen 65293680aa Use the Carbon scrap manager interface if the old interface isn't available. 2001-12-31 15:08:04 +00:00
Jack Jansen 9cf00dd551 Updated to optionally use Carbon Scrap manager. 2001-12-31 15:02:56 +00:00
Jack Jansen ad8381a8f0 Use the Carbon scrap manager interface if the old interface isn't available. 2001-12-31 14:53:05 +00:00
Jack Jansen 420ed40344 Added support for the Carbon scrap manager (finally). 2001-12-31 14:52:03 +00:00
Just van Rossum 7633593683 Oops, forgot to mark CreateScrollBarControl and CreateSliderControl
as Carbon-only
2001-12-31 09:50:32 +00:00
Just van Rossum 20a03d1c9a made radio button labels readable under OSX 2001-12-31 08:58:44 +00:00
Just van Rossum bdb9d487b2 half-hearted stab at supported the 2.2 object model better. 2001-12-31 08:57:57 +00:00
Just van Rossum 31a4c22cee added support for live feedback in scrollbars 2001-12-31 08:56:52 +00:00
Just van Rossum cae6da632a - added support for ControlActionProcs, exposing the following calls:
- ctl.SetControlAction()
    - CreateScrollBarControl()
    - CreateSliderControl()
- print traceback when callbacks fail
2001-12-30 21:25:26 +00:00
Jack Jansen b9526515b7 Merging changes from release22-branch. 2001-12-27 23:01:18 +00:00
Just van Rossum 226275f780 Modified version of patch #496882: echo SimpleStdin readline()
input to stdout.
2001-12-27 10:29:07 +00:00
Jack Jansen 6bc62c4951 Applying r22c1 branch mods back to the trunk. 2001-12-20 20:41:45 +00:00
Just van Rossum 7eb48e3283 Moved a bunch of routines from "blacklisted" to "graylisted", as they _are_
available in OSX (mach-o) but not in CarbonLib (neither on OSX or OS9).
2001-12-18 20:15:27 +00:00
Jack Jansen 620a7667eb Updated to Universal Headers 3.4 2001-12-18 15:39:38 +00:00
Just van Rossum f30c3ad0d9 Added missing docstring 2001-12-18 12:53:47 +00:00
Just van Rossum 66d78bf2a0 Added support for tab controls and initial (incomplete) support
for DataBrowser controls.
2001-12-18 12:47:47 +00:00
Just van Rossum 820867662b Patch #494553 by Donovan Preston: initial implementation
for GetEventParameter().
2001-12-18 12:35:57 +00:00
Jack Jansen 086f7c3890 There's a new include file AEInteraction.h which contains AESend and friends. 2001-12-17 11:47:27 +00:00
Jack Jansen ec982e2739 TickCount moved to a different header file. We manually added it back in here, for conveninece. 2001-12-17 11:46:50 +00:00
Jack Jansen 2168e9d602 Adapted for Universal Headers 3.4 2001-12-16 20:18:40 +00:00
Jack Jansen 6943444664 Finally CW7 allows me to replace the continually-in-need-of-updating exports files with one 6-line anti-export-file. Yeah! (Thanks Alex, for reminding me:-) 2001-12-15 00:23:35 +00:00
Just van Rossum 2c39115240 Made event callbacks more rubust: keep an actual reference to the
python callback, and do RemoveEventHandler() upon deallocation.
2001-12-14 23:16:04 +00:00
Jack Jansen 9635f33e5b Quick patch to allow building with Universal Headers 3.4. 2001-12-14 23:03:07 +00:00
Jack Jansen 1b8bd94f73 The import of the scanner can also fail, cater for that. 2001-12-14 23:01:34 +00:00
Jack Jansen 28f14012d7 We have strdup(), but not its prototype:-( 2001-12-14 22:58:11 +00:00
Jack Jansen 031b779d43 Use getcwd(), not silly old getwd(). 2001-12-14 22:57:34 +00:00
Jack Jansen 75401a0214 Updated for CW7 2001-12-14 22:53:16 +00:00
Jack Jansen 84937719a9 Updated to CodeWarrior Pro 7. 2001-12-14 22:50:26 +00:00
Jack Jansen 615e2505f0 Many of the new calls are Carbon-only. Flagged them as such. 2001-12-14 22:47:19 +00:00
Jack Jansen 81feb6c201 Add default values for options in the class init routine, not in the convenience wrapper function: distutils uses the class directly. Fixes bug #492665. 2001-12-14 14:31:15 +00:00
Just van Rossum 7ec1c85d7a - "manage" controls created by CreateXxxXxxControl() functions.
- FindControlUnderMouse() returns an existing control, not a new one.
2001-12-13 21:24:37 +00:00