newbie: python application on a web page

P

puzz

Hi all,

I am so new to everything, I don't even know where to post my
question... do bear...

I made this Python calculator that will take an equation as an input
and will display the computed curves on a shiny Tkinter interface

Now, I'd like to make this application available on a public web
page... and all I could come up with was this post

Hints?!
I'd also appreciate a link to a beginner forum

Thanks

Puzzled Me
 
F

Fredrik Lundh

puzz said:
I made this Python calculator that will take an equation as an input
and will display the computed curves on a shiny Tkinter interface

well, it doesn't sound like you're quite as newbie-ish as many other
newbies ;-)
Now, I'd like to make this application available on a public web
page... and all I could come up with was this post

some potentially useful links:

http://tkinter.unpythonic.net/wiki/
http://infogami.com/
http://pages.google.com
I'd also appreciate a link to a beginner forum

assuming "beginner" implies "really wants to learn", this one's quite nice:

http://mail.python.org/mailman/listinfo/tutor

</F>
 
D

Daniel Nogradi

I made this Python calculator that will take an equation as an input
well, it doesn't sound like you're quite as newbie-ish as many other
newbies ;-)


some potentially useful links:

http://tkinter.unpythonic.net/wiki/
http://infogami.com/
http://pages.google.com


assuming "beginner" implies "really wants to learn", this one's quite nice:

http://mail.python.org/mailman/listinfo/tutor


And perhaps you'll find this also helpful: http://modpython.org/ an
apache module that embeds the interpreter into the webserver.
 
P

puzz

sorry about the missunderstanding...

but my question is "how" and not "where" to put it online
and that's where the "newbie" comes from

P M
 
M

Max

puzz said:
sorry about the missunderstanding...

but my question is "how" and not "where" to put it online
and that's where the "newbie" comes from

P M

If you just want to make it available for download, that's easy. If you
want to make it open source, you could upload it to
planet-source-code.com (I used to put a lot there; don't know if they
have a python section) or SourceForge depending on your "market".

But what I think you want is a web interface (where a user goes to your
site and uses it in the browser window). This is more tricky, but you're
almost certainly going to have to abandon Tkinter. You could try doing
an applet in Jython (which compiles Python to Java bytecode so you could
in theory do a Java-style applet).

The alternative is to have the curve drawn server-side, so you would
have an HTML form on the page, and on clicking a button, load the graph
(into an "iframe" or something perhaps [I have a feeling iframes have
been deprecated - check first]). In which case you'd want to look up
CGI, AJAX, etc.

--Max
 
?

=?iso-8859-1?B?QW5kcuk=?=

Max said:
puzz said:
sorry about the missunderstanding...

but my question is "how" and not "where" to put it online
and that's where the "newbie" comes from

P M

If you just want to make it available for download, that's easy. If you
want to make it open source, you could upload it to
planet-source-code.com (I used to put a lot there; don't know if they
have a python section) or SourceForge depending on your "market".

But what I think you want is a web interface (where a user goes to your
site and uses it in the browser window). This is more tricky, but you're
almost certainly going to have to abandon Tkinter. You could try doing
an applet in Jython (which compiles Python to Java bytecode so you could
in theory do a Java-style applet).

The alternative is to have the curve drawn server-side, so you would
have an HTML form on the page, and on clicking a button, load the graph
(into an "iframe" or something perhaps [I have a feeling iframes have
been deprecated - check first]). In which case you'd want to look up
CGI, AJAX, etc.
I'd suggest drawing curves in a <canvas>; supported by Firfox, Safari,
Opera ... and, if you use Google's "excanvas", it can be supported by
IE.

André
 
S

SuperHik

Max said:
puzz said:
sorry about the missunderstanding...

but my question is "how" and not "where" to put it online
and that's where the "newbie" comes from

P M

If you just want to make it available for download, that's easy. If you
want to make it open source, you could upload it to
planet-source-code.com (I used to put a lot there; don't know if they
have a python section) or SourceForge depending on your "market".

But what I think you want is a web interface (where a user goes to your
site and uses it in the browser window). This is more tricky, but you're
almost certainly going to have to abandon Tkinter. You could try doing
an applet in Jython (which compiles Python to Java bytecode so you could
in theory do a Java-style applet).

The alternative is to have the curve drawn server-side, so you would
have an HTML form on the page, and on clicking a button, load the graph
(into an "iframe" or something perhaps [I have a feeling iframes have
been deprecated - check first]). In which case you'd want to look up
CGI, AJAX, etc.

--Max

Could it be done with SVG XML?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,301
Messages
2,571,549
Members
48,295
Latest member
JayKillian
Top