Commit Graph

56 Commits

Author SHA1 Message Date
Serhiy Storchaka 4f0e167414 Issue #21522: Added Tkinter tests for Listbox.itemconfigure(),
PanedWindow.paneconfigure(), and Menu.entryconfigure().
2014-05-23 14:08:31 +03:00
Serhiy Storchaka f19771f831 Issue #20635: Added tests for Tk geometry managers. 2014-05-23 13:54:35 +03:00
Zachary Ware 2460dc880f 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 runtktests.check_tk_availability.  Also, every platform checks whether
Tk can be instantiated (if the platform-specific checks passed).
2014-05-02 10:33:49 -05:00
Serhiy Storchaka 942aaac705 Issue #19761: Fixed Tkinter tests on OS X. 2014-02-03 21:33:21 +02:00
Serhiy Storchaka ccffb25c54 Issue #20368: The null character now correctly passed from Tcl to Python (in
unicode strings only).  Improved error handling in variables-related commands.
2014-02-03 21:23:46 +02:00
Serhiy Storchaka 2e27ddd5a7 Fixed typo. 2014-01-13 14:22:45 +02:00
Serhiy Storchaka 2bca9deecb tkinter.Text.debug() now always returns 0/1.
Fixed regression inroduced in issue #6157.
2014-01-11 13:12:58 +02:00
Serhiy Storchaka 6183f70119 Try to fix some ttk tests. Error messages were changed in 8.6b3. 2014-01-11 00:09:50 +02:00
Serhiy Storchaka 9be238d313 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 _stringify() for non-ASCII strings.
* 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:32:58 +02:00
Serhiy Storchaka dbb9630c53 Backported tests for Tkinter variables. 2013-12-26 20:08:34 +02:00
Serhiy Storchaka 0356ff0493 test_debug in test_tkinter/test_text no longer fails when wantobjects is false. 2013-12-25 17:35:11 +02:00
Serhiy Storchaka ec773cc9c3 Issue #19020: Tkinter now uses splitlist() instead of split() in configure
methods.
2013-12-25 16:35:20 +02:00
Serhiy Storchaka 7610ec2693 Fixed merging error in changeset 3912934e99ba (issue #19733). 2013-11-24 18:26:20 +02:00
Serhiy Storchaka 9ec0722723 Issue #19733: Temporary disable test_image on MacOSX. 2013-11-23 15:22:20 +02:00
Serhiy Storchaka 62cd124ada Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654). 2013-11-21 19:24:04 +02:00
Antoine Pitrou ca035a8b66 Fix buildbot failure 2013-11-17 21:27:20 +01:00
Serhiy Storchaka 3dbbef9d76 Fix merge error in issue #19602. 2013-11-17 12:49:28 +02:00
Serhiy Storchaka 3f2aade688 Issue #19602: Use specific asserts in tkinter tests. 2013-11-17 00:43:03 +02:00
Serhiy Storchaka f87854e7bf Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.11 (issue #19085). 2013-11-09 21:15:26 +02:00
Serhiy Storchaka 27cadd78fb Revert wrong change in previous commit (issue #19085). 2013-11-05 22:01:31 +02:00
Serhiy Storchaka 0a4b07be0d Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085). 2013-11-05 21:04:54 +02:00
Serhiy Storchaka 3ecd17e2b2 Issue #19085: Fix running test_ttk_textonly on displayless host. 2013-11-04 23:05:23 +02:00
Serhiy Storchaka c4051a8e34 Issue #19085: Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12. 2013-11-04 22:10:35 +02:00
Serhiy Storchaka 68f518ce4a Issue #19085: Fixed pixels rounding for last Tk patchlevels. 2013-11-03 18:24:04 +02:00
Serhiy Storchaka 31b9c845d3 Issue #6157: Fixed Tkinter.Text.debug(). Original patch by Guilherme Polo. 2013-11-03 14:28:29 +02:00
Serhiy Storchaka 8630f16eb7 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:08 +02:00
Serhiy Storchaka 6bf15d10a6 Issue #19085: Fixed some Tkinter tests on Windows. 2013-11-02 18:50:53 +02:00
Serhiy Storchaka 4a21726fe6 Issue #19085: Fix Tkinter tests with Tcl/Tk 8.4. 2013-11-02 17:27:59 +02:00
Serhiy Storchaka 090b6b1baf Issue #10734: Fix and re-enable test_ttk test_heading_callback. 2013-11-02 10:54:17 +02:00
Serhiy Storchaka dd80816973 Issue #19085: Added basic tests for all tkinter widget options. 2013-11-02 10:46:21 +02:00
Serhiy Storchaka b445558d84 Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6. 2013-08-22 17:53:16 +03:00
Terry Jan Reedy cc8506ecbe Update int division to quiet 2to3 warning. 2013-07-27 20:28:53 -04:00
Serhiy Storchaka e39ba04e22 Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 18:01:21 +02:00
Benjamin Peterson c7bbd7be94 don't rely on dict order 2012-02-21 00:15:10 -05:00
Ned Deily 885b164bfe Issue #8716: Instead of relying on Aqua Tk exceptions to detect lack of
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.
2011-07-05 19:08:38 -07:00
Ned Deily 09f6ab0d0f Issue #8716: Back out temporary changeset 18ce15f841cf 2011-07-05 15:09:32 -07:00
Ned Deily 8c653e094b Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure. 2011-07-05 14:16:03 -07:00
Ned Deily eee1048e7b Issue #8716: Fix errors in the non-OS X path of the 27 backport. 2011-07-03 23:16:49 -07:00
Ned Deily 46268c49f6 Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:52:35 -07:00
Ned Deily 9a7a4cc3a7 Issue #10734: Temporarily disable test_ttk test_heading_callback on 2.7 as well. 2011-07-03 21:37:03 -07:00
Ned Deily 64e59959f2 Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
on Mac OS X.  (Patch by Ronald Oussoren)
2011-06-27 23:09:31 -07:00
Ezio Melotti c2077b0d9b #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 12:34:31 +02:00
Antoine Pitrou 0b481ca321 Merged revisions 85018 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85018 | antoine.pitrou | 2010-09-26 18:36:33 +0200 (dim., 26 sept. 2010) | 4 lines

  Issue #8445: try to fix some buildbot failures on test_ttk_guionly.
  Patch by Guilherme.
........
2010-10-09 10:09:06 +00:00
Martin v. Löwis e84089e3f1 Issue #8204: Fix test_ttk notebook test by forcing focus. 2010-04-08 17:38:32 +00:00
Martin v. Löwis 1b287c7434 Issue #8344: Fix test_ttk bug on FreeBSD. 2010-04-08 09:47:40 +00:00
Florent Xicluna dfd3618422 #7092: silence some py3k warnings 2010-04-02 08:30:21 +00:00
Benjamin Peterson 5c8da86f3a convert usage of fail* to assert* 2009-06-30 22:57:08 +00:00
Guilherme Polo 7f146ab0ca Issue #5450: Moved tests involving loading tk from Lib/test/test_tcl to
Lib/lib-tk/test/test_tkinter/test_loadtk in order to follow the behaviour of
test_ttkguionly.
2009-06-21 17:22:50 +00:00
Mark Dickinson 3e4caeb3bf Issue #5341: Fix a variety of spelling errors. 2009-02-21 20:27:01 +00:00
Guilherme Polo bbb7efd72b Some tests for Tkinter.Text.search 2009-02-09 19:21:21 +00:00