Steve Holden wrote:
Maxim Kasimov wrote:

Miki Tebeka wrote:

Hello Fuzzyman,


Are there widely used and recommended Python libraries that will
let me makes a portable text user interface?



If you just need a text-like interface you can use Tkinter. See (shameless plug) http://developer.berlios.de/projects/bcd/ and http://developer.berlios.de/dbimage.php?id=1112 for example.




Your project looks very interesting. It would be better if it displayed
an error message if it can't find the '_bcdrc' file. If you run it from
windoze it just appears and disapears.

How about allowing the '_bcdrc' file to be in the same directory as the
script as well.



Cool. A user! Thanks for the comments. I'll add searching next to the application on win32 platforms.


Any chance of you releasing the Tkinter text interface as a separate
library, with a less restrictive license ? It looks very good - but I
can't use it in my projects if it is GPL.



It's just standard Tkinter Listbox with key bindings and it's under 160 lines of code. Nothing special here.

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <[EMAIL PROTECTED]>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys



i have not used Tcl/Tk before, and don't know how to solve the problem -

after i've made config file (.bcdrc) and run the script on FreeBSD 4, i've got the message:

Traceback (most recent call last):
File "./bcd.py", line 177, in ?
root = Tk() # Main window
File "/usr/local/lib/python2.2/lib-tk/Tkinter.py", line 1511, in __init__
self.tk = _tkinter.create(screenName, baseName, className)
TclError: no display name and no $DISPLAY environment variable



This is a problem with window creation. I presume it's occurring because you aren't running the program in a windowed environment - if you've logged in through a graphical screen such as xdm and you are running the program in a window on a desktop the DISPLAY environment variable is normally set up for you.

Perhaps you are just telnetting in from a remote system?

regards
 Steve

yes i'm telneting (sshing), that is the reason why i'm looking for libs for making text interfaces. i know there is a project named "anakonda" - red hat linux installer, but it is uses specific C libs. i can use only python libs.

--
Best regards,
Maxim
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to