By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,674 Members | 1,258 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,674 IT Pros & Developers. It's quick & easy.

Re: Connecting a Desktop App to a Web App

P: n/a
Okay, this is my first post to this mailing list, so first off if I
shouldn't be sending something here, PLEASE correct me. Okay, so I
want to create an app that has a GUI (most likely Tkinter) and will
prompt the user to choose files and such and then will upload those
files, either regularly or one time, whatever. But I don't know how to
go abou doing such a thing, that is creating a app that will
automatically upload to a back-up website(online storage). So if
anyone can help me out or point me in the right direction that would
be great. Thanks!
There are two cases: (1) you are in control of the web app (2) you are
not in control of the web app.

(1) So you need to make the web app yourself too. There are several
options for this the most popular ones are django and turbogears. For
more see http://wiki.python.org/moin/WebFrameworks Once you have your
web app up and running you can connect to it using some modules in the
stdlib: http://docs.python.org/lib/module-urllib2.html
http://docs.python.org/lib/module-httplib.html Basically you just
create http requests in your desktop app and send those just as a
browser would do.

(2) You need to figure out the API of the web app you want to connect
to. Once you have that use the stdlib modules to create the
appropriate http requests just as above.

HTH,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.