This is the mail archive of the
mailing list for the Cygwin project.
Re: Problems with tkinter after python upgrade on cygwin
- From: Jason Tishler <jason at tishler dot net>
- To: Hans Peter Jepsen <hpj at lodam dot com>
- Cc: Cygwin <cygwin at cygwin dot com>
- Date: Tue, 14 Feb 2012 21:25:20 -0500
- Subject: Re: Problems with tkinter after python upgrade on cygwin
- References: <908B205B0EBCC1449FC2AA01C62F101C0150DA20@filexch.lodam.local>
On Mon, Feb 13, 2012 at 05:23:37PM +0100, Hans Peter Jepsen wrote:
> Dear Jason
> I hope you can help me.
In the future, please heed the following:
> I googled for an answer, but did not find any.
What about the following Google search on "TclError: no display name
and no $DISPLAY environment variable"?
The first item from the above search yields:
> My problem is, that after upgrading Cygwin and with that python and
> tcl, and now get this error-message with a program, that worked
> Traceback (most recent call last):
> File "ParamdbTool.py", line 445, in <module>
> tkroot = tk.Tk()
> File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1643, in __init__
> self.tk = _tkinter.create(screenName, baseName, className, interactive,
> wantobjects, useTk, sync, use)
> _tkinter.TclError: no display name and no $DISPLAY environment variable
> Do you have any ideas on how to get around this.
You need to install X, define the DISPLAY environment variable, and
start X. After these steps, your Tkinter program should work again.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple