Commit Graph

9426 Commits

Author SHA1 Message Date
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
Jack Jansen
341d1fe18e For submenus remember the parent and parent index, so we can grey out our
entry if the menu is disabled. This does create a circular reference, so cleanup
becomes more important.
1998-10-15 15:29:16 +00:00
Guido van Rossum
99d3c48772 Cosmetic change 1998-10-15 14:08:20 +00:00
Jack Jansen
0e0d3e7c2b Set kAECanInteract and kAECanSwitchLayer flags for the finder interactions. 1998-10-15 14:02:54 +00:00
Guido van Rossum
f35b884c91 Clarify that close() of a stream opened by popen() returns None if the
exit status is zero.
1998-10-15 13:28:29 +00:00
Guido van Rossum
b7ffca393f Don't show function name if there is none 1998-10-15 12:18:49 +00:00
Jack Jansen
0e56568a0d The help dialog id numbers never got changed when the dialog numbers changed,
so balloons haven't been working for ages. Apparently nobody noticed:-)
1998-10-15 10:29:37 +00:00
Barry Warsaw
840a84d37a Updated __main__ unit test 1998-10-15 02:18:08 +00:00
Guido van Rossum
c2047c19f5 When run as a script, don't pass a fake __main__ dictionary; use the
real one.
1998-10-15 01:38:23 +00:00
Guido van Rossum
e0e59829e0 When errno is zero, avoid calling strerror() and use "Error" for the
message.
1998-10-14 20:38:13 +00:00
Guido van Rossum
b0e5718643 Fix so that after a fork() -- on Unix only -- the template gets
recalculated.
1998-10-14 20:27:05 +00:00
Guido van Rossum
d3a6a14330 Doc strings by Chris Petrilli.
Also added MD5Type object.
1998-10-14 13:46:57 +00:00
Guido van Rossum
a0deb64024 No need to issue a fatal error if the PyDict_SetItemString fails; the
caller (in import.c) will test for errors and take appropriate action.
1998-10-14 13:45:06 +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
fc6aba5008 ACK! There was still an unescaped newline in a docstring. 1998-10-14 02:52:31 +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
9f1292d840 Perhaps a controversial change: when reporting a callback exception,
assign the exception info to sys.last_{type,value,traceback}.  That
way, an introspective Tkinter app can inspect its own stack trace.

(The controversy is that it would keep some objects alive, but that's
probably no big deal.)
1998-10-13 20:02:39 +00:00
Guido van Rossum
ad24ae10df Whoops -- referenced self.top before it was set. 1998-10-13 20:00:02 +00:00
Barry Warsaw
4eaadf002e Added {xview,yview}_{moveto,scroll} to the Canvas class. 1998-10-13 19:01:10 +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
e73d702344 Ever-so-slight improvementL the patterns to recognize import
statements now also stop at ';' (formerly they only stopped at '#').
1998-10-13 16:12:36 +00:00
Guido van Rossum
7d447aabbf Moved search and match around so that search is documented first. 1998-10-13 16:03:52 +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
b39b90dda2 Doc strings by Chris Petrilli. 1998-10-13 14:27:22 +00:00
Guido van Rossum
243ac4f497 Updated listbox methods to Tk 8.0. (Moved some around, added
x/yview_scroll/moveto.)
1998-10-13 13:37:30 +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
Jack Jansen
deff89c8be Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate. 1998-10-12 20:53:15 +00:00
Guido van Rossum
3179b36014 When no master widget is specified, use options['parent'] if it exists. 1998-10-12 20:40:47 +00:00
Guido van Rossum
7f20263349 Only reference Tkinter._default_root when needed. 1998-10-12 20:40:09 +00:00
Guido van Rossum
2f3667a7b9 Replace fprintf(stderr, ...) with PySys_WriteStderr(...). 1998-10-12 18:23:55 +00:00
Guido van Rossum
8442af35fe Patches for mywrite() by Marc Lemburg: save/restore the error state
reliably; check return value of vsprintf().
1998-10-12 18:22:10 +00:00
Guido van Rossum
41f0a98f8f Looks like I didn't test this interactively. The EventHook() code was
broken; it asked for the current thread state when there was none.
Fixed by using the saved event_tstate.
1998-10-12 16:26:22 +00:00
Guido van Rossum
69ef7d6220 Add parent argument to 'to to line number' dialog box. 1998-10-12 16:07:27 +00:00