Tk Source Code

View Ticket
Login
Ticket UUID: 2540465
Title: Tk_MainWindow error message formatting nit
Type: Bug Version: obsolete: 8.4.19
Submitter: lvirden Created on: 2009-01-27 14:05:30
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2010-01-05 16:26:30
Resolution: Duplicate Closed By: patthoyts
    Closed on: 2010-01-05 09:26:30
Description:
If wish is called and DISPLAY is not set (or set incorrectly), Tk_MainWindow returns an error message that looks like this:

Application initialization failed: this isn't a Tk applicationcouldn't connect to display "srv29:0.0"
Error in startup script: this isn't a Tk applicationcouldn't connect to display "srv29:0.0"
    while executing
"load /usr/tcl84/lib/tk8.4g/../libtk8.4g.so Tk"
    ("package ifneeded" script)
    invoked from within
"package require Tk "
    (file "/ldatae/clearcase/upgrade7/MultiFig/n098/u10k/lib/MFigPGUI/main.tcl" line 2)
    invoked from within
"source "$u10k/lib/MFigPGUI/main.tcl""
    (file "/cas/bin/sun4/mfigp" line 39)


A colon at the end of "this isn't a Tk application" would make the error message slightly better.

I wonder, as well, if the message shouldn't be "this application couldn't instantiate Tk:" ...
User Comments: patthoyts added on 2010-01-05 16:26:30:

allow_comments - 1

Duplicate of 1911853 and 697915