Re: Linguistic challenge: name this program
> A few years ago, a first implementation of "Karel the Robot" in Python > was created and called PyKarel. A second, newer implementation is > called Guido van Robot (GvR for short), and is available at > gvr.sourceforge.net. Work is currently underway by the developpers of > GvR to produce a new-and-improved version. This thing is very cool, and it will be great for my kids to learn with, once they're old enough to read. :) (I even had fun with it myself, spending much more time with it than I should have!) Thanks for the great work! Phil -- http://mail.python.org/mailman/listinfo/python-list
sqlobject for Python 2.5
I'd like to get sqlobject for Python 2.5, but it appears it's not available. Can I use sqlobject for Python 2.4 and use it on 2.5? If so, how? I have no experience using setuptools, but it appears that unless there's a specific .egg file for 2.5, then I'm outta luck. True? Thanks, Phil -- http://mail.python.org/mailman/listinfo/python-list
os.access() problem
I just got a new PC with Windows XP, and I want to run Leo on it. Leo uses the os.access() function to check for read-only files. For some reason, os.access(, os.W_OK) always returns false. I wrote a 2-liner Python script to just test os.access on any file. I have tried this with Python 2.4 and 2.5b1. I have uninstalled and re-installed Python and Leo. I have fiddled with file permissions on the target files as well as on the Python installation itself. I have used cacls to check the access control lists (and although I'm not exactly certain what to do with this information, it appears to be ok - I think). None of the above has helped me to identify or fix the problem. A scan of the Python newsgroup suggests that os.access() may not be the best way to check for read-only, but the discussion is a bit deeper than my understanding, so I'm not sure there's anything to it in this case. I realize this must be a Windows permissions thing, but I just can't figure it out. I'm no expert in Windows security beyond basic permissions, so I could be missing something simple. Can anyone offer any suggestions? Thanks, Phil -- http://mail.python.org/mailman/listinfo/python-list
How to change menu text with Tkinter?
I am making a little Tkinter GUI app that needs to be in several languages (english, french, etc.), adjustable at runtime via a menu pick to select the language. The only way I can see to change text in the menus entries is to destroy them and recreate them usiing different labels. This seems very clunky though, and there must be a better way. Can anyone offer any pointers or a short example for how to do this? Thanks, Phil -- http://mail.python.org/mailman/listinfo/python-list
Re: How to change menu text with Tkinter?
Eric Brunel wrote: > > But Marc's answer still applies: it's a lot of work for something that > will usually be configured once. So requiring to restart the tool when the > UI language changes should be acceptable. > Thanks for the example, that helps. I agree with you and Marc regarding the language configuration method. The requirements aren't mine however - my customer wants the language selectable at runtime, so I'm kind of stuck with that. Phil -- http://mail.python.org/mailman/listinfo/python-list
Re: About alternatives to Matlab
Brian Blais wrote: > So my recommendation for a (nearly) complete Matlab replacement would be: > python > numpy > scipy > matplotlib > pyrex > Brian, Thanks for that list. I'm currently in the process of getting quotes for a bunch of Matlab tools for hardware-in-the-loop simulation. Big bucks. I'd love to use Python, but I'm not comfortable with the hardware side of that. I'm certain that most, if not all data acquisition hardware comes with DLL drivers, which I could interface with using ctypes. I'm concerned though about spending more time messing around with the hardware interface than it's worth. Do you have any experience with this side of the Matlab replacement question? How about anyone else? Any recommendations? Thanks, Phil -- http://mail.python.org/mailman/listinfo/python-list
Re: About alternatives to Matlab
sturlamolden wrote: > Using Python just for the sake of using Python is silly. Well, that kind of gets right to my point. Does the "added" effort with Python to interface with data acquisition hardware really result in less productivity? I am very familiar with Matlab, Labview, and Python, and frankly, Python is the most productive and powerful programming language of the three. But it's the hardware compatibility thing that concerns me with Python. It seems the answers are hard to come by on this issue. I sure would be willing to give it a try, except that I'm getting paid to get a job done, not to tinker around with Python and DAQ hardware. But if tinkering around could save my project money on commercial software, and still get it done on schedule, it would be a big win. I just don't have confidence that it would. Phil -- http://mail.python.org/mailman/listinfo/python-list
Re: OT : Bug/Issue tracking systems
Steven, I have worked with Trac a bit, only to demo it in my company. We ended up not going with it (for reasons not related to Trac), but I found it easy to set up and configure. I seems to be a very nice tool. I especially like the wiki integration, as it makes it really easy to link tickets with supporting information. Phil -- http://mail.python.org/mailman/listinfo/python-list
Re: Decimating Excel files
gonzlobo wrote: > We have a data acquisition program that saves its output to Excel's > .xls format. Unfortunately, the programmer was too stupid to write > files the average user can read. > > I'd like some advice on how to go about: > 1. Reading a large Excel file and chop it into many Excel files (with > only 65535 lines per file) > or > 2. Decimate an Excel file & write... say every other line (user > selectable)... to a new file. Is the file format really native Excel, or is a CSV or TSV file? I've seen apps (one is a data acquisition program, as a matter of fact) that create "Excel" files that are just CSV or TSV files. Try opening the file with a text editor to see if it's plain ASCII text. In any case, if it's a CSV or TSV file, the Python CSV module is your friend. -- http://mail.python.org/mailman/listinfo/python-list