| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
IDLE, and it likely changes across releases anyway).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
keywords. Cheap approximation to the truth.
|
|
|
|
| |
preferences. It is now in config.txt or ~/.idle.
|
| |
|
| |
|
|
|
|
| |
Get rid of assignment to unused self.text.wordlist.
|
| |
|
| |
|
|
|
|
|
|
| |
parsing functions in support of auto-indent weren't expecting Unicode
strings, but text.get() can now return them (although it remains muddy as
to exactly when or why that can happen). Fixed that with a Big Hammer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
subset of Win32 ShellExecute's functionality. Guido wants this because
IDLE's Help -> Docs function currently crashes his machine because of a
conflict between his version of Norton AntiVirus (6.10.20) and MS's
_popen. Docs for startfile are being mailed to Fred (or just read the
docstring -- it tells the whole story).
Changed webbrowser.py to use os.startfile instead of os.popen on Windows.
Changed IDLE's EditorWindow.py to pass an absolute path for the docs
(hardcoding ShellExecute's "directory" arg to "." as used to be done let
IDLE work, but made the startfile command exceedingly obscure for other
uses -- the MS docs are terrible, of course, & still not sure I
understand it).
Note that Windows Python must link with shell32.lib now! That's where
ShellExecute lives.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The cause was that the replace code necessarily used a PCRE internal
function to to template expansion.
The fix changes the code to use an SRE internal if SRE is used, and a
PCRE internal if SRE is used; in a way that should work with 1.5.2.
The solution can be sped up tremendously under the assumption that the
choice between sre and pre is not changed during the execution of the
program; especially replace-all will be slow.
But I'll leave that to someone else.
|
|
|
|
| |
This closes bug #110660.
|
|
|
|
|
|
|
|
| |
created. This allows the application-specific Tkinter
initialization to be executed if present. Also pass an explicit
className parameter to the Tk() constructor.
This closes SourceForge bug #110618.
|
|
|
|
| |
as main.c.
|
|
|
|
|
|
|
| |
uses the BrowserControl module.
BrowserControl is not removed to allow IDLE to be distributed separately
and still be used with Python 1.5.2.
|
|
|
|
| |
like the short, ambiguous name.
|
|
|
|
|
|
|
| |
Instead of using Netscape through os.system(), use the new
browser.open() function to load the documentation on the
default browser. On Windows, this will use the installed
documentation if it exists, instead of hitting python.org.
|
|
|
|
| |
Web browsers.
|
|
|
|
| |
option name for clarity.
|
| |
|
|
|
|
|
| |
allowing it to be run from anywhere, including through a symlink to
the actual idle.py script.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Fix bad auto-indent I recently introduced when replacing the regexp that
could cause re to blow up:
if or_any_other_block_opener:
# one indenting comment line
^ cursor ended up at the caret (the bug)
^ but belongs here (the post-patch behavior)
|
|
|
|
|
|
| |
process
not yet connected with IDLE
|
|
|
|
|
| |
It beeps if you try to insert or delete before the "iomark" mark.
This makes the shell less confusing for newbies.
|
| |
|
|
|
|
| |
standard usage is now from IdleConf import idleconf
|
|
|
|
|
|
| |
standard usage is now from IdleConf import idleconf
replace : with = in config.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and output windows) so that it if it doesn't succeed with the line
at the cursor, it tries the line before that. This is handy with
tracebacks, where my natural tendency is to click in the displayed
source line rather than in the file/line indicator just above it.
Now I can indulge this tendency.
I factored out a helper and changed the error handling so that a
non-existing file is treated as if the line didn't match -- this is
handy because some function calls (e.g. "foo.bar(1)") match the grep
pattern.
|
|
|
|
| |
Also removed a bunch of items
|
|
|
|
|
|
|
| |
cursor, erase that whitespace first. This avoids a particularly
confusing case where hitting Return at the end of the command didn't
do what it was expected to do -- because it wasn't considered to be at
the end of the command. Now it is.
|
|
|
|
| |
complicated to copy in-line here.
|
| |
|
|
|
|
| |
before 1.6 is out so it has to be compatible with 1.5.2.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
idle.py:
Load the config files before anything else happens
XXX Need to define standard way to get files relative to the
IDLE install dir
PyShell.py:
ColorDelegator.py:
Get color defns out of IdleConf instead of IdlePrefs
EditorWindow.py:
Replace hard-coded font & window size with config options
Get extension names via IdleConf.getextensions
extend.py:
Obsolete. Extensions defined in config file.
ParenMatch.py:
Use config file for extension options.
Revise comment about parser requirements.
Simplify logic on find returning None.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes the one regexp in PyParse capable of making the re module blow the C
stack when passed unreasonable <0.9 wink> program text. Jeremy Hylton
provoked this with a program of the form:
x = (1,
2,
... # 9997 lines deleted here
10000,
)
Programs "like this" will no longer (no matter how many lines they contain)
trigger re death. OTOH, you can now make another class of unreasonable
program that will take much longer to parse.
|
|
|
|
| |
not run this extension and CallTips extension at the same time.
|
|
|
|
|
|
|
|
| |
standard library. Added some comments:
# XXX Note: this is now a standard library module.
# XXX The API needs to undergo changes however; the current code is too
# XXX script-like. This will be addressed later.
|
|
|
|
|
|
|
|
| |
of the current module. It also runs the tabnanny to catch any
inconsistent tabs.
Also did a little bit of refactoring: added an errorbox() method to
simplify the display of error dialogs.
|
|
|
|
| |
A few alternative selections can be made by changing "if 0" to "if 1".
|