Commit Graph

84 Commits

Author SHA1 Message Date
Andrew M. Kuchling 2a9b9cbea0 #687648 from Robert Schuppenies: use classic division. 2008-09-13 01:43:28 +00:00
Georg Brandl 74bbc79d10 Replace all map(None, a) with list(a). 2008-07-18 19:06:13 +00:00
Benjamin Peterson 5b63acd31e #2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
2008-03-29 15:24:25 +00:00
Georg Brandl c76ea27965 Use os.closerange(). 2008-02-23 22:14:02 +00:00
Guido van Rossum 41f039292f A thread-less variant of brownian.py, submitted by Michele Simoniato. 2007-11-26 22:16:49 +00:00
Neal Norwitz 10be10cbe7 Remove regsub, reconvert, regex, regex_syntax and everything under lib-old. 2006-03-16 06:50:13 +00:00
Tim Peters 182b5aca27 Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
Walter Dörwald 70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Guido van Rossum 065627e15c Add "select all" by clicking on (0,0) cell.
Redo setting the selection and setting the beacon to deal better
with rows or columns -- these are now expressed by range (1, sys.maxint).
2002-11-02 22:18:46 +00:00
Guido van Rossum bfcd6533e4 Add ESC key binding -- undo current cell editing. 2002-11-02 06:50:05 +00:00
Guido van Rossum 3669242ac9 Major breakthrough in selection -- drag-select multiple cells now
works.  Also row and column selection works (sort of).  The DEL
key deletes the selected rectangle.  sys.argv[1] used by test_gui().
2002-11-02 06:25:51 +00:00
Guido van Rossum 69ccfcc8da Spreadsheet demo that I used in the advanced talk at Linux Lunacy II. 2002-10-28 01:06:37 +00:00
Guido van Rossum 75698a4937 Removing these scripts. redemo.py lives on in Tools/scripts/.
regexdemo.py is obsolete with the regex module.
2000-10-06 17:38:42 +00:00
Guido van Rossum fe78cc0f7e Adding Fredrik Lundh's demo of the option menu. 1998-10-20 15:32:39 +00:00
Guido van Rossum 9c2c1e88a3 Fix multi-arg list.append() calls. 1998-10-08 15:24:48 +00:00
Barry Warsaw dfae3d55f2 Added a 'Help' special menu to show how this is done. 1998-10-06 19:37:20 +00:00
Guido van Rossum d24d3fcd03 Added the mainloop() call. 1998-09-14 17:52:29 +00:00
Guido van Rossum 98c92c83a5 Show how to do switchable panels. 1998-07-15 14:58:05 +00:00
Guido van Rossum 7e0e9555b7 Get rid of the lock; it's no longer needed. 1998-06-30 17:01:06 +00:00
Guido van Rossum 5542449875 Remove the doc string -- it doesn't tell the truth. 1998-05-29 20:08:35 +00:00
Guido van Rossum 0da45c4089 New demo -- Perl style regular expression matching.
Slightly more featureful than regexdemo.py.
1998-05-29 19:57:47 +00:00
Guido van Rossum 7e7912f2ca Protect all uses of the random generator with a lock.
Particles break out of their loop when the main loop exits.
1998-05-28 23:02:33 +00:00
Guido van Rossum 3d3a52aa3a An example of a multi-threaded Tkinter program. 1998-05-28 22:52:01 +00:00
Guido van Rossum f638d1c9dd Fix some comments; move 'import random' to top. 1998-05-26 21:43:44 +00:00
Guido van Rossum 6c3a2cbc52 whrandom -> random 1998-05-20 17:13:01 +00:00
Guido van Rossum 29892d848c Use whrandom instead of rand.
Run 500 steps instead of forever.
1998-05-19 21:16:10 +00:00
Guido van Rossum bd8341eeeb Catch exceptions in final self.destroy() call. 1998-04-10 19:17:41 +00:00
Guido van Rossum 25f1722dd7 Paint demo by Dave Mitchell. There's clearly a demand for such a
demo, so here it is.
1998-01-26 16:47:30 +00:00
Guido van Rossum 37885c27c0 Trivial change in prompt label suggested by Case Roole. 1997-11-24 17:49:13 +00:00
Guido van Rossum 46a0bb4c3c Typo discovered by Case Roole. 1997-10-07 14:37:58 +00:00
Guido van Rossum d6449a2b11 Be more careful with closing fd's 0,1,2. 1997-10-07 14:37:31 +00:00
Guido van Rossum a2f626ff58 Patch by Case Roole <cjr@bound.xs4all.nl> to fail with a more
explanatory message when the manual directories aren't found.
(I have to say I'm surprised that it actually still works!)
1997-09-15 15:39:11 +00:00
Guido van Rossum 21c5c8fa5b Correct off-by-two-pixels error. 1997-08-22 20:56:07 +00:00
Guido van Rossum dac444703d Add try-finally around main loop. 1997-08-14 19:49:27 +00:00
Guido van Rossum 9a8cb84072 Checked in some new Tk demos that I wrote a while ago. 1997-04-03 00:04:51 +00:00
Guido van Rossum b5846d7600 A different winning animation. 1996-12-30 16:45:14 +00:00
Guido van Rossum a0dc1c4a61 Actually, *this* fixes the last bug. 1996-12-30 02:37:07 +00:00
Guido van Rossum 1b2b53a25d Considerably restructured. This fixes the one remaining bug. 1996-12-30 02:20:29 +00:00
Guido van Rossum 8de9f894e1 Solitaire game, like the one that comes with Windows. 1996-12-29 20:15:32 +00:00
Guido van Rossum f06ee5fa07 /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
Guido van Rossum 89cb67bb64 Updated for Python 1.4 1996-07-30 18:57:18 +00:00
Fred Drake 4dd0bf92e6 (rmt.py): Updated to "modern" python coding conventions, somewhat. Keyword
arguments and explicit calls to .pack() are used; no more dictionaries
	are being passed to Tkinter constructors.  Otherwise, the example is
	unchanged.  (The app isn't implemented as a Python object.)
1996-07-23 17:47:21 +00:00
Guido van Rossum e71c5a7585 Removed broken tst.py 1996-04-26 20:53:30 +00:00
Jack Jansen 10d0f8fc40 Renamed module tkinter to _tkinter 1995-10-23 14:36:05 +00:00
Guido van Rossum 81a07ceddc idraw on top of an image 1995-10-11 18:27:23 +00:00
Guido van Rossum 502d96021b incompletely converted to Tk 4.0 1995-09-07 19:59:22 +00:00
Guido van Rossum c27e04228c adapted to Tk 4.0 and CNRI man page locations 1995-09-07 19:47:46 +00:00
Guido van Rossum 69428f1fb3 improve fonts; Tk 4.0 aware 1995-09-07 19:46:43 +00:00
Guido van Rossum bbf817557f simplified no Tk() sets _default_root 1995-09-07 19:45:52 +00:00
Guido van Rossum 55618efad9 use $DISPLAY 1995-09-07 19:44:48 +00:00