Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > newbie: python application on a web page

Reply
Thread Tools

newbie: python application on a web page

 
 
puzz
Guest
Posts: n/a
 
      06-06-2006
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

 
Reply With Quote
 
 
 
 
Fredrik Lundh
Guest
Posts: n/a
 
      06-06-2006
puzz wrote:

> 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>

 
Reply With Quote
 
 
 
 
Daniel Nogradi
Guest
Posts: n/a
 
      06-06-2006
> > 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



And perhaps you'll find this also helpful: http://modpython.org/ an
apache module that embeds the interpreter into the webserver.
 
Reply With Quote
 
puzz
Guest
Posts: n/a
 
      06-06-2006
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

puzz wrote:
> 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


 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      06-06-2006
puzz wrote:
> 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
 
Reply With Quote
 
=?iso-8859-1?B?QW5kcuk=?=
Guest
Posts: n/a
 
      06-06-2006

Max wrote:
> puzz wrote:
> > 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é

> --Max


 
Reply With Quote
 
gene tani
Guest
Posts: n/a
 
      06-07-2006

puzz wrote:
> Hi all,


> I'd also appreciate a link to a beginner forum
>



http://www.daniweb.com/techtalkforums/forum114.html

and (not really a beginner forum, not really high volume, either)
http://community.livejournal.com/python_dev/

 
Reply With Quote
 
SuperHik
Guest
Posts: n/a
 
      06-07-2006
Max wrote:
> puzz wrote:
>> 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?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web application or mvc web application? Andy B ASP .Net 0 08-13-2008 11:32 AM
How to update the current web page? (delete current web page + rewrite the page) laryten@yahoo.com Javascript 3 10-12-2006 07:33 PM
accessing the web user control's control from a web page and set a value from another web page Reny J Joseph Thuthikattu ASP .Net 1 12-30-2004 12:21 PM
RE: Web page is not available - "The Web page you requested is not available offline. To view this page, click Connect" =?Utf-8?B?VHJldm9yIEJlbmVkaWN0IFI=?= ASP .Net 0 06-07-2004 07:11 AM
Re: Web page is not available - "The Web page you requested is not available offline. To view this page, click Connect" Natty Gur ASP .Net 0 06-06-2004 05:46 AM



Advertisments