Commit Graph

299 Commits

Author SHA1 Message Date
Walter Dörwald 70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Just van Rossum 001734ca7f fixed long standing typo 2003-12-07 18:11:51 +00:00
Jack Jansen ac5d667e9f Fix (workaround, actually) for bug #844676: deselecting "show hidden" can
cause an index error. We now select the first package if this threatens
to happen. Will backport.
2003-11-27 23:19:33 +00:00
Jack Jansen 9cc4fcd649 Package Mnager error dialogs could refer to hidden packages, which was
confusing. To be on the safe side we always show hidden packages before
showing error dialogs. Will backport.
2003-11-27 23:12:17 +00:00
Jack Jansen 28ecf70db5 Getting rid of support for MacOS9 and earlier. This is the first step,
and the biggest in size, but probably the easiest. Hunting through the
source code comes next.
2003-11-19 14:34:18 +00:00
Jack Jansen d48364e8b1 Forward port of various fixes that were initially only done on the
release23-maint branch:
- Remember the scroll position when rebuilding the browser (as we do far
too often). Fixes #824430.
- Allow for the documentation to be inside PythonIDE as well as in
the Python.app inside the framework (the original location for 2.3).
- Updated version numbers
- In PythonIDE, add the Tools/IDE directory as the second entry in
sys.path in stead of as the first, leaving PythonIDE.app/Contents/Resources
as the first one.
- The code for setting the working directory to $HOME was both incorrect
and in the wrong place, fixed.
- On OSX the default location for IDE scripts is now
$HOME/Library/Python/IDE-Scripts.
2003-11-19 13:45:26 +00:00
Just van Rossum 4e6b3c55d0 Fix for [ 782686 ]: new files used \r as the default line separator
instead of os.linesep.
2003-11-18 22:41:16 +00:00
Just van Rossum 7e94a9aae3 fix for bug [819860]: make sure the buffer gets emptied, even if WEInsert() fails 2003-10-12 19:27:24 +00:00
Jack Jansen 40b2e83924 We erronuously re-used the pimpinstaller object if there were multiple installs.
This lead to a duplication of error messages (and installs). Fixes #764615.
2003-07-21 22:11:07 +00:00
Jack Jansen a7203d1037 Because plistlib doesn't catch all possible errors that can
happen while parsing a plistfile feeding an ill-formatted file to
pimp may cause an exception. As a stopgap we use an unqualified except
and print an error message "Unspecified error, probably ill-formatted
database". Fixes #765621.
2003-07-21 22:03:14 +00:00
Jack Jansen dd614fdc51 Fixed lots of minor issues found by Edward Moy: incorrect version
strings, non-standard naming of things in bundles, etc.
2003-07-04 13:06:14 +00:00
Jack Jansen 2a97dcce09 Use splitlines() in stead of split() to split lines, and added a method
shortdescription() so the code to split off the first line of the
description isn't all over the place.
2003-06-01 20:03:43 +00:00
Jack Jansen 9f0c5754a6 - Get the database from a different place.
- Added support for multi-line descriptions. Doesn't look nice
yet in Package Manager.
2003-05-29 22:07:27 +00:00
Jack Jansen 31fa845c01 Added Help menu. Fixes #731635 2003-05-27 14:10:37 +00:00
Just van Rossum 8d97b9bd36 fixed some DeprecationWarnings 2003-05-25 20:44:37 +00:00
Just van Rossum ba5db20558 also support cmd-. in the interactive window 2003-05-09 11:47:23 +00:00
Just van Rossum eb64af9201 add explicit support for cancelling a running script (CFM-based MacPython had this built-in) 2003-05-09 08:58:02 +00:00
Just van Rossum 476736eed6 more dead code removal 2003-05-09 08:33:58 +00:00
Just van Rossum 5ef0e7cc47 dead code removal 2003-05-09 08:27:33 +00:00
Jack Jansen 9a79182316 Fix for #731643: allow "lookup in documentation" to also work if the
interactive window is frontmost.
2003-05-06 14:28:31 +00:00
Just van Rossum 4e2d23226f Install automatic GIL switcher upon IDE startup.
(Jack: maybe this could/should be done in Framework.py instead, that way
apps don't have to think about it. PackMan springs to mind...)
2003-05-03 00:31:35 +00:00
Just van Rossum d797e7b507 Fixed age-old beginner's error: don't start the main loop as a side
effect of an import. (This is one step towards threading support in
the IDE.)
2003-05-02 23:40:29 +00:00
Jack Jansen f776dee6dd Hiding packages was done incorrectly. Fixed. 2003-04-22 13:53:33 +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 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 aca44e2771 Added a File->Generate OSA Suite command. 2003-03-31 15:11:14 +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 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 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 c00b6d7a0a Added an "Open Recent" command. Fixes 607810. 2003-02-25 15:08:02 +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 fd3e54c68e When building an applet clear out the tempfile and dir afterwards. 2003-02-16 21:28:51 +00:00
Jack Jansen 4ab8437e7f Allow opening of alternate databases. 2003-02-14 14:13:25 +00:00
Jack Jansen c13f19f1fc Icons for the package manager. 2003-02-12 16:20:23 +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 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 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 fd0b00e0a7 Use new file dialogs. 2003-01-26 22:15:48 +00:00
Jack Jansen b340acf9fd Use new file dialogs. 2003-01-26 21:40:00 +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
Just van Rossum c1a9cab8f0 interpret utf-8 file names on OSX 2003-01-09 23:20:31 +00:00
Just van Rossum addc11edf0 removed silly & mask, avoiding FutureWarning 2003-01-09 22:54:37 +00:00
Jack Jansen 9431e48d23 macfsn is gone. 2002-12-26 21:17:42 +00:00
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
Just van Rossum feddf77ad2 another wrong assumption fixed 2002-12-13 15:14:22 +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
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
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
Just van Rossum 761b6095bd hardcode some resources, removing annoying Widgets.rsrc dependency 2002-11-24 01:01:07 +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
Jack Jansen 293fdeb31e Another workaround, to find the IDE directory when we're in MacPython-OSX
on Jaguar.

Ceteram censeam W era packagendam esse.
2002-11-18 15:29:02 +00:00
Just van Rossum 7b0255153f 'Replace all' in the find dialog didn't properly update the text view (it used to, though...). Fixed. 2002-10-24 20:03:29 +00:00
Just van Rossum 7aa7f2eb0d cd to users home dir if no current dir has been set. Fixes bug #625734 2002-10-20 17:14:28 +00:00
Just van Rossum 3c4dee4ca7 make sure the object browser can't crash because when the list data gets bigger than 32kB 2002-09-16 21:18:49 +00:00
Jack Jansen 10c6eda070 Mode rU for universal newlines, not rT. Spotted by Guido. 2002-09-12 19:41:28 +00:00
Jack Jansen ec694c32a7 Pass None to AHGotoPage(). 2002-09-11 22:05:59 +00:00
Jack Jansen f6b3fddfc3 The debugger source view only understood mac-style linefeeds. Fixed. 2002-09-11 22:05:02 +00:00
Jack Jansen 7f677f49ea Reorganized order of help menu, and don't show Carbon documentation
entries on OS9 (where they are never available, and simply disabling
them might lead people to think otherwise).
2002-09-06 23:03:32 +00:00
Jack Jansen b2d2bc9a55 Implemented the Help menu. The Python manual can be viewed (if installed)
and the selection can be looked up, and so can the Carbon manual. From the
help menu you can also get to the online documentation, the Python website
and the MacPython page.

Untested in MacPython-OS9.
2002-08-31 01:25:17 +00:00
Jack Jansen 6be89564cc If there's an environment variable PYTHONIDEPATH it points to the IDE
folder. This allows running the IDE from the source tree on OSX.
2002-08-31 01:22:37 +00:00
Jack Jansen f94cadf456 MenuID's are signed. 2002-08-31 01:20:53 +00:00
Just van Rossum 979c53757b fixed wrong classic MacOS pathname assumption 2002-07-12 16:50:32 +00:00
Just van Rossum 2ad9419c8f minor fixes, removed obsolete warning 2002-07-12 12:06:17 +00:00
Jack Jansen e9c0358bf4 e macresource.need() to open the W resource file in the application init
code (if it isn't open already).

PythonIDE still opens the resource file "manually" because it also uses
presence of the CURS resource to determine whether it needs to adjust
sys.path.
2002-04-03 21:52:10 +00:00
Jack Jansen 8f3078b3f0 Got the example program to work in MachoPython. 2002-04-03 21:28:02 +00:00
Jack Jansen ff773eba36 Added a "run with commandline Python" flag. Works in MachoPython, should work
in OSX MacPython (untested), and should be disabled/removed in OS9 (but
that doesn't happen yet).
2002-03-31 22:01:33 +00:00
Jack Jansen 8134976fee Auxiliary files for building the IDE applet. Running the IDE through
BuildApplet for MachoPython now seems to do the right thing, yeah!
2002-03-29 23:46:34 +00:00
Just van Rossum ca3d307271 repair damage: canceling the "save options" dialog now works again. 2002-03-29 21:48:42 +00:00
Just van Rossum 8bb61c8d4c repair damage: now works again as a CFM app. 2002-03-29 21:47:56 +00:00
Jack Jansen 9a38947fba Completely revamped newline handling. PyEdit is now newline-preserving
(if a single newline convention is used in the sourcefile), and the
"save options" has a newline style radio button.

The creator radio button also has the new choices PythonW and None.

Just: just shout (and revert) if you don't agree.
2002-03-29 21:26:04 +00:00
Jack Jansen e0ba087d44 Allow file without filetype as long as they end in ".py".
Added a -D flag (can really only be specified on OSX commandline) to not
revector sys.stderr, for debugging the IDE itself. Not sure whether
this should stay.
2002-03-29 21:23:47 +00:00
Just van Rossum 4e6d13cebf Make object browser work in OSX (by rewriting the old browser
LDEF in Python). If at all possible, this should go into 2.2.1.
2002-03-26 12:06:11 +00:00
Jack Jansen b9e6661206 For reasons I don't fully understand we sometimes get unexpected events
in MachoPython. As we don't have MacOS.HandleEvent() we drop these on
the floor (with a print).
2002-03-21 22:36:57 +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 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 65293680aa Use the Carbon scrap manager interface if the old interface isn't available. 2001-12-31 15:08:04 +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
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 226275f780 Modified version of patch #496882: echo SimpleStdin readline()
input to stdout.
2001-12-27 10:29:07 +00:00
Just van Rossum 0441dbff16 OSX workaround: don't crash if the extentions folder can't be found.
Not sure how to properly solve this.
2001-12-13 17:11:21 +00:00
Just van Rossum 3f4651ec9c re-checkin as AppleSingle 2001-12-13 12:54:36 +00:00
Just van Rossum 1f1e7270cf OSX tweak. 2001-12-08 10:37:40 +00:00
Just van Rossum 59d5a9b5b7 Don't do App.DrawThemeListBoxFrame() upon activate: it starts
looking worse and worse if you deactivate/activate the window
a few times. I don't know how to fix this properly, but I'm beginning
to think that it's almost impossible to support the Appearance
manager properly due to the way W works. Time for W2?...
2001-12-08 09:51:41 +00:00