Commit Graph

655 Commits

Author SHA1 Message Date
Guido van Rossum 5cd975c678 Patch by Chris Herborth:
BeOS headers live in various non-standard places;
luckily, there's an environment variable that lists them all.
1998-12-17 18:02:15 +00:00
Guido van Rossum 38b92eb56a Sjoerd Mullender:
When printing missing modules, also print the module they were
imported from.
1998-12-15 15:35:23 +00:00
Barry Warsaw ef30092207 Added most of the mechanism to change the strips from color variations
to color constants (i.e. red constant, green constant, blue
constant).  But I haven't hooked this up yet because the UI gets more
crowded and the arrows don't reflect the correct values.

Added "Go to Black" and "Go to White" buttons.
1998-12-15 01:04:38 +00:00
Barry Warsaw 6403991a9d A start on the TestModExp applet
"Author" => "Contact"
1998-12-15 01:02:51 +00:00
Barry Warsaw 88604056c5 "Author" -> "Contact" 1998-12-14 21:36:40 +00:00
Guido van Rossum e6360fab2c Moved to Python 1.5.2/Lib 1998-12-08 20:39:36 +00:00
Barry Warsaw 08833f2a6d intermediate 1998-12-05 22:19:06 +00:00
Barry Warsaw e1425d6a33 Fixed some bugs 1998-12-05 22:07:24 +00:00
Barry Warsaw 93ec4cc6f4 Fixed typos in --dump 1998-12-05 21:15:41 +00:00
Barry Warsaw ce0bbd270b Added Helpwin -- help in a text widget 1998-12-03 19:50:24 +00:00
Barry Warsaw eb6b9b7ebb Untabification and other cruft 1998-12-03 19:49:45 +00:00
Barry Warsaw d0e1e51385 docstring(): Function for returning __doc__ % globals() 1998-12-03 19:49:13 +00:00
Barry Warsaw f622a33b29 audiopy: slightly revamped UI... includes a menubar, no quit button,
and added a `Help' menu item that puts the README (or docstring if
that can't be found) in a scrolling text widget.

README: fixed a few nits
1998-12-03 19:32:38 +00:00
Barry Warsaw 53646881f3 Initial version of the README file 1998-12-03 16:27:38 +00:00
Guido van Rossum 0903f2a36d Typo 1998-11-27 03:19:20 +00:00
Guido van Rossum b5eed0328f Support underlining of menu labels 1998-11-27 03:19:07 +00:00
Guido van Rossum 6e0a413693 New approach, separate tables for menus (platform-independent) and key
definitions (platform-specific), and generating accelerator strings
automatically from the key definitions.
1998-11-27 03:17:49 +00:00
Barry Warsaw 3fe1b14c96 A little more tweakage 1998-11-18 03:45:09 +00:00
Barry Warsaw 2858b43613 A little more tweakage 1998-11-18 03:32:43 +00:00
Barry Warsaw d81d534aef A bit of tweakage of the --help and --version options 1998-11-18 03:28:45 +00:00
Barry Warsaw 615a66a5ef (ChipViewer): Make frame sticky NSEW to fix geometry problem. 1998-11-18 03:15:19 +00:00
Barry Warsaw 93990de252 tweak version number 1998-11-18 03:09:18 +00:00
Barry Warsaw f79b7e274c Update 1998-11-18 00:27:14 +00:00
Barry Warsaw e882b8a92e Updating 1998-11-18 00:21:09 +00:00
Guido van Rossum 72fe0859d0 Clarify portability and main program. 1998-11-16 18:37:42 +00:00
Guido van Rossum a017777bd4 Added intro for 0.1 release and append Grail notes. 1998-11-16 18:34:26 +00:00
Barry Warsaw 441abb4c8f Added a None button to turn off all input sources. 1998-11-02 22:48:56 +00:00
Barry Warsaw d55049aede If the module SUNAUDIODEV was generated on an older version of
Solaris, the `CD' macro won't exist in the header file, so this will
raise a NameError.
1998-11-01 07:17:24 +00:00
Barry Warsaw 9ade9ddb14 MainWindow.__init__(): Move the import of Tkinter to here so that
command line operation is (much) faster.
1998-11-01 07:13:14 +00:00
Barry Warsaw 3febc2443c Added a version number, --version, and updated the docstring. 1998-11-01 07:10:51 +00:00
Barry Warsaw e77ec175d2 Rewrite, simplification of command line option parsing. Many GUI
fixes.  Input sources are mutually exclusive.
1998-11-01 07:03:55 +00:00
Barry Warsaw 2c8b35bdd2 some rewriting, must do command line args 1998-10-31 00:25:14 +00:00
Barry Warsaw b7d1d63f00 Input stuff 1998-10-30 23:45:41 +00:00
Barry Warsaw 2a06084ed5 Added command line options 1998-10-30 18:21:52 +00:00
Barry Warsaw 11b7ae5121 Initial revision 1998-10-30 16:22:18 +00:00
Guido van Rossum 4089c110a1 root is now a global called _root 1998-10-26 18:49:00 +00:00
Guido van Rossum d4103883f3 Raise the root window on reset().
Different action on WM_DELETE_WINDOW is more likely to do the right thing,
allowing us to destroy old windows.
1998-10-24 16:38:38 +00:00
Guido van Rossum 5ac15bc9c8 Split the goto() function in two: _goto() is the internal one,
using Canvas coordinates, and goto() uses turtle coordinates
and accepts variable argument lists.
1998-10-24 16:29:21 +00:00
Guido van Rossum a96c2d407b Cope with destruction of the window 1998-10-24 14:03:48 +00:00
Guido van Rossum 3fbe67abd1 Turtle graphics 1998-10-24 05:46:37 +00:00
Guido van Rossum 39926e4bba Use of Breakpoint class should be bdb.Breakpoint. 1998-10-24 01:28:22 +00:00
Barry Warsaw cf1daad891 Brief update on the slightly changed API of pyColorChooser.askcolor().
Added a To Do list.
1998-10-22 19:00:38 +00:00
Barry Warsaw 2be858230a __init__(): Removed initialcolor keyword.
show(): added color keyword here so that the selected color can be
chosen on each invocation of askcolor().

Also fixed this class, and askcolor() so that the same Chooser
instance can be re-used instead of creating a new one on each
invocation of askcolor().

Added a module function save() which can be used to explicitly save
the option database in ~/.pynche.  This does not happen automatically
when used as a modal.
1998-10-22 18:51:22 +00:00
Barry Warsaw f72d580d5e sticky should be NSEW to fix pixel weirdness at right edge 1998-10-22 18:48:45 +00:00
Barry Warsaw 4ab5ae2ad0 Error message goes to stderr
canceled() takes an optional flag so that the canceled flag can be
cleared.
1998-10-22 18:48:01 +00:00
Barry Warsaw d9e5214c26 beep => bell
deiconify(): New method
1998-10-22 18:46:28 +00:00
Barry Warsaw 877d299292 Fixed running of standalone via command line. Also, only do save from
main() so that run-as-modal doesn't automatically save database.
1998-10-22 18:45:52 +00:00
Barry Warsaw 3dd1c39c80 Describe all the new features 1998-10-22 04:14:24 +00:00
Barry Warsaw a20f6af862 Chooser.__init__(): Added `wantspec' keyword to conform exactly to
tkColorChooser.askcolor() interface (i.e. don't return a color name
even if there is an exact match).
1998-10-22 03:44:52 +00:00
Barry Warsaw ca07ba00ac Many changes to support a second mode of operation. Pynche can now be
run either as a standalone application (by running pynche or
pynche.pyw), or as a modal dialog inside another application.  This
can be done by importing pyColorChooser and running askcolor().  The
API for this is the same as the tkColorChooser.askcolor() API, namely:

    When `Okay' is hit, askcolor() returns ((r, g, b), "name").  When
    `Cancel' is hit, askcolor() returns (None, None).

Note the following differences:

    1. pyColorChooser.askcolor() takes an optional keyword `master'
       which if set tells Pynche to run as a modal dialog.  `master'
       is a Tkinter parent window.  Without the `master' keyword
       Pynche runs standalone.

    2. in pyColorChooser.askcolor() will return a Tk/X11 color name as
       "name" if there is an exact match, otherwise it will return a
       color spec, e.g. "#rrggbb".  tkColorChooser can't return a
       color name.

There are also some UI differences when running standalone vs. modal.
When modal, there is no "File" menu, but instead there are "Okay" and
"Cancel" buttons.

The implementation of all this is a bit of a hack, but it seems to
work moderately well.  I'm not guaranteeing the pyColorChooser.Chooser
class has the same semantics as the tkColorChooser.Chooser class.
1998-10-22 03:25:59 +00:00
Barry Warsaw 8a09e1ccda Saving/Restoring state into ~/.pynche file 1998-10-20 20:45:46 +00:00
Guido van Rossum 8fd0f147e7 Detlef Lannert lannert@lannert.rz.uni-duesseldorf.de notices:
"""
the NEWS file of Python 1.5.2a2 inspired me to look at
Tools/scripts/untabify.py. I wonder why it accepts a -t argument
but ignores it. The following patch tries to make it somewhat useful
(i.e., to override the tabsize=8 setting). Is that agreeable?
"""
1998-10-20 15:33:33 +00:00
Guido van Rossum 7b9bb05df9 Speed up the search a bit -- don't drag a mark around... 1998-10-19 03:33:40 +00:00
Guido van Rossum cc0ade8cd5 Change our special entries from <console#N> to <pyshell#N>.
Patch linecache.checkcache() to keep our special entries alive.
Add popup menu to all editor windows to set a breakpoint.
1998-10-19 02:26:16 +00:00
Guido van Rossum b52cfa1d97 Use and pass through the 'force' flag to set_dict() where appropriate.
Default source and globals checkboxes to false.
Don't interact in user_return().
Add primitive set_breakpoint() method.
1998-10-19 02:24:40 +00:00
Guido van Rossum 6c5baeb6df Raise priority of 'sel' tag so its foreground (on Windows) will take
priority over text colorization (which on Windows is almost the
same color as the selection background).

Define a tag and color for breakpoints ("BREAK").
1998-10-19 02:22:41 +00:00
Guido van Rossum 0737430bf8 Disable "Open stack viewer" and "help" commands. 1998-10-19 02:20:30 +00:00
Guido van Rossum 105b9c7de4 Add optional 'force' argument (default 0) to load_dict().
If set, redo the display even if it's the same dict.
1998-10-19 02:19:30 +00:00
Barry Warsaw f3dcafecd3 The driver script on Unix is `pynche'; for Windows `pynche.pyw' 1998-10-16 22:29:18 +00:00
Guido van Rossum 179c36e411 Do nothing when loading the same dict as before. 1998-10-16 21:10:12 +00:00
Guido van Rossum adfe773d2c Details for debugger interface. 1998-10-16 21:09:35 +00:00
Guido van Rossum 3fb3515303 Restructured and more consistent. Save checkboxes across instantiations. 1998-10-16 21:09:05 +00:00
Guido van Rossum baf53b4ea8 Get rid of conflicting ^X binding. Use ^W. 1998-10-16 20:08:34 +00:00
Guido van Rossum 5188a25efe Debugger can now show local and global variables. 1998-10-16 18:59:39 +00:00
Guido van Rossum 6b384833f3 Oops 1998-10-16 17:16:59 +00:00
Guido van Rossum 80d132deda Better debugger support (show stack etc). 1998-10-16 16:12:11 +00:00
Guido van Rossum 92a67d7847 Follow renames in StackViewer module 1998-10-16 16:11:08 +00:00
Guido van Rossum 88d9007038 Rename classes to StackViewer (the widget) and StackBrowser (the toplevel). 1998-10-16 16:10:45 +00:00
Guido van Rossum 95ef4982ed Add close() method 1998-10-16 16:10:09 +00:00
Guido van Rossum e1dedc096e Clarify 'Open Module' dialog text 1998-10-16 16:09:57 +00:00
Guido van Rossum 04430793ed Restructured into a browser and a widget. 1998-10-16 04:02:28 +00:00
Guido van Rossum e6fae1cbca Generalized the scrolled list which is the base for the class and
method browser into a separate class in its own module.
1998-10-15 23:27:08 +00:00
Guido van Rossum 99d3c48772 Cosmetic change 1998-10-15 14:08:20 +00:00
Guido van Rossum b7ffca393f Don't show function name if there is none 1998-10-15 12:18:49 +00:00
Barry Warsaw 840a84d37a Updated __main__ unit test 1998-10-15 02:18:08 +00:00
Guido van Rossum 35e55da7dc Polish the Debugger GUI a bit.
Closing it now also does the right thing.
1998-10-14 03:43:05 +00:00
Guido van Rossum 35f7542e83 Ad primitive debugger interface (so far it will step and show you the
source, but it doesn't yet show the stack).
1998-10-13 23:51:13 +00:00
Guido van Rossum f035d3bfe1 Misc 1998-10-13 23:49:55 +00:00
Guido van Rossum ad24ae10df Whoops -- referenced self.top before it was set. 1998-10-13 20:00:02 +00:00
Guido van Rossum 423938a852 Added history and completion commands. 1998-10-13 17:38:03 +00:00
Guido van Rossum ca5619cc5b Updated 1998-10-13 17:32:27 +00:00
Guido van Rossum 7895562f88 Add class browser functionality. 1998-10-13 16:32:44 +00:00
Guido van Rossum ae08d3897a Add a close() method and bind to WM_DELETE_WINDOW protocol 1998-10-13 16:32:29 +00:00
Guido van Rossum 1956352b08 Clear the linecache before printing a traceback 1998-10-13 16:32:05 +00:00
Guido van Rossum 49c1a7ebc2 Added class browser binding. 1998-10-13 16:31:46 +00:00
Guido van Rossum 7f5c9ef5fd Much improved, much left to do. 1998-10-13 16:31:03 +00:00
Guido van Rossum 3f08d40bd8 Make the return key do what I mean more often. 1998-10-13 15:21:41 +00:00
Guido van Rossum 4650df96bf Make the return key do what I mean more often. 1998-10-13 14:41:27 +00:00
Guido van Rossum 439c467a0c Adding the beginnings of a Class browser. Incomplete, yet. 1998-10-13 03:59:57 +00:00
Guido van Rossum b341888971 Add new command, "Open module". You select or type a module name,
and it opens the source.
1998-10-13 03:45:15 +00:00
Guido van Rossum 5af7a72d8b Subsume functionality from Popup menu in Debug menu.
Other stuff so the PyShell window can be resurrected from the Windows menu.
1998-10-12 23:59:27 +00:00
Guido van Rossum 82e44b10b8 Get rid of PopUp menu.
Create a simple Windows menu.  (Imperfect when Untitled windows exist.)
Add wakeup() method: deiconify, raise, focus.
1998-10-12 23:57:48 +00:00
Guido van Rossum e7b2e651df Generalize menu creation. 1998-10-12 23:56:08 +00:00
Guido van Rossum 219ffde846 Add Debug and Help menu items. 1998-10-12 23:55:10 +00:00
Guido van Rossum 2aeeb55949 Added a menu bar to every window. 1998-10-12 21:01:37 +00:00
Guido van Rossum d8d676c289 Add menu configuration to the event configuration. 1998-10-12 20:57:09 +00:00
Guido van Rossum d020cf3d7d Pass a root to the help window. 1998-10-12 20:55:43 +00:00
Guido van Rossum 69ef7d6220 Add parent argument to 'to to line number' dialog box. 1998-10-12 16:07:27 +00:00
Guido van Rossum 8571ed8647 Add a label at the top showing (very basic) help for the stack viewer.
Add a label at the bottom showing the exception info.
1998-10-10 19:15:32 +00:00
Guido van Rossum 3d0669d8a1 Add Unix main script and test program. 1998-10-10 18:58:15 +00:00