Comments on: Python, Telnet and GUI-fying Legacy Apps http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: Sarel http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/#comment-10682 Thu, 13 Nov 2008 17:15:58 +0000 http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/#comment-10682

Make an AJAX GUI that works the same as the current app.

Easiest would probably be to use some kind of RPC such as XML-RPC to call from Javascript right into the python methods you already have.

Reply  |  Quote
]]>
By: ths http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/#comment-10678 Thu, 13 Nov 2008 06:15:43 +0000 http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/#comment-10678

In general you have 2 options:
1. give the tool to each user
2. write a server-based application

I would have either (for 1.) written a perl script with the expect module (which basically does the same), ask the user to prepare a text file at a given location, and then execute the perl script.
If you want to have it pretty you could use the tcl/Tk interface for perl.

Or you could write a web app (for 2.) as CGI in your web server, have the user upload the text file, enter username and password and do the telnet part from the web server to the telnet application.

Reply  |  Quote
]]>
By: IceBrain http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/#comment-10676 Wed, 12 Nov 2008 20:02:00 +0000 http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/#comment-10676

Yeah, Python is great, although as the only user of my apps, I’ve never needed no gui junk :P

But yes, if you will be putting the Python interpreter each way, why not make it reusable? Force a little Unix style in those Windows :P

Reply  |  Quote
]]>
By: jambarama http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/#comment-10674 Wed, 12 Nov 2008 18:30:33 +0000 http://www.terminally-incoherent.com/blog/2008/11/12/python-telnet-and-gui-fying-legacy-apps/#comment-10674

Excellent introduction to python guis. I wouldn’t rewrite in .NET, but that’s because I’m lazy and I don’t like rewriting things.

As for between pushing python or using py2exe, I’d say it depends on how many python apps you expect to push. Python installed is barely 30mb. If you expect you’ll create more than two of these apps, I’d just push python. They’ve got a nice msi & silent switches. That is, so long as you don’t have security concerns with putting python on every machine.

Actually, you could create a quick NSIS package that checks for python, if no python it could download & install python, then puts your .py file & shortcuts wherever you want. NSIS is pretty easy to use.

Reply  |  Quote
]]>