Commit Graph

173 Commits

Author SHA1 Message Date
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
Jack Jansen
b6b6c6c33f Patch by Jason Harper to allow IDE to work again under MacOS 8.1. Plus appearance support for Wlist frames and focussing. Plus commented-out appearance support for the same for Wtext, which still needs some work. 2001-12-04 13:30:29 +00:00
Just van Rossum
2009aa66b4 removed some dead code. 2001-12-03 19:27:38 +00:00
Just van Rossum
cee949f945 Removed old and broken AE-based browser controller, use webbrowser.py
instead. This fixes bug #488420.
2001-12-03 18:11:36 +00:00
Jack Jansen
b3be216b41 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
changes from start of branch upto r22b2 were already merged, of course).
2001-11-30 14:16:36 +00:00
Just van Rossum
f376ef0996 a whole bunch of OSX tweaks 2001-11-18 14:12:43 +00:00
Just van Rossum
b26fbc6447 Rewritten the List Definition for the traceback window in Python,
which makes it work under Carbon. Next stop: the object browser.
2001-11-05 08:51:24 +00:00
Just van Rossum
6b45b1ee52 macdinking 2001-11-02 22:55:15 +00:00
Just van Rossum
2dd4d1600a use 32bit APIs for control values, refactor slightly 2001-11-02 22:51:42 +00:00
Just van Rossum
a73f78b6ec use proper APIs for activate/deactivate 2001-11-02 21:12:52 +00:00
Just van Rossum
9ae6f894b0 wintertime blues 2001-11-02 19:30:49 +00:00
Just van Rossum
2d564fdc06 removed import display hackery 2001-11-02 19:30:21 +00:00
Just van Rossum
f7f9388061 some support for syntax coloring, disabled for now 2001-11-02 19:24:41 +00:00
Just van Rossum
3160d95a73 changed the default font 2001-11-02 19:22:55 +00:00
Just van Rossum
01c9805b8d fixed a non-Carbon Carbon import 2001-11-02 19:21:34 +00:00
Just van Rossum
64350b4610 - rearranged some imports
- removed default button drawing code: this doesn't work well
  under OSX. Needs to be replaced by SetWindowDefaultButton()
  calls, once we have those.
2001-11-02 19:17:16 +00:00
Just van Rossum
2e9e71fea6 rearranged some imports 2001-11-02 19:09:34 +00:00
Just van Rossum
05a56b87bb call the correct base method (found due to better inheritance checking in 2.2) 2001-10-31 12:55:07 +00:00
Just van Rossum
c72d4cddc9 Fixed old bug (caused by careless Carbonizing) that noone noticed until
this week (apparently me and Bob Heeter at more or less the same time).
2001-09-24 17:29:09 +00:00
Jack Jansen
71707f3bb8 Patch by Mark Day to allow from __future__ imports. Looks harmless
enough, but may have side-effects because it preallocates a single
codeop.Compiler() to compile all statements the user enters.

Just: please review and retract/modify if necessary.
2001-09-07 10:11:31 +00:00
Jack Jansen
0de279b9cd Updated the Popt resources for the applets to the newest version. 2001-09-01 23:37:28 +00:00
Jack Jansen
3c06b9a7d4 Use the new macresource module to open the accompanying resource file (if needed). 2001-08-27 21:41:23 +00:00
Jack Jansen
206bd57355 When we're freezing to sourcecode and one of the modules is a dynamic module that is in a package we freeze that module at toplevel (outside any package). Not optimal, but there is little more we can do as config.c has no way to specify a builtin module has to be dumped into a package. 2001-08-27 13:59:35 +00:00
Jack Jansen
dc4d925be9 - A forgotten "from Carbon".
- Made the "killed unknown window" code dependent on a global var,
  so you can easily turn the behaviour off for IDE debugging.
2001-08-27 10:55:41 +00:00
Jack Jansen
4d3052acb0 A few forgotten "from Carbon"s. 2001-08-27 10:54:55 +00:00
Jack Jansen
5a6fdcd371 Import the MacOS toolbox modules from the Carbon package. 2001-08-25 12:15:04 +00:00
Jack Jansen
106fceacb2 Temporarily disabled the import hook. It breaks with the package-based
Carbon and its workaround.
2001-08-19 22:00:20 +00:00