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
Just van Rossum
e6e745fc49
Show the MacPython IDE version in the interactive banner.
2001-08-06 11:12:18 +00:00
Fred Drake
79e75e1916
Use string.ascii_letters instead of string.letters (SF bug #226706 ).
2001-07-20 19:05:50 +00:00
Just van Rossum
3eec7620be
- fixed some re usage, partly so it'll still work when re uses pre instead
...
of sre, and partly fixing re -> regex porting oversights
- fixed PyFontify.py so it actually *works* again..
2001-07-10 19:25:40 +00:00
Just van Rossum
25ddc6330f
- minor cleanup, removed bogus comments
...
- make method reload handle __private attrs correctly
- fixed whole word search
2001-07-05 07:06:26 +00:00
Just van Rossum
924e18e0b8
don't crash when encountering bad marshal data
2001-07-05 07:03:16 +00:00
Just van Rossum
67456e841c
don't blow up when the charno SyntaxError value is None
2001-06-21 21:52:15 +00:00
Just van Rossum
b10eb84f29
repaired expandselection and uncomment breakage
2001-06-21 17:51:17 +00:00
Just van Rossum
d700d79a73
Override bdb's canonic() method with a no-op: with bdb's version we couldn't edit breakpoints in file-less ("Untitled" script windows). Besides, we did't need it as we always use full path names anyway.
2001-06-20 19:57:55 +00:00
Just van Rossum
dc3c617cb8
Some long overdue maintainance. Made all IDE sources 7-bit-clean, to avoid any further encoding conversion troubles.
2001-06-19 21:37:33 +00:00
Jack Jansen
dac238bd46
When reading from stdin (with the dialog box) use any partial line on
...
stdout as the prompt. This makes raw_input() and print "xxx", ; sys.stdin.readline() work a bit more palatable.
2001-05-26 20:01:41 +00:00
Jack Jansen
a5ca7dd71a
One more macroman<->latin1 conversion victim.
2001-05-23 20:03:06 +00:00
Jack Jansen
6f84ed5afc
Fixed macroman<->latin1 conversion. Some chars don't
...
exist in latin1, but at least the roundtrip results in the
same macroman characters.
2001-05-17 12:45:13 +00:00
Jack Jansen
dfebe90c4c
Fixed macroman<->latin1 conversion. Some characters don't exist in latin1, but at least the roundtrip gives
...
the correct macroman characters again.
2001-05-17 12:35:13 +00:00
Jack Jansen
fddef433d1
Got module to work under Carbon. Also disabled a few more bits of cfm68k support.
2001-03-20 21:55:51 +00:00
Jack Jansen
26d42df3c1
Added riscos modules to modules that don't have to be included.
2001-03-20 21:55:07 +00:00
Jack Jansen
06646a1be0
Added QDFlushPortBuffer calls.
2001-03-15 14:35:33 +00:00
Jack Jansen
fffec05bcb
Import kOnSystemDisk from MACFS
2001-03-15 14:33:24 +00:00
Jack Jansen
e5c9474f0f
Default waittime in the eventloop is now None. At low level it will then be set to GetCaretTime().
2001-03-08 23:10:37 +00:00
Jack Jansen
53ebe562f5
Handle the ReopenApplication event (by ignoring it).
2001-03-08 23:09:32 +00:00
Jack Jansen
dbd0c3a124
Silly typo which caused the stack browser to crash.
2001-03-01 23:15:54 +00:00
Jack Jansen
6223d48933
Added Popt resource for "dont show console"
...
Changed SIZE resource to be carbon-compatible.
2001-02-27 23:22:51 +00:00
Jack Jansen
316a01093d
Waste 2.0 has many more options for the undo label.
2001-02-21 15:45:55 +00:00
Jack Jansen
9ad2752381
Use re in stead of regex, so we get rid of the annoying warning during startup.
2001-02-21 13:54:31 +00:00
Jack Jansen
def0d8da5a
Get rid of from ... import *
2001-02-09 15:56:19 +00:00
Jack Jansen
64aa1e2c83
Use FSpCreateResFile() in stead of CreateResFile().
2001-01-29 15:19:17 +00:00
Jack Jansen
565e956cb0
Use CountMenuItems() in stead of CountMItems().
2001-01-29 15:18:46 +00:00
Jack Jansen
afd0aa680a
Replace {Enable,Disable,Check}Item with their carbon-compatible equivalents {Enable,Disable,Check}MenuItem.
2001-01-29 13:29:47 +00:00
Jack Jansen
7302340436
Sigh... First test before committing. InvalWindowRect and friends are window object methods. Fixed.
2001-01-23 14:58:20 +00:00
Jack Jansen
d829e9e8e3
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
2001-01-23 14:34:49 +00:00
Just van Rossum
ff88e460aa
more edits to make the text fit (jvr)
2000-10-20 07:49:00 +00:00
Just van Rossum
17f944b6f3
oops, that one caused a syntax error... (jvr)
2000-10-20 07:40:30 +00:00
Just van Rossum
c924661508
edits to make the 2.0 copyright fit in the about box again... (jvr)
2000-10-20 07:35:33 +00:00
Just van Rossum
a1a335641b
Cleaned uthread dependencies (jvr)
2000-10-20 06:37:11 +00:00
Just van Rossum
0f2fd16d15
Hm, I never checked in my incomplete "run with interpreter" mods. UI is there (but is disabled), functionality is not there.
2000-10-20 06:36:30 +00:00
Just van Rossum
6508c7c7e8
fixed 2.0 compat bug
2000-10-20 06:34:57 +00:00
Jack Jansen
136815d939
Oops, not only the Popt versions were wrong, the resources were also short.
2000-10-19 20:34:14 +00:00
Jack Jansen
7941036c4b
Updated Popt resources to current version
2000-10-18 09:13:45 +00:00
Jack Jansen
b15491ef14
Removed exceptions from the required modules (it's builtin nowadays)
...
Added _winreg to the non-required modules.
2000-09-14 13:36:06 +00:00
Jack Jansen
4b9f493830
Upped SIZE to 16MB so IDE can run test.autotest (sigh).
2000-09-11 22:47:48 +00:00
Jack Jansen
ab0280d252
How-to document for using Python for CGI scripting. Not complete and untested, but I'm checking it in so it won't get lost.
2000-08-25 22:36:13 +00:00
Jack Jansen
9ebf2d2ca4
Moved to unsupported: it never lived up to its expectancies, and for the Mac all the functionality is available in the IDE.
2000-08-20 20:21:38 +00:00
Just van Rossum
edd9924474
a minimal test app to show how to build a standalone app with W
2000-07-01 14:31:24 +00:00
Just van Rossum
5069498884
added clearkey = '\033'
2000-07-01 14:30:30 +00:00
Just van Rossum
ed2ed9483f
fixed bug in comment matching
2000-07-01 14:30:08 +00:00
Jack Jansen
d13c385462
Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).
2000-06-20 21:59:25 +00:00
Jack Jansen
f6b5374ecf
Also add a one-line description of the "optional" directive.
2000-06-13 13:39:17 +00:00
Jack Jansen
1c0fceeaa7
Minor bugfix: one uthread-dependent cleanup had "if not uthread" in stead of "if uthread".
2000-06-07 20:11:03 +00:00
Jack Jansen
8a6d4d9cca
macfsn should always be included, like exceptions and site.
2000-05-17 13:27:09 +00:00
Just van Rossum
ae787185df
minor tweak (jvr)
2000-04-09 19:45:38 +00:00
Just van Rossum
73efed21e8
added experimental microthread support for use with stackless python -- bw compatible (jvr)
2000-04-09 19:45:22 +00:00
Just van Rossum
d949b5cdba
added popup control (jvr)
2000-04-09 19:45:08 +00:00
Just van Rossum
7051e5263e
added setbound() method, some cleanups (jvr)
2000-04-09 19:44:45 +00:00
Just van Rossum
6e5f2d1f8e
oops, keyword list missed exec... doh! thanks to Maik Roeder (jvr)
2000-04-09 19:44:13 +00:00
Just van Rossum
c88093a90f
small fix: don't depend on the exact location of PythonCGISlave within the Python tree. (jvr)
2000-03-28 14:53:32 +00:00
Just van Rossum
4011723d0d
- new version of PythonCGISlave
...
- new script/applet BuildCGIApplet
This largely supercedes :Mac:Demos:cgi, except for the html doc file. Should it move here? Merged with CGI_README.txt?
Todo: fullbuild support.
(jvr)
2000-03-28 12:05:13 +00:00
Jack Jansen
34d11f0670
Fixed multi-arg appends.
2000-03-07 23:40:13 +00:00
Just van Rossum
6dc2b57c73
skip CVS folders when building the Scripts menu -- jvr
1999-12-23 21:50:26 +00:00
Just van Rossum
71017e5b6a
updated copyright string
1999-12-23 21:49:44 +00:00
Just van Rossum
24073eaf2b
changed the "method find" algorithm so the function/class/method popup menu also works with space-indented source files -- jvr
1999-12-23 15:46:57 +00:00
Just van Rossum
2e5b0f2166
Adapted to new macmudulefinder.process() API. (jvr)
1999-11-04 10:28:59 +00:00
Just van Rossum
8ff52764ef
- changed the API of process() so it will return a list of missing modules instead of raising an exception.
...
- minor cleanups
(jvr)
1999-11-04 10:28:00 +00:00
Just van Rossum
66e53854d6
- windowbounds() now works with multiple screens (window position prefs!)
...
- Minor tab behavior tweak
-- jvr
1999-10-30 11:49:07 +00:00
Just van Rossum
7171df3e7e
Very minor little things... -- jvr
1999-10-30 11:46:18 +00:00
Just van Rossum
afca4153a5
New __version__ number (1.0!) -- jvr
1999-10-30 11:45:16 +00:00
Just van Rossum
5f740070b1
Minor indentation cleanup -- jvr
1999-10-30 11:44:25 +00:00
Just van Rossum
460ff20cd6
String values will now always be shown with quotes, so one can see the difference between the value 2 and the value '2'. -- jvr
1999-10-30 11:43:25 +00:00
Jack Jansen
91cae85c32
Optionally bracket all external declarations of init functions with "ifndef"s.
1999-10-01 08:28:01 +00:00
Jack Jansen
a856d9f450
Added module "ce" to list of modules known not to exist on the mac.
1999-09-30 11:21:24 +00:00
Just van Rossum
b7ad821f02
Added support for global default font settings. (jvr)
1999-09-26 12:21:32 +00:00
Just van Rossum
03bca30ea1
1) added "typingcasesens" keyword arg to constructor, and support for case sensitive typing in lists.
...
2) minor cleanups
(jvr)
1999-09-26 12:20:08 +00:00
Just van Rossum
2a75909980
added do_setwindowfont() menu callback: brings up a font selection dialog. (jvr)
1999-09-26 12:18:19 +00:00
Just van Rossum
c2dab4866e
added getdefaultfont() function. Returns default font settings. (jvr)
1999-09-26 12:17:04 +00:00
Just van Rossum
2028b59db4
1 - added "set default window font" menu
...
2 - updated scripts folder location
(jvr)
1999-09-26 12:16:22 +00:00
Just van Rossum
cee9a48ea8
minor cleanup, avoiding rare traceback (jvr)
1999-09-26 12:11:50 +00:00
Just van Rossum
3e2d73fef8
Don't set type of application, it's taken care of elsewhere -- jvr
1999-06-30 19:31:14 +00:00
Just van Rossum
d58c7464d9
mod from Joe Strout: when quitting, catch errors in window.close() methods and ignore them. Otherwise one can never quit.
1999-06-22 18:37:35 +00:00
Jack Jansen
fb278a5e6f
Added an "optional" directive, that will include a module if it is available
...
but not complain if it isn't (giving an ImportError when the frozen code is run).
1999-06-04 15:56:33 +00:00
Just van Rossum
c7ba0800dd
Oliver Steele writes:
...
"""Despite the best intentions of Anarchie and Internet Explorer, I often end
up with Python source files (and other text files that I'd like to edit with
PythonIDE) that use '\n' instead of '\r' as a line separator (and therefore
sh
1999-05-21 21:42:27 +00:00
Just van Rossum
d9f3c94478
added 'org.python.core' to the maymiss list (pickly.py tries to import it, probably for JPython support) -- jvr
1999-04-24 16:51:22 +00:00
Just van Rossum
3af507de11
- made "Save options..." dialog more generic, so it's also usable from RoboFog
...
- mark file as dirty after changing the creator of the file so we can_save...
-- jvr
1999-04-22 22:23:46 +00:00
Just van Rossum
6c487c4d34
fixed glitch when scrolling very long files -- jvr
1999-04-22 22:16:58 +00:00
Just van Rossum
eb67a7b980
improved scrollbar delay behavior -- jvr
1999-04-21 09:24:02 +00:00
Just van Rossum
fc372aae48
added hasclosebox attr (jstrout) -- jvr
1999-03-03 23:15:39 +00:00
Just van Rossum
127100531d
added "Save options" menu to popup so users can set the creator of scripts -- jvr
1999-02-27 17:18:30 +00:00
Just van Rossum
f4b0681d90
changed creator to 'Pide' -- jvr
1999-02-27 17:16:54 +00:00
Just van Rossum
4798c4ef4d
added kludge so edit menus work in W.ModalDialogs -- jvr
1999-02-27 17:15:32 +00:00
Just van Rossum
6f0e55a019
updated 'vers' resource -- jvr
1999-02-27 15:59:31 +00:00
Just van Rossum
3853be8b14
reverted Jack's mod: no longer neccesary since all BNDL & icon info is in the IDE's resource file, just like the other applets -- jvr
1999-02-27 15:58:47 +00:00
Just van Rossum
867dc25445
added Jack's ad-hoc icon plus a BNDL resource, so the creator of the IDE will be 'Pide' -- jvr
1999-02-27 15:53:26 +00:00
Jack Jansen
24f7b231bb
Set the signature for the IDE "by hand", the bundle is already included in the
...
PythonEngine applet template.
1999-02-27 15:24:02 +00:00
Just van Rossum
d4bdbf1097
added "dummy" makeopenwindowsmenu method to simplify making a standalone W app -- jvr
1999-02-26 21:30:19 +00:00
Just van Rossum
96b64d0675
open res file(s) read only; upped __version__ -- jvr
1999-02-26 21:19:50 +00:00
Just van Rossum
ca37995553
added slight delay in Scrollbar.click() for more intuitive response -- jvr
1999-02-25 23:00:43 +00:00
Just van Rossum
68922f06bf
fixed "crashing" bug when scripts folder as stored in prefs file does not exist.
1999-02-25 22:33:05 +00:00
Just van Rossum
2aaeb52665
fixed problem with "reloading" sub-sub-modules -- jvr
1999-02-05 21:58:25 +00:00
Just van Rossum
edab93939e
re-checkin with "ISO-8859 translation" turned on.
1999-02-02 22:31:05 +00:00
Just van Rossum
b8bf163dde
added some comments
1999-02-02 22:27:41 +00:00
Just van Rossum
a61f4ac14d
better sys.path munging when running scripts -- jvr
1999-02-01 16:34:08 +00:00
Just van Rossum
99ec5a52b8
Add $(APPLICATION) or :Mac:Tools:IDE at the very start of sys.path to improve startup time -- jvr
1999-01-31 23:17:56 +00:00
Just van Rossum
a7a7193363
There are now three possible ways to run the IDE:
...
- this file dropped onto the interpreter
- applet built by BuildApplet (contains only __main__)
- applet built by BuildIDE (contains all IDE modules)
1999-01-30 23:49:45 +00:00
Just van Rossum
4f0d1f5469
??? adding this file somehow failed -- jvr
1999-01-30 22:40:26 +00:00
Just van Rossum
40f9b7bd7c
First Checked In.
1999-01-30 22:39:17 +00:00
Just van Rossum
f59a89b5e3
added ntpath and win32api to MAC_MAYMISS_MODULES -- jvr
1999-01-30 22:33:40 +00:00
Just van Rossum
49ef0b76bc
changed chars in source > chr(127) to ASCII: CVS corrupted them -- jvr
1999-01-30 22:32:40 +00:00