Commit Graph

110 Commits

Author SHA1 Message Date
Serhiy Storchaka 7c28999cb2 Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments. 2014-11-07 12:03:09 +02:00
Serhiy Storchaka 8e92f57274 Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments. 2014-11-07 12:02:31 +02:00
Serhiy Storchaka 0f032a0456 Always handle non-handled events before destoying root widget in tests.
This gets rid of  Tcl warnings when they are handled later when the root is
already destroyed.
2014-10-12 20:36:03 +03:00
Serhiy Storchaka 4cfb5bee89 Always handle non-handled events before destoying root widget in tests.
This gets rid of  Tcl warnings when they are handled later when the root is
already destroyed.
2014-10-12 20:35:30 +03:00
Serhiy Storchaka 87a2803eb4 Issue #22226: Added private function _splitdict() in the Tkinter module.
First letter no longer is stripped from the "status" key in
the result of Treeview.heading().
2014-09-06 22:49:07 +03:00
Serhiy Storchaka 8f0a1d0f28 Issue #22226: Added private function _splitdict() in the Tkinter module.
First letter no longer is stripped from the "status" key in
the result of Treeview.heading().
2014-09-06 22:47:58 +03:00
Serhiy Storchaka 66106626ed Issue #22236: Tkinter tests now don't reuse default root window. New root
window is created for every test class.

Fixed Tkinter images copying operations in NoDefaultRoot mode.

Tcl command names generated for "after" callbacks now contains a name of
original function.
2014-08-24 09:10:58 +03:00
Serhiy Storchaka d00aff2f62 Issue #22236: Tkinter tests now don't reuse default root window. New root
window is created for every test class.

Fixed Tkinter images copying operations in NoDefaultRoot mode.

Tcl command names generated for "after" callbacks now contains a name of
original function.
2014-08-24 09:07:47 +03:00
Serhiy Storchaka f44611cadf Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.
In particular this allows to initialize images from binary data.
2014-07-30 18:34:01 +03:00
Serhiy Storchaka 74596a887a Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.
In particular this allows to initialize images from binary data.
2014-07-30 18:33:13 +03:00
Serhiy Storchaka 1ce2289342 Issue #6167: Backported tests for Scrollbar.activate() and Scrollbar.set()
from 6ae34a948cb4.
2014-07-23 22:08:45 +03:00
Serhiy Storchaka 320f339131 Issue #6167: Scrollbar.activate() now returns the name of active element if
the argument is not specified.  Scrollbar.set() now always accepts only 2
arguments.  Added tests for Scrollbar.activate() and Scrollbar.set().
2014-07-23 22:00:44 +03:00
Zachary Ware e7e1375e57 Issue #18492: Merge with 3.4 2014-06-02 16:04:25 -05:00
Zachary Ware 66f2928479 Issue #18492: Allow all resources when tests are not run by regrtest.py.
This changeset also includes cleanup allowed by this behavior change.
2014-06-02 16:01:29 -05:00
Serhiy Storchaka 07bcf14b60 Issue #6181: Fixed minor bugs in tkinter.Listbox methods:
bbox(), curselection() and get().
2014-06-02 21:32:49 +03:00
Serhiy Storchaka fc14ad9962 Issue #6181: Fixed minor bugs in tkinter.Listbox methods:
bbox(), curselection() and get().
2014-06-02 21:31:07 +03:00
Serhiy Storchaka 3ffa7ab2ef Issue #21605: Added tests for Tkinter images. 2014-06-01 12:36:39 +03:00
Serhiy Storchaka 694c3153b0 Issue #21605: Added tests for Tkinter images. 2014-06-01 12:34:56 +03:00
Serhiy Storchaka 05ef4d3ead Added missed calls of splitlist(). 2014-06-01 11:22:21 +03:00
Serhiy Storchaka 8381f90ee0 Added missed calls of splitlist(). 2014-06-01 11:21:55 +03:00
Serhiy Storchaka 24604d5b4e Issue #21402: tkinter.ttk now works when default root window is not set. 2014-05-28 18:42:05 +03:00
Serhiy Storchaka b49eff25b7 Issue #21402: tkinter.ttk now works when default root window is not set. 2014-05-28 18:38:27 +03:00
Serhiy Storchaka ff36b79c7f Fixed new Tkinter tests added in issue #21522 with Tk 8.4. 2014-05-23 23:58:55 +03:00
Serhiy Storchaka 10cbb1e463 Fixed new Tkinter tests added in issue #21522 with Tk 8.4. 2014-05-23 23:58:13 +03:00
Serhiy Storchaka 475620187b Issue #21522: Added Tkinter tests for Listbox.itemconfigure(),
PanedWindow.paneconfigure(), and Menu.entryconfigure().
2014-05-23 14:09:34 +03:00
Serhiy Storchaka f01fffedd1 Issue #21522: Added Tkinter tests for Listbox.itemconfigure(),
PanedWindow.paneconfigure(), and Menu.entryconfigure().
2014-05-23 14:08:43 +03:00
Zachary Ware cb2ad801ac Closes #18604: Merge with 3.4 2014-05-02 10:52:12 -05:00
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 3d794fb240 Issue #20635: Added tests for Tk geometry managers. 2014-04-13 19:55:08 +03:00
Serhiy Storchaka e544f9a27e Issue #20635: Added tests for Tk geometry managers. 2014-04-13 19:52:23 +03:00
Serhiy Storchaka bcc174615c Issue #20636: Improved the repr of Tkinter widgets. 2014-04-04 15:45:02 +03: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