473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Yet Another BLT/TkInter Install Question

I have just installed BLT: I effectively had some problems - the same you had.
I found this:

Python GUI Setup

Here is the procedure I used to get "Fourier" working on Windows and Linux.

I wanted to use BLT for xy-plotting, partly because we used it with tcl in the sss project, and partly because I couldn't understand how to position the plots in wxPython (the
main alternative).

The only interface to BLT from Python seemed to be through Pmw (now it is claimed that you can get to BLT directly, but I haven't figured out how). So, I

* Downloaded the most recent version of Python (2.2) into C:\Python22 (Windows)
* Downloaded the required packages (Numeric, FFT, etc.) and noticed that they installed into C:\Python22\Lib\site-packages
* Downloaded the corresponding release of Pmw into C:\Python22\Lib\site-packages

On the Debian Linux Windows system in B3 set up by Dan Freedman, this sufficed. On the CCMR RedHat system I've yet to get it to work. On Windows, I had to install the current
version of BLT. Following instructions from http://www.ifi.uio.no/~hpl/Pmw.Blt/doc/links.html, as suggested by Peter Brown at ph*****@acm.org, I

* installed BLT into C:/Python22 using its installer: this made bin, include, and lib subdirectories of C:/Python22/tcl
* copied the directory C:/Python22/tcl/lib/blt2.4 into C:/Python22/tcl/tcl8.3
* copied the BLT DLL's into my PATH, specifically C:\Program Files\Tcl\bin.

Now my scripts worked on Windows. I now wished to roll them into a binary form that I could distribute. Chris Myers advised me to try the more advanced "Freeze" methods
developed at http://www.mcmillan-inc.com/install1.html. This took some time, until I read the documentation: on the first page of the Pmw documentation, it says that freezing
is tricky, and gives a link to doc/dynamicloader.html.

* Downloaded the installer and installed it in the Fourier directory (Linux) or into C:\Python22\Lib\site-packages (Windows)
* Make directory FourierFreeze in that same directory
* Make Pmw.py in that directory: python ..\Pmw\Pmw_0_8_5\bin\bundlepmw.py ..\Pmw\Pmw_0_8_5\lib
* copy Fourier.py, PmwBlt.py and PmwColor.py into FourierFreeze (instructions from dynamicloader?)
* MAKE SURE for Linux that you remove all ^M's from the file. Also, the freeze program doesn't like tabs mixed with spaces, I think. The error message is inscrutable
* python ../Installer/Makespec.py --onefile --tk --debug --noconsole Fourier.py
* python ../Installer/Build.py Fourier.spec
AND IT WORKS!!!
adapt Python22 to your version (I personnally have Python 2.3.5 and blt24z-for-tcl84.exe)
Jul 18 '05 #1
0 1308

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: wang xiaoyu | last post by:
Hello,everyone. my program runs well in windows,i use tkSimpleDialog to receive some input,but when i copy my program into Linux RH8.0,entrys in my tkSimpleDialog derived Dialog have a vital...
0
by: Charles Starrett | last post by:
I am a just a dabbler in programming, but I'd like to make some simple cross-platform tools for generating webpages, as well as for text munging. One thing I need is a Mac OS 9/Windows GUI...
3
by: Manish Gupta (BBS) | last post by:
Hello invoking something like following - sock.send(100) generates the following error - TypeError: send() argument 1 must be string or read-only buffer, not int
4
by: PGMoscatt | last post by:
Hi all, Have just installed Fedora 3 and wish also want to give programming with Python a go. I wish to develop GUI interfaces and believe that 'Tkinter' is the way to go. After installing...
4
by: Mike Tuller | last post by:
I recently purchased a book to learn python, and am at a part where I want to start working with GUIs. I have an OS X system, and am using the default python installed on the system. I have...
3
by: Jim Anderson | last post by:
I have just installed Fedora Core 3 on my pc. Python runs fine, but when I try to run tkinter the tkinter library is not found. I tried installing python 2.4.1 and could not get tkinter to run...
7
by: krishnakant Mane | last post by:
hello all, I seam to have noticed this a bit late but it appears to me that tkinter is being used very widely for gui development on all platform? is that right? since fredric lundh has written a...
1
by: cfpete | last post by:
Hello, How do I go about to have python compiled from source so that I can import gtk and Tkinter modules. Those don't seem to be included when I use the default ./configure or python setup.py. ...
44
by: bg_ie | last post by:
Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file...
8
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.