This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Tix needs TCL package require statement
Type: behavior Stage:
Components: Tkinter Versions: Python 2.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eantelman
Priority: normal Keywords:

Created on 2009-06-19 00:18 by eantelman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
TixIssue.py eantelman, 2009-06-19 00:18 Execute with Argument to demonstrate workaround, without to see error.
Messages (3)
msg89517 - (view) Author: Erik Antelman (eantelman) Date: 2009-06-19 00:18
For at least Tix.ComboBox it appears to be necessary to invoke the TCL
package loading explicitly with:
   root.tk.eval('package require Tix')

This was demonstrated on:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on win32
msg89738 - (view) Author: Erik Antelman (eantelman) Date: 2009-06-26 19:40
Documentation gives proper usage of Tix to be replacing Tkinter.Tk()
with Tix.Tk(). This solves the problem. 

I think this was an RTFM issue.
msg89740 - (view) Author: Erik Antelman (eantelman) Date: 2009-06-26 19:43
BTW: It should be given to the future searchers, that the mistake
results in the following error:
    _tkinter.TclError: invalid command name "tixComboBox"

The solution is simple:

Documentation gives proper usage of Tix to be replacing Tkinter.Tk()
with Tix.Tk(). This solves the problem. 

I think this was an RTFM issue.
History
Date User Action Args
2022-04-11 14:56:50adminsetgithub: 50558
2009-06-26 19:43:01eantelmansetmessages: + msg89740
2009-06-26 19:40:22eantelmansetstatus: open -> closed

messages: + msg89738
2009-06-19 00:18:56eantelmancreate