Commit Graph

2668 Commits

Author SHA1 Message Date
Jack Jansen 84c2b1b9aa Oops, 'k' is the new format code for un unchecked 32 bit quantity,
not 'K'.
2003-04-17 20:44:21 +00:00
Jack Jansen ecc6635ae4 Converted manually written code to the new K format specifier.
Untested, but at least it still compiles.
2003-04-17 20:40:07 +00:00
Jack Jansen 36b5198381 Refer people to the help pages on failure to load the database. 2003-04-16 12:40:21 +00:00
Jack Jansen 64509b33a7 Added a note on getting 404 Not Found errors when loading the database. 2003-04-16 12:39:03 +00:00
Jack Jansen a950d7b24f Added support for per-user installs.
Don't show psuedo-packages by default, added a button to show them.
Cleaned up interface a little (not enough, though).
2003-04-16 12:17:56 +00:00
Jack Jansen 4323090d95 Adapted GUI for per-user install. Doesn't do anything yet, though 2003-04-15 21:59:42 +00:00
Jack Jansen b60352992f The minimal scripting example now actually works. 2003-04-01 22:30:23 +00:00
Jack Jansen aca44e2771 Added a File->Generate OSA Suite command. 2003-03-31 15:11:14 +00:00
Jack Jansen 71ad9fb74f Added 1-page introductions to creating GUIs in Python and the OSA
interface.
2003-03-31 15:10:46 +00:00
Jack Jansen a942b9931c Moved gensuitemodule from Mac/scripts to Lib/plat-mac. Documentation
remains to be done.
2003-03-29 23:04:01 +00:00
Jack Jansen 1269be5f4a - Added an is_scriptable method to test applications for having
a scripting dictionary. Made up by me, not guaranteed to be correct
  (and, indeed, Internet Explorer does not seem to play by the book).
- Added the interactive main program as a separate routine, so it
  can be called from the IDE later. Also made it less interactive by
  default: only the input app and output package folder are asked for.
2003-03-29 22:54:00 +00:00
Jack Jansen 0fc192a9cd - Prefer using events (in stead of poking around in resource files) to
get terminology resources. Unfortunately there doesn't seem to be any
application I can ask for the basic StdSuites terminology (?).
- Prefer OSX-native versions of applications over OS9 versions.
2003-03-29 00:11:32 +00:00
Jack Jansen 8307e028b2 Sometimes a class is used as a base class of itself. Obviously there's
something I don't understand, but for now ignore this.

Output the file name such that it cannot contain non-ascii characters.
2003-03-29 00:08:24 +00:00
Jack Jansen 00c348328b Sigh: didn't catch all lists that needed to be sorted. 2003-03-28 23:37:05 +00:00
Jack Jansen 03b9c91aff - Sort various lists (list of events, OSA-classes, etc) before generating
code. This makes it a lot easier to compare the generated code for two
different versions of the suite.
- Various tweaks to the code to generate suites without looking at resource
files manually.
2003-03-28 22:04:22 +00:00
Jack Jansen 0e85e7a636 If GetAppTerminology fails (which seems to be the usual case on OSX?)
we try to manually launch the application and send it an ascr/gdte
event to get its terminology.
2003-03-26 23:14:44 +00:00
Jack Jansen a154262e44 Modified to accept a command line argument too. 2003-03-26 14:36:25 +00:00
Jack Jansen 49754af873 Frank Vercruesse gave an okay on removing the copyright notice:
"Hereby I make the script in question available under the terms and
conditions of the latest Python License."
2003-03-25 10:20:55 +00:00
Jack Jansen 7cb016db80 Not all objects have an _propdict and _privpropdict, so cater for that. 2003-03-23 22:05:53 +00:00
Jack Jansen 57c914c1aa Lots of tweaks to make this work in the new setting. Not fully tested yet. 2003-03-22 00:02:23 +00:00
Jack Jansen 8806d47aff Tools to build a disk image with a binary installer for MacPython-OSX,
donated by Robin Dunn and the rest of the wxPythonMac crew.

These are the versions from cvs.wxwindows.org as of 22-Mar-03, checked
in for reference.
2003-03-21 23:52:36 +00:00
Jack Jansen bc4ded9bc0 Give a better error message when a string of the wrong size is
passed to RawBitMap.
2003-03-21 16:42:36 +00:00
Jack Jansen 47345a794f Generate all the standard OSA suite packages. Has absolute pathname
dependencies all over the place, but this is better than nothing, for now.
2003-03-21 16:30:53 +00:00
Jack Jansen 59cdbce9b1 Got rid of the "enum not found" interaction, and added code to allow
overriding the creator signature.
2003-03-21 16:28:09 +00:00
Jack Jansen 714caa0c35 Allow gensuitemodule to be run non-interactively, from the OSX command
line. 90% of the work is done, missing enums still cause a dialog to appear.
2003-03-21 16:07:39 +00:00
Jack Jansen 6fa2dc70b8 Added _csv module, and getting rid of macfs. 2003-03-21 12:56:27 +00:00
Jack Jansen bb829b7c02 Getting rid of macfs. 2003-03-21 12:55:38 +00:00
Jack Jansen 3e0196cc00 Adding unicode filename support to FSRefs broke things on MacOS9. "Fixed" by disabling unicode filenames on OS9. 2003-03-21 12:54:24 +00:00
Jack Jansen 7e0bc112b8 Patch 702620 by Donovan Preston: Fix AE inheritance. 2003-03-21 12:04:19 +00:00
Jack Jansen fe94e97e48 GetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted by
Just.
2003-03-19 22:51:42 +00:00
Jack Jansen 54e7d2c029 Get rid of Mac.pth: plat-mac is now added through the normal mechanism. 2003-03-17 15:45:38 +00:00
Jack Jansen 08801db123 The MacPython introductory help is now called MacPython Help, and the
optional full documentation Python Documentation.
2003-03-16 22:09:22 +00:00
Jack Jansen f3ef038808 - Don't ask for bring-to-front when quitting through an appleevent.
- Changed checkbox labels as suggested by Kevin Ollivier.
2003-03-16 21:04:50 +00:00
Jack Jansen 3fd401321d Lots of textual changes suggested by Matthew Moelter. 2003-03-16 20:41:58 +00:00
Jack Jansen 82f1d2ce17 Add a simple Apple Help book to the framework. 2003-03-11 23:07:08 +00:00
Jack Jansen 8a0b5665c6 Adding MacPython online help. Only the basics are installed, with a
placeholder for the full documentation (pointing to the online docs
and explaining you can also install them locally to make them
searchable, etc).
2003-03-11 22:59:26 +00:00
Jack Jansen 2b477565ad This file was terribly outdated. The example is still silly (and won't
work), but at least the rest of the text is okay now.
2003-03-11 21:50:21 +00:00
Jack Jansen dded84802a Allow unicode pathnames where FSRefs are expected. Fixes 696253. 2003-03-11 21:48:57 +00:00
Jack Jansen 45f5c4ab3e Removed unused variable 2003-03-07 15:37:31 +00:00
Jack Jansen 1d0c6cfd9f Got PythonStandalone to work again, mainly for debugging purposes (it's much easier to debug GUSI errors in a static build). 2003-03-07 15:36:13 +00:00
Jack Jansen fa1bf1c518 First try to use the OSATerminology module to get the terminology
resources before reverting to manually reading the resources.

Unfortunately there is still a bug in here somewhere: it doesn't work
for all applications.
2003-03-06 23:04:38 +00:00
Jack Jansen ee1c85c8eb Various tweaks by Jack because of the different module name, adaptation
to the Python style, etc.
2003-03-06 23:02:59 +00:00
Jack Jansen 86f25fb1d2 Module to get OSA terminology description through the "official channels",
in stead of manually getting the AETE/AEUT resource. Donated by Donovan
Preston. This is his original code (but with the filename changed) checked
in for reference only.
2003-03-06 23:02:04 +00:00
Jack Jansen 62442c295a Fix for bug #697546: don't auto-register the Python documentation
by putting the help book in an array. Somehow the fact that Python.app
(and, hence, pythonw) got an automatic help menu messed up Tkinter's
handling of the help menu.
2003-03-05 16:13:19 +00:00
Jack Jansen 0d58ba9fda These are no longer used. 2003-03-05 09:37:19 +00:00
Jack Jansen 5125c76b68 Gave the text fields a little more space, so they don't get cut off. 2003-03-03 14:56:59 +00:00
Jack Jansen 885d4f6577 Mod to previous checkin: we must require ascii, not system defautl encoding,
because we have no easy way to convert the python encoding string to
a CF encoding parameter.
2003-03-03 13:19:44 +00:00
Jack Jansen d505cab5b3 Accept only the system default encoding when converting Python
strings to CF strings. Fixes 682215.
2003-03-03 13:12:59 +00:00
Jack Jansen 122152451e Don't call AEInteractWithUser unconditionally on a quit appleevent. The
EasyDIalogs methods will call it if needed.

Fixes #684975.
2003-03-03 12:28:04 +00:00
Jack Jansen d5532affd8 Check modes on install and temporary directories. Fixes #693230. 2003-02-28 15:19:51 +00:00
Jack Jansen f1728713cc Removed silly print. 2003-02-28 15:18:59 +00:00
Jack Jansen f92ec2d191 StdFilterProc() uses InOut parameters. 2003-02-27 22:50:50 +00:00
Jack Jansen c00b6d7a0a Added an "Open Recent" command. Fixes 607810. 2003-02-25 15:08:02 +00:00
Jack Jansen 04087b56ec In Mac OS X framework builds don't assume that the executable will be
called python.exe but actually pass it from the main Makefile to
Mac/OSX/Makefile. This makes framework builds work again on case
sensitive filesystems. Fixes bug #677753.
2003-02-25 12:41:10 +00:00
Jack Jansen ec43f64092 Fix building of Idle applet. 2003-02-24 16:30:24 +00:00
Jack Jansen af1d4225b8 Allow specifiying the destination for --extra files (default: same
filename as the source, but in Contents/Resources in the app bundle).
2003-02-24 16:28:37 +00:00
Jack Jansen 8cd9a4fded Added a linkmodel attribute, showing how Python was built. This is so
packages can check that extension modules are built for the right type
of python. Current values can be static, framework, shared and cfm (for
completeness, for MacPyton-OS9).

Closes bug #691889. The reporter suggests backporting this to 2.2.3
and I think I agree.
2003-02-23 23:23:47 +00:00
Jack Jansen 5bb97e66dc Checking mac-specific stuff from the 2.3a2 branch in on the trunk. 2003-02-21 22:33:55 +00:00
Jack Jansen 2bc4a47c86 WASTEconst.py goes one level above the toolbox directory. 2003-02-21 22:11:45 +00:00
Jack Jansen d7c1723742 Added a method WMAvailable(). This will return True if and only if there
is a window manager and we can connect to it, i.e. if it is safe to try
and put up windows.

As a side effect the first call will make the current process frontmost.
2003-02-21 16:31:11 +00:00
Jack Jansen cef2f7cd18 Use pythonw as the default interpreter also for .py scripts (overridable
by the user), as this will cause the least surprises with scripts
brought over from other unixen. Suggested by Kevin Altis.
2003-02-19 10:37:08 +00:00
Jack Jansen 4ccf3e14f0 Undid half of the previous checkin: continue using BuildApplet for most
applets. PackageManager is still built with bundlebuilder itself.
2003-02-18 23:33:39 +00:00
Jack Jansen 3d3b74677a Optionally honour #! paths in scripts. Fixes #676358. 2003-02-17 15:40:00 +00:00
Jack Jansen fd3e54c68e When building an applet clear out the tempfile and dir afterwards. 2003-02-16 21:28:51 +00:00
Jack Jansen d2c684f79f Moved setupDocs.py to Doc/setup.py and did some cleanup. It now at least
allows bdist, but it's still one big hack:-(
2003-02-14 23:46:22 +00:00
Jack Jansen 4ab8437e7f Allow opening of alternate databases. 2003-02-14 14:13:25 +00:00
Jack Jansen f68043c4a9 Got building documentation from source to work. 2003-02-14 12:47:14 +00:00
Jack Jansen c13f19f1fc Icons for the package manager. 2003-02-12 16:20:23 +00:00
Jack Jansen 3a146b6c7d Photoshop source file for package manager icon. 2003-02-12 16:16:52 +00:00
Jack Jansen d78003671a Use bundlebuilder directly to build applets. 2003-02-12 15:42:49 +00:00
Jack Jansen ffb8fef6d5 Allow this to run both standalone and as a window in the IDE. 2003-02-12 15:39:56 +00:00
Jack Jansen a359a3d0ac More int() around float arguments. 2003-02-12 15:39:16 +00:00
Jack Jansen c0452da1b8 Create applets slightly differently: by saving the sourcecode to a
temporary location. This is needed to makethings work with the new
buildtools based on bundlebuilder.
2003-02-12 15:38:37 +00:00
Jack Jansen 113af98c89 Renamed InstallManager to PackageManager, finished a first stab at the
implementation and integrated it into the IDE.
2003-02-12 12:47:56 +00:00
Jack Jansen 9c679f8128 In a MultiList select all cells in the row, not only the first one. 2003-02-12 12:47:00 +00:00
Jack Jansen 73019a6321 An install manager window for the IDE and standalone use. Unfinished. 2003-02-11 23:15:33 +00:00
Jack Jansen 726b238860 - More int() calls around floating point numbers passed where integers are
expected.
- Fixed resizing of multi-column lists, somewhat.
2003-02-11 16:26:26 +00:00
Jack Jansen 658375b833 Got rid of macfs. 2003-02-06 23:13:11 +00:00
Jack Jansen 5a79329547 Got rid of FSSpecs. 2003-02-06 22:57:44 +00:00
Jack Jansen e7ee17c58e Got rid of macfs and FSSpecs in general (pathnames or FSRefs are now
used everywhere).
2003-02-06 22:32:35 +00:00
Jack Jansen f3f4af5521 Got rid of macfs and made a bit more OSX-friendly. 2003-02-05 23:10:46 +00:00
Just van Rossum 19e02fc67f removing old junk 2003-02-05 22:59:07 +00:00
Jack Jansen ab564eea05 Removed unused import of macfs. 2003-02-05 22:53:29 +00:00
Jack Jansen 6d8bca8cb6 I don't think this script serves a useful purpose anymore, and I can't
be bothered to fix it.
2003-02-05 22:52:16 +00:00
Jack Jansen 611b9f6697 Added "Open File by Name" command which presens a filename dialog. If
the clipboard contains a filename that filename is used as the default.
2003-02-05 15:41:09 +00:00
Jack Jansen d424836f3a Cast various floats to ints so we don't get warnings. 2003-02-05 15:40:05 +00:00
Jack Jansen 8d4f06a73a Added itertools module. 2003-02-05 13:36:50 +00:00
Jack Jansen b9fa1a9ec5 Changed an edit instruction because of a changed parameter name (sigh). 2003-02-04 15:35:07 +00:00
Jack Jansen 52377e05be The FSAliasFile routines also have an in/out parameter. 2003-02-02 23:00:21 +00:00
Just van Rossum 3bd8d0fb9c patch #678211 from Robin Dunn 2003-02-01 10:07:28 +00:00
Jack Jansen 60ffc2bafc Added a missing INCREF in pathname(). 2003-01-28 23:29:46 +00:00
Jack Jansen 50abec8fc4 Install "python$(VERSION)" into /usr/local as the symlink to the framework,
and also create a symlink "python" pointing to "python$(VERSION)".
Fixes #675745.
2003-01-28 21:45:44 +00:00
Jack Jansen fd0b00e0a7 Use new file dialogs. 2003-01-26 22:15:48 +00:00
Jack Jansen 2373ff4e4f Fix an omission in the previous checkin. 2003-01-26 22:15:10 +00:00
Jack Jansen b340acf9fd Use new file dialogs. 2003-01-26 21:40:00 +00:00
Jack Jansen df976caa34 Use new file dialogs. 2003-01-26 20:35:47 +00:00
Jack Jansen 2b3ce3ba3f FSRef and EasyDialogs pathname support was pretty much broken in MacPython-OS9. Fixed. 2003-01-26 20:22:41 +00:00
Jack Jansen d44a3ec63c Getting rid of StandardGetFile 2003-01-22 14:03:12 +00:00
Just van Rossum 7a503a4ee6 Fix bug #670845: cut & clear in the output window now work, in that
- clear clears the entire buffer
  - cut doesn't cut, but copies.
2003-01-20 09:02:23 +00:00
Jack Jansen 9c564755b8 Added a convenience routine pathname() which accepts either a string, unicode,
FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).
2003-01-19 22:59:52 +00:00