Commit graph

2569 commits

Author SHA1 Message Date
Jack Jansen
19ac481a2c Sigh: the Jaguar workaround for the prefs file broke saving it on OS9. Temporary workaround is to ignore the exception (it's only about file creator/type anyway). 2002-12-13 23:32:51 +00:00
Jack Jansen
9937a04994 Tweaked some button sizes to make them look better on OSX. 2002-12-13 23:31:55 +00:00
Jack Jansen
6d802a0ce3 Tweaks to make this module OS9-compatible. 2002-12-13 23:16:00 +00:00
Jack Jansen
b2ef47b84e More pre-carbon stuff bites the dust. 2002-12-13 22:55:09 +00:00
Jack Jansen
b132a39399 Removed: not carbon-compatible. 2002-12-13 22:49:24 +00:00
Jack Jansen
3d87e3cdf7 The speech manager interface is no longer supported and a replacement is
(unfortunately: especially the grail demo was hiarious) still missing.
2002-12-13 15:25:26 +00:00
Jack Jansen
fcbe5e55f5 Outdated. 2002-12-13 15:18:04 +00:00
Jack Jansen
32f614b895 Got rid of unused Compat files. 2002-12-13 15:16:59 +00:00
Just van Rossum
feddf77ad2 another wrong assumption fixed 2002-12-13 15:14:22 +00:00
Jack Jansen
68c8138e89 Still used the old config file. Fixed. 2002-12-13 15:14:00 +00:00
Jack Jansen
04543deb6c Compatibility files that haven't been used in a long time. 2002-12-13 15:05:00 +00:00
Jack Jansen
65cbf93fce Get rid of support for Universal Headers older than 3.4 and various other
outdated things.
2002-12-13 15:02:02 +00:00
Jack Jansen
55309a31df Get rid of 2.2 "poor mans universal newlines" now that the real thing
is implemented.
2002-12-13 13:57:35 +00:00
Jack Jansen
8bf053fead It was an old MacPython artefact that these files were still in the source
tree. Removed them, anyone really desparate to recover them can get them
from the CVS repository.
2002-12-13 13:38:28 +00:00
Jack Jansen
bb3e4cb14b Tkinter isn't supported under Carbon. Under MacOSX native it is, but
that version doesn't need these workarounds.
2002-12-13 13:35:33 +00:00
Jack Jansen
5e13951ad7 Very outdated: this is a 68K support file. 2002-12-13 13:33:34 +00:00
Just van Rossum
71fd01c099 and now the real fix... 2002-12-13 11:07:20 +00:00
Just van Rossum
61fcf76294 fixed bool browsing bug, sf bug #652591 2002-12-13 10:58:10 +00:00
Jack Jansen
6c7e326eaa Getting rid of pre-Carbon (MacOS8) support. All code depending on
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some
TARGET_API_MAC_OSX conditional code is gone, because it is no longer
used on OSX-only Python (only in MacPython-OS9).
2002-12-12 10:31:54 +00:00
Jack Jansen
5f61a05d7f Fixed so the Res.Resource() accepts either another resource, a string
or no argument (giving an empty resource).
2002-12-05 23:26:38 +00:00
Jack Jansen
96cebde909 Added PEP253 support to most Carbon modules. This isn't complete yet:
some of the more compilcated cases (CF, Res) haven't been done yet. Also,
various types should inherit from each other (anything with an as_Resource
method should be a Resource subtype, the CF types should become one family).
2002-12-03 23:40:22 +00:00
Just van Rossum
927bc451c4 - reworked the object unpacking code, now supports new-style objects more
or less decently/completely.
- cleaned up a little.
2002-12-01 22:10:36 +00:00
Just van Rossum
888e100356 - found a case where sys.path[0] isn't set to Contents/Resources,
so search the entire path.
- only add modules if we're building a standalone application.
2002-11-30 19:56:14 +00:00
Jack Jansen
362c7cd07b Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
2002-11-30 00:01:29 +00:00
Jack Jansen
202355a333 Build _AE too. 2002-11-29 23:58:51 +00:00
Jack Jansen
dbd5701d73 Converted the Carbon modules to use PEP252-style objects, with
descriptors in stead of manual getattr hooks to get at attributes
of the objects.

For Qd I have in stead gotten rid of most of the attribute access
in favor of the carbon-style accessor methods (with the exception
of visRgn, to be done later), and of the Carbon.Qd.qd global object,
for which accessor functions are also available.

For List I have fixed the fact that various methods were incorrectly
generated as functions.

CF is untouched: PEP252 doesn't allow "poor-mans-inheritance" with
basechain, so it will have to wait for PEP253 support.
2002-11-29 23:40:48 +00:00
Just van Rossum
24884f76c6 Forgot to do os.path.basename() on mainprogram: a nonworking app was built if the mainprogram wan't in the current directory. Fixed. 2002-11-29 21:22:33 +00:00
Just van Rossum
535ffa26e6 added Thomas H's LOADER code for importing extension (sub)modules; little tweaks 2002-11-29 20:06:52 +00:00
Just van Rossum
ad692ccde1 fixed typo and wrapping 2002-11-28 18:56:50 +00:00
Just van Rossum
74bdca8a20 - Rewrote bootstapping code in sh so we're really independent of an
installed Python. So we don't use os.execve any longer, which means
we need an actual executable in <myapp>.app/Contents/MacOS. For applets
we make a symlink to the Python executable used to build the applet,
for standalone apps we simply copy it.
- Added support for the new any_missing_maybe() feature of modulefinder.py,
which is pending as patch #643711. Its use is optional so it still works
with the existing version of modulefinder.py
2002-11-28 11:30:56 +00:00
Just van Rossum
cef3288247 added support for building standalone applications
- requires modulefinder.py to be on sys.path
- does *not* work for Python.framework (yet), only for static builds
2002-11-26 00:34:52 +00:00
Jack Jansen
2095c06cec Lots of restructuring, mostly suggested by Bill Bumgarner. Main
externally visible difference is that the factory defaults are
now in a plist file in the bundle, in stead of being hard-coded in
the application.
2002-11-25 13:11:06 +00:00
Just van Rossum
e6b49025c1 get creator code from plist if available, instead of overriding with default 2002-11-24 01:23:45 +00:00
Just van Rossum
b8829b49b2 whoops, -p actually has an argument 2002-11-24 01:15:20 +00:00
Just van Rossum
761b6095bd hardcode some resources, removing annoying Widgets.rsrc dependency 2002-11-24 01:01:07 +00:00
Just van Rossum
da302da912 cleaned up __init__ argument mess with a funky base class 2002-11-23 22:26:44 +00:00
Jack Jansen
4b5c7a4f47 Allow access to the returned value(s) as FSRefs. Unfortunately for some
reason getting at saveFileName doesn't work, so it currently only really
works for opening files for reading.
2002-11-22 23:39:52 +00:00
Jack Jansen
d0e59fb68d Added the alias manager too. The interface isn't perfect yet: the alias
manager doesn't always have the alias as the first argument, so things
become functions in stead of methods.
2002-11-22 15:53:32 +00:00
Jack Jansen
e2ba87396c Got angry and added support for pretty much the whole file and folder
manager. This should allow us the get rid of most of the FSSpecs, only
navigation services remains to be done.
2002-11-22 14:58:35 +00:00
Just van Rossum
62a103b2fc workaround so the (otherwise still broken) IDE can at least quit in the Python 2.2 Jaguar addon install 2002-11-22 12:48:47 +00:00
Just van Rossum
db2a0f6778 changed to use Lib/bundlebuilder.py instead of scripts/buildappbundle.py 2002-11-22 11:52:15 +00:00
Just van Rossum
e6de56e81c make the --link option match the original: just symlink the executable 2002-11-22 11:45:42 +00:00
Just van Rossum
16aebf77c7 Added --link-exec option: make a symlink for the executable only, copy all other files. 2002-11-22 11:43:10 +00:00
Just van Rossum
224405fcfd Replaced the bundle building code with calls to the new bundlebuilder
module.
Jack: I've compared the .app output of the orginal with the new and I
can't find any significant differences. However, bundlebuilder.py
contains its' own command line interface and I think we should use
that instead. I'll have a look to see whether I can patch
Mac/OSX/Makefile.jaguar to this effect.
2002-11-22 11:10:49 +00:00
Just van Rossum
f7aba23644 fixed error in cmd line doc; moved funny self.name line once more 2002-11-22 00:31:50 +00:00
Just van Rossum
7fd69ad2f1 fixed stupid bug 2002-11-22 00:08:47 +00:00
Just van Rossum
ceeb9627c1 added command line interface; refactored a bit; little things. 2002-11-21 23:19:37 +00:00
Just van Rossum
3e554d7b8a name kwargs kwargs 2002-11-21 10:29:57 +00:00
Just van Rossum
ad33d72361 Tools to create MacOS X (application) bundles.
Todo:
- command line parsing
- main program
- modulefinder(-like ;-) support to build standalone apps.
2002-11-21 10:23:04 +00:00
Just van Rossum
10263d6e6b - cleaned up example/test code
- don't encode/escape elements
- fixed typo in doc string
- provide our own copy function for the Dict class
2002-11-20 20:47:55 +00:00