472,127 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

Blt/Pmw/Tkinter under cygwin@)x_C2fgA~Wi&@/V"f6vs*B.1`(};T=]?M6O;HvGS


I'm writing a GUI application in python, which will need to work on a
Windows XP box. Mostly it does, but the feature where results are
graphed in real time, which works fine on a debian LINUX box, refuses
to run on windows.

I'm currently running on cygwin, and changing to a standalone python
app would be a pain, but possible.

The BltGraph demo which comes with Pmw also refuses to run. The code
in that case is:

if not Pmw.Blt.haveblt(parent):
message = 'Sorry\nThe BLT package has not been\n' + \
'installed on this system.\n' + \
'Please install it and try again.'
w = Tkinter.Label(parent, text = message)
w.pack(padx = 8, pady = 8)
return

I have done something that I thought was installing Blt, but it
doesn't seem to have given this code what it wanted. As far as I can
tell from a simple-minded find/locate, the same Blt-related python
files are installed on the Debian box as on the Windows box.

So what do I do now?

--
Laura (mailto:lc*****@laymusic.org , http://www.laymusic.org/ )
(617) 661-8097 fax: (501) 641-5011
233 Broadway, Cambridge, MA 02139
Jul 18 '05 #1
1 1746
> "Laura" == Laura Conrad <lc*****@laymusic.org> writes:


Laura> I have done something that I thought was installing Blt,
Laura> but it doesn't seem to have given this code what it wanted.
Laura> As far as I can tell from a simple-minded find/locate, the
Laura> same Blt-related python files are installed on the Debian
Laura> box as on the Windows box.

Laura> So what do I do now?

I found it. The answer is that you need to not only install blt, but
tell it where tcl is, so the magic word is:

export TCL_LIBRARY=/usr/share/tcl8.4

In floundering around looking for this, I found a brand new blt3.0 to
install, instead of the blt2.4 I had been using, which may have also
fixed some of the problem.

--
Laura Conrad <lc*****@durridge.com>
(781) 687-9556 fax: (781) 687-0955
Durridge Company, Suite D, 7 Railroad Ave., Bedford, MA 01730


Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by srijit | last post: by
7 posts views Thread by SeeBelow | last post: by
1 post views Thread by syed_saqib_ali | last post: by
reply views Thread by syed_saqib_ali | last post: by
1 post views Thread by Michael Yanowitz | last post: by
3 posts views Thread by dwelch91 | last post: by
1 post views Thread by yvesd | last post: by
8 posts views Thread by karthikbalaguru | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.