Python Downloader modified for MacOS

I've taken the Propeller download program written in Python by Chad George
and modified it to work better under the MacOS. It requires an application
called CocoaDialog available from cocoadialog.sourceforge.net
to handle the file selection dialog and it automatically searches all USB to
serial adapters (/dev/tty.usbserial-). There's still one warning message for
a deprecated statement usage. I'll fix it sometime soon ... I'm new to Python.
Post Edited (Mike Green) : 12/7/2007 11:20:39 PM GMT
and modified it to work better under the MacOS. It requires an application
called CocoaDialog available from cocoadialog.sourceforge.net
to handle the file selection dialog and it automatically searches all USB to
serial adapters (/dev/tty.usbserial-). There's still one warning message for
a deprecated statement usage. I'll fix it sometime soon ... I'm new to Python.
Post Edited (Mike Green) : 12/7/2007 11:20:39 PM GMT
zip

44K
Comments
regards,
Craig
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"... one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." -
"If Python is executable pseudocode, then perl is executable line noise."
"The best accelerator available for a Mac is one that causes it to go at 9.81 m/s2."
"My software never has bugs. It just develops random features."
"Windows isn't a virus, viruses do something."
"Programmers are tools for converting caffeine into code."
"Enter any 11-digit prime number to continue."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Daniel Mueth
WSIU-TV Master Control
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Just plug it in and let's see what happens"
These are all little pieces. There is an assembler in Java that's not finished by any means, but seems to be usable. There is this Python downloader. There are lots of Mac programming editors, many of which can work as an IDE. The big piece that is missing is a Spin compiler. ImageCraft's C compiler won't help because that's Windows-only.
Its funny about the Python loader because shortly after I wrote it I noticed somebody else had written one (I'm pretty sure independently) and that one ended up on Graham's thread index.
Not that I care, actually the other one seems to work a little better and its definitely more feature complete.
I even added another feature to it instead of mine. It's only been tested under Linux, but it should work on Mac OS too I would think.
Now it accepts the -t flag to automatically open a serial terminal after downloading the program.
This is a feature that I definitely think the Prop Tool should have but doesn't.
The terminal program is somewhat compatible with combined keyboard-mouse-screen driver that was written for use with
the PropTerminal program that is available for windows. Basically all that works is setting text position and keyboard
input, but that's about all I use.
It needs the curses terminal library which is available for Linux by default (but not available in windows at all as far as I know)
This code is so rough that I hesitate to post it, but since it is functional enough for me I probably won't ever really finish it off.
Hope its useful to someone else too,
Chad
The assembler was written by Ale and is available here: http://forums.parallax.com/showthread.php?p=692062.
-- Remy
Steven
Steven
The package was built with an application called Platypus which I don't believe is needed after building the package.
Steven
Steven