Movatterモバイル変換


[0]ホーム

URL:


Python & TKInter applets

Alex Martellialeaxit at yahoo.com
Thu Apr 12 04:25:56 EDT 2001


"Robert Johnson" <rjohnson at exotic-eo.com> wrote in messagenews:3ad551cd$0$36583$e2e8da3 at nntp.cts.com...> I would be developing for a Windows NT server and would probably use a> server-side solution since our customer base is not huge so our website is> not heavily used (the general public would probably not have muchinterest).To run server-side on NT, you get to choose between IIS, Apache, Xitami,and other webservers yet.  Python integrates very well with any of them,in different ways depending on the webserver's architecture.  Simplestwith IIS may be to use active-server-pages (ASP's) and ensure that thePython version you're running is ActiveScripting compliant (either getActivePython from the ActiveState site, or the Python Windows installerfrom www.python.org and install the win32all extensions from ActiveStateon top of that).  You can also choose to run your Python solution asa CGI script, of course.  Maybe the best approach is to use Webware,http://webware.sourceforge.net/, which lets you program your Pythonsoftware to a higher level of abstraction and takes care of manydetails on your behalf.TKinter is not relevant to any of these server-side approaches.  Youwill use standard HTML forms to get the input parameters, and generateyour plot as an image (or with SVG, as I already indicated, but thatwould require your clients to get & install the SVG plug-in).  Plottingto an image file from Python is VERY well supported by several packages,see for examplehttp://graphite.sourceforge.net/ (there are many otherpossibilities, of course, but Graphite sounds good).  You can returnthe image right from your Python script, or, maybe better, have thescript return an HTML response which SRC's the image from a dynamicallygenerated URL to a server-side file, so you can have buttons and otherform elements as well as the plot itself on the response-page.Alex


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp