| | |
Can python programs be embedded into web pages?
![]() |
Can python programs with GUIs (such as Tkinter) be embedded into web pages?
I have looked into CGI programming before, but despite a search, I have found no books relating how to do this with python. Is it possible? Can anyone recommend a good book?
If not, what would you recommend as the best language to go with? I just want something easy for making very simple moving graphical displays on a web page. (E.g., a reader holds down a button and smiley faces start to appear on the screen.) It needs to be able to record what's happening though ("person A pressed button B"), so Flash is out.
I have looked into CGI programming before, but despite a search, I have found no books relating how to do this with python. Is it possible? Can anyone recommend a good book?
If not, what would you recommend as the best language to go with? I just want something easy for making very simple moving graphical displays on a web page. (E.g., a reader holds down a button and smiley faces start to appear on the screen.) It needs to be able to record what's happening though ("person A pressed button B"), so Flash is out.
•
•
Join Date: Nov 2007
Posts: 21
Reputation:
Solved Threads: 2
I know that you can use javascript to call python functions/scripts. said functions can return data which you can use in your html Interface.
It would be easier and nicer to be able to use python without the user having to have it installed.
I'm not too sure off-hand how to go about doing it but i'm sure a quick google will help you.
It would be easier and nicer to be able to use python without the user having to have it installed.
I'm not too sure off-hand how to go about doing it but i'm sure a quick google will help you.
if this were a computer game i'd be googling a patch right now...
•
•
Join Date: Nov 2007
Posts: 21
Reputation:
Solved Threads: 2
Javascript can be nice, but it can also be a bit of a mystery.
all you need to know to get started is this line:
alert("hello");
this is the easiest way to debug your script...
There are hundreds of GREAT javascript tutorials out there... maybe there's one that shows how to make function calls to python
, so you can skip having to 'learn' the language
LarZ
all you need to know to get started is this line:
alert("hello");
this is the easiest way to debug your script...
There are hundreds of GREAT javascript tutorials out there... maybe there's one that shows how to make function calls to python
, so you can skip having to 'learn' the language
LarZ
if this were a computer game i'd be googling a patch right now...
•
•
Join Date: Jul 2004
Posts: 11
Reputation:
Solved Threads: 1
If you mean "embedded into web pages" ala PHP or ASP, I could recommend Spyce ( http://www.spyce.sf.net ).
If you mean "embedded into web pages" ala Javascript or Flash, the answer is generally no.
But be aware that Silverlight, being .NET driven, is scriptable via IronPython, so it is a qualified yes.
If you mean "embedded into web pages" ala Javascript or Flash, the answer is generally no.
But be aware that Silverlight, being .NET driven, is scriptable via IronPython, so it is a qualified yes.
![]() |
Other Threads in the Python Forum
- Previous Thread: Get Last Modified Filename
- Next Thread: Making a list of 3 numbers per line
| Thread Tools | Search this Thread |
abrupt accessdenied anti apache application approximation argv array beginner book builtin calculator change converter countpasswordentry curved dan08 dictionaries dictionary dynamic edit enter examples file float format function gui heads homework import inches input java keyboard lapse launcher library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric output parameters parsing path phonebook plugin port prime programming projects py2exe pygame pyopengl python random recursion redirect remote reverse scrolledtext session simple software sprite statictext string strings syntax table terminal text textarea thread threading time tlapse trick tuple tutorial twoup ubuntu unicode unit urllib urllib2 variable wordgame wxpython





