Commit Graph

338 Commits

Author SHA1 Message Date
Serhiy Storchaka b3de1a720a Issue #19761: Fixed Tkinter tests on OS X. 2014-02-03 21:33:33 +02:00
Serhiy Storchaka ce591c2868 Issue #20368: The null character now correctly passed from Tcl to Python.
Improved error handling in variables-related commands.
2014-02-03 21:25:56 +02:00
Serhiy Storchaka 1317e14468 Issue #20368: The null character now correctly passed from Tcl to Python.
Improved error handling in variables-related commands.
2014-02-03 21:24:07 +02:00
Serhiy Storchaka 676bf73793 Fixed typo. 2014-01-13 14:24:11 +02:00
Serhiy Storchaka 6cbc5f784f Fixed typo. 2014-01-13 14:23:18 +02:00
Serhiy Storchaka 07bc3726ec tkinter.Text.debug() now always returns 0/1.
Fixed a regression inroduced in issue #6157.
2014-01-11 13:15:39 +02:00
Serhiy Storchaka 2f26c224d7 tkinter.Text.debug() now always returns 0/1.
Fixed a regression inroduced in issue #6157.
2014-01-11 13:13:46 +02:00
Serhiy Storchaka c8935fe860 Try to fix some ttk tests. Error messages were changed in 8.6b3. 2014-01-11 00:10:56 +02:00
Serhiy Storchaka e0837a03ee Try to fix some ttk tests. Error messages were changed in 8.6b3. 2014-01-11 00:10:04 +02:00
Serhiy Storchaka 985b8dbe11 Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.
* Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and
  LabelFrame.panes() now always return a tuple.
* Fixed error of comparing str and int in tt.LabeledScale._adjust().
* ttk.Notebook.index() now always returns int.
* ttk.Notebook.tabs() now always returns a tuple.
* ttk.Entry.bbox() now always returns a tuple of ints.
* ttk.Entry.validate() now always correctly works.
* ttk.Combobox.current() now always returns int.
* ttk.Panedwindow.sashpos() now always returns int.
* ttk.Treeview.bbox() now always returns a tuple of ints.
* ttk.Treeview.get_children() now always returns a tuple.
* ttk.Treeview.exists() now always correctly works.
* ttk.Treeview.index() now always returns int.
* ttk.Treeview.tag_has() now always returns 0 or 1.
* And numerous other errors in methods which returns a tuple, list or dict.
* Fixed ttk tests for wantobjects is False.
2014-01-07 19:30:36 +02:00
Serhiy Storchaka a21acb5d95 Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.
* Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and
  LabelFrame.panes() now always return a tuple.
* Fixed error of comparing str and int in tt.LabeledScale._adjust().
* ttk.Notebook.index() now always returns int.
* ttk.Notebook.tabs() now always returns a tuple.
* ttk.Entry.bbox() now always returns a tuple of ints.
* ttk.Entry.validate() now always correctly works.
* ttk.Combobox.current() now always returns int.
* ttk.Panedwindow.sashpos() now always returns int.
* ttk.Treeview.bbox() now always returns a tuple of ints.
* ttk.Treeview.get_children() now always returns a tuple.
* ttk.Treeview.exists() now always correctly works.
* ttk.Treeview.index() now always returns int.
* ttk.Treeview.tag_has() now always returns 0 or 1.
* And numerous other errors in methods which returns a tuple, list or dict.
* Fixed ttk tests for wantobjects is False.
2014-01-07 19:27:42 +02:00
Serhiy Storchaka 1b97ed5abc Issue #20067: Tkinter variables now work when wantobjects is false. 2013-12-26 20:06:43 +02:00
Serhiy Storchaka d97c01ff28 Issue #20067: Tkinter variables now work when wantobjects is false. 2013-12-26 20:06:05 +02:00
Serhiy Storchaka b5d55184e0 test_debug in test_tkinter/test_text no longer fails when wantobjects is false. 2013-12-25 17:36:20 +02:00
Serhiy Storchaka a1de906330 test_debug in test_tkinter/test_text no longer fails when wantobjects is false. 2013-12-25 17:35:24 +02:00
Serhiy Storchaka 81d2be9580 Issue #19020: Tkinter now uses splitlist() instead of split() in configure
methods.
2013-12-25 16:36:43 +02:00
Serhiy Storchaka 848972cac1 Issue #19020: Tkinter now uses splitlist() instead of split() in configure
methods.
2013-12-25 16:35:38 +02:00
Serhiy Storchaka d3113664a2 Issue #19733: Temporary disable test_image on MacOSX. 2013-11-23 15:22:10 +02:00
Serhiy Storchaka c17565e4a9 Issue #19733: Temporary disable test_image on MacOSX. 2013-11-23 15:21:33 +02:00
Serhiy Storchaka d88c6f9b9b Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654). 2013-11-21 19:23:50 +02:00
Serhiy Storchaka 0b1386d922 Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654). 2013-11-21 19:23:19 +02:00
Serhiy Storchaka e3eb3ec5c4 Issue #19602: Use specific asserts in tkinter tests. 2013-11-17 00:42:52 +02:00
Serhiy Storchaka e3b5a76540 Issue #19602: Use specific asserts in tkinter tests. 2013-11-17 00:42:25 +02:00
Serhiy Storchaka 35ac05eb4c Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085). 2013-11-09 21:17:37 +02:00
Serhiy Storchaka affb9b255b Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085). 2013-11-09 21:16:19 +02:00
Serhiy Storchaka 24f125871b Revert wrong change in previous commit (issue #19085). 2013-11-05 22:02:17 +02:00
Serhiy Storchaka 7c934da0ff Revert wrong change in previous commit (issue #19085). 2013-11-05 22:01:46 +02:00
Serhiy Storchaka 96c01686aa Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085). 2013-11-05 21:06:05 +02:00
Serhiy Storchaka 8f9f5870d3 Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085). 2013-11-05 21:05:10 +02:00
Serhiy Storchaka 17972a746a Fix typo in tkinter tests (issue #19085). 2013-11-05 20:18:17 +02:00
Serhiy Storchaka 98555f3ac7 Fix typo in tkinter tests (issue #19085). 2013-11-05 20:17:50 +02:00
Serhiy Storchaka b58d4a3209 Issue #19085: Fix running test_ttk_textonly on displayless host. 2013-11-04 23:06:51 +02:00
Serhiy Storchaka 2028e01313 Issue #19085: Fix running test_ttk_textonly on displayless host. 2013-11-04 23:05:37 +02:00
Serhiy Storchaka 20acaa7a0a Issue #19085: Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12. 2013-11-04 22:11:43 +02:00
Serhiy Storchaka 8d8599ce0c Issue #19085: Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12. 2013-11-04 22:11:12 +02:00
Serhiy Storchaka 9fe43f5ff3 Issue #19085: Fixed pixels rounding for last Tk patchlevels. 2013-11-03 18:25:17 +02:00
Serhiy Storchaka b2817327b9 Issue #19085: Fixed pixels rounding for last Tk patchlevels. 2013-11-03 18:24:31 +02:00
Serhiy Storchaka 4babb9111f Issue #6157: Fixed tkinter.Text.debug(). tkinter.Text.bbox() now raises
TypeError instead of TclError on wrong number of arguments.  Original patch
by Guilherme Polo.
2013-11-03 14:34:25 +02:00
Serhiy Storchaka 0b9e815d8d Issue #6157: Fixed tkinter.Text.debug(). Original patch by Guilherme Polo. 2013-11-03 14:29:35 +02:00
Serhiy Storchaka 0de5362a40 Issue #6160: The bbox() method of tkinter.Spinbox now returns a tuple of
integers instead of a string.  Based on patch by Guilherme Polo.
2013-11-03 14:15:00 +02:00
Serhiy Storchaka 2849e0dfb7 Issue #6160: The bbox() method of tkinter.Spinbox now returns a tuple of
integers instead of a string.  Based on patch by Guilherme Polo.
2013-11-03 14:13:34 +02:00
Serhiy Storchaka 9788497e4b Issue #19085: Fixed some Tkinter tests on Windows. 2013-11-02 18:50:42 +02:00
Serhiy Storchaka 28f0beaff6 Issue #19085. Try to fix tkinter tests on Windows. 2013-11-02 16:41:23 +02:00
Serhiy Storchaka bf30c9f01a Issue #10734: Fix and re-enable test_ttk test_heading_callback. 2013-11-02 10:54:58 +02:00
Serhiy Storchaka 007c0477f5 Issue #10734: Fix and re-enable test_ttk test_heading_callback. 2013-11-02 10:54:31 +02:00
Serhiy Storchaka b2564ce085 Issue #19085: Added basic tests for all tkinter widget options. 2013-11-02 10:44:55 +02:00
Serhiy Storchaka 758c521ea8 Issue #19085: Added basic tests for all tkinter widget options. 2013-11-02 10:41:48 +02:00
Serhiy Storchaka b3955fe0c4 Issue #19029: Change non-existing since 3.0 StringType to str. 2013-09-16 11:03:59 +03:00
Serhiy Storchaka 975fce3788 Issue #19029: Change non-existing since 3.0 StringType to str. 2013-09-16 11:01:31 +03:00
Serhiy Storchaka e39e54d0b3 Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6. 2013-08-22 17:53:06 +03:00
Serhiy Storchaka 06ce077e43 Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6. 2013-08-22 17:51:58 +03:00
Serhiy Storchaka ed1fe6be06 Fix usage of the unittest.skip decorator. 2013-03-19 13:27:24 +02:00
Serhiy Storchaka e185341bfa Fix usage of the unittest.skip decorator. 2013-03-19 13:27:05 +02:00
Serhiy Storchaka ae4ef4d2ff Fix usage of the unittest.skip decorator. 2013-03-19 13:25:20 +02:00
Terry Jan Reedy 8b53559a89 Merge with 3.3, issue #17047: remove doubled words added in 3.3,
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 18:36:38 -04:00
Terry Jan Reedy 0f84764a09 Issue #17047: remove doubled words added in 3.3
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 18:34:00 -04:00
Terry Jan Reedy 16b5c13668 Merge 3.3, issue #17047: remove doubled words found in 2.7 to
3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:59:07 -04:00
Terry Jan Reedy 98472b8396 Merge 3.2, issue #17047: remove doubled words found in 2.7 to
3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:58:27 -04:00
Terry Jan Reedy c30b7b16ea Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:57:08 -04:00
Serhiy Storchaka fb3c6286a6 Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 17:59:53 +02:00
Serhiy Storchaka 1e2b7ee3e8 Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 17:58:14 +02:00
Serhiy Storchaka b139652366 Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 17:56:08 +02:00
Serhiy Storchaka 08f4556524 Merge heads 2013-01-02 10:40:36 +02:00
Serhiy Storchaka 32e258d877 Merge heads 2013-01-02 10:37:54 +02:00
Serhiy Storchaka 4cf4f3a7c6 Issue #16541: tk_setPalette() now works with keyword arguments.
Added a test for tk_setPalette().
2013-01-02 00:03:58 +02:00
Andrew Svetlov a191959849 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:16 +02:00
Andrew Svetlov 5b89840d9c Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +02:00
Andrew Svetlov 737fb89dd1 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Andrew Svetlov 786fbd8db7 Replace os.error with OSError in tkinter and IDLE 2012-12-17 19:51:15 +02:00
Andrew Svetlov a6b292fbc7 Issue #16582: use int exit code in tkinter._exit 2012-12-10 00:03:55 +02:00
Andrew Svetlov 14857cf8fa Issue #16582: use int exit code in tkinter._exit 2012-12-10 00:03:39 +02:00
Andrew Svetlov 806bfad457 Issue #16582: use int exit code in tkinter._exit 2012-12-10 00:02:31 +02:00
Antoine Pitrou db0420db17 Issue #16248: Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
Patch by Zachary Ware.
2012-12-09 14:47:23 +01:00
Antoine Pitrou 373528f6b1 Issue #16248: Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
Patch by Zachary Ware.
2012-12-09 14:46:46 +01:00
Antoine Pitrou 7ec3a32360 Issue #16248: Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
Patch by Zachary Ware.
2012-12-09 14:46:18 +01:00
Andrew Svetlov 2d72781082 Merge issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper 2012-12-03 16:13:48 +02:00
Andrew Svetlov e854433686 Merge issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper 2012-12-03 16:13:34 +02:00
Andrew Svetlov eb0abce2f8 Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper 2012-12-03 16:13:07 +02:00
Andrew Svetlov 456b2b8777 Issue #14446: Remove deprecated tkinter functions
Thanks to  Michael Driscoll
2012-10-04 22:10:09 +03:00
Andrew Svetlov 25a02d403c Issue #15601: fix tkinter test_variables failure with OS X Aqua Tk 8.4 2012-08-09 21:51:21 +03:00
Andrew Svetlov 504ba313fc Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog. 2012-07-30 20:01:13 +03:00
Andrew Svetlov 1fb0e3f3a2 Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog. 2012-07-30 19:59:53 +03:00
Vinay Sajip 7ded1f0f69 Implemented PEP 405 (Python virtual environments). 2012-05-26 03:45:29 +01:00
Ned Deily a0082788e4 Issue #14777: merge 2012-05-15 18:13:02 -07:00
Ned Deily 4d377d98a1 Issue #14777: In an X11 windowing environment, tkinter may return
undecoded UTF-8 bytes as a string when accessing the Tk clipboard.
Modify clipboad_get() to first request type UTF8_STRING when no
specific type is requested in an X11 windowing environment, falling
back to the current default type STRING if that fails.
Original patch by Thomas Kluyver.
2012-05-15 18:08:11 -07:00
Andrew Svetlov 20bbf54f5e Issue #3033: Add displayof parameter to tkinter font.
Patch by Guilherme Polo.
2012-04-05 12:41:20 +03:00
Georg Brandl d4dc6dc9e7 merge with 3.2 2012-04-04 20:17:27 +02:00
Georg Brandl b6046301ef Closes #14495: fix typo. 2012-04-04 20:17:06 +02:00
Andrew Svetlov 39f0037735 Issue #802310: Generate always unique tkinter font names if not directly passed 2012-04-03 09:48:07 +03:00
Andrew Svetlov 5af3e1afb0 reformat code to follow PEP8 2012-04-03 09:39:47 +03:00
Andrew Svetlov 69c2ffa3f3 issue #3035: update PendingDeprecationWarning to DeprectionWarning, point deprecation in tkinter doc 2012-03-31 14:55:55 +03:00
Andrew Svetlov a966c6fddb Issue #3035: Unused functions from tkinter are marked as pending peprecated. 2012-03-21 23:52:59 +02:00
Martin v. Löwis 5c3c424237 Issue #2843: Add new Tk API to Tkinter.
Patch by Guilherme Polo and Andrew Svetlov.
2012-03-13 13:40:42 -07:00
Martin v. Löwis 2b695a4678 Issue #1178863: Separate initialisation from setting when initializing
Tkinter.Variables; harmonize exceptions to ValueError; only delete variables
that have not been deleted; assert that variable names are strings
Patch by Andrew Svetlov.
2012-03-12 17:47:35 -07:00
Georg Brandl 2fb477c0f0 Merge 3.2: Issue #13703 plus some related test suite fixes. 2012-02-21 00:33:36 +01:00
Georg Brandl 09a7c72cad Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 21:31:46 +01:00
Georg Brandl 2daf6ae249 Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 19:54:16 +01:00
Florent Xicluna 54540ec917 Remove redundant imports. 2011-11-04 08:29:17 +01:00
Florent Xicluna aabbda5354 Merge 3.2 2011-10-28 14:52:29 +02:00
Florent Xicluna 5d1155c08e Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00