Commit Graph

294 Commits

Author SHA1 Message Date
Zachary Ware ceced6bfea Issue #18604: Consolidated checks for GUI availability.
test_support._is_gui_available is now defined the same way on every
platform, and now includes the Windows-specific check that had been in the
Windows version of _is_gui_available and the OSX-specific check that was
in tkinter.test.support.check_tk_availability.  Also, every platform
checks whether Tk can be instantiated (if the platform-specific checks
passed).
2014-05-02 10:51:07 -05:00
Serhiy Storchaka e544f9a27e Issue #20635: Added tests for Tk geometry managers. 2014-04-13 19:52:23 +03:00
Victor Stinner 7fa767e517 Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
Serhiy Storchaka 22234dab05 Fixed grid_columnconfigure() and grid_rowconfigure() methods of
Tkinter widgets to work in wantobjects=True mode.
2014-02-19 18:35:10 +02:00
Serhiy Storchaka e95977621d Fixed grid_columnconfigure() and grid_rowconfigure() methods of
Tkinter widgets to work in wantobjects=True mode.
2014-02-19 18:34:05 +02:00
Serhiy Storchaka 512259b244 Issue #19761: Fixed Tkinter tests on OS X. 2014-02-03 21:34:14 +02:00
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