tags:

views:

127

answers:

5

I have been experimenting with Appcelerator Titanum yesterday and I think it's cool when it comes to Javascript.

Python features on Appcelerator Titanum are so limited (can't use some modules for example).

My question is How can I use html & javascript as a GUI tool for a real python application ?

I am running windows 7 and i was thinking of using webkit for that purpose but couldn't know how to work with it in python.

I am planning to make a standalone executable using py2exe as I don't know if the users always have python and the appropriate modules installed.

+1  A: 

So how can I use html & javascript as a gui tool for a real python application ?

You run a web server on your desktop. For example, this: http://docs.python.org/library/simplehttpserver.html In a few lines of code you can provide a complete HTTP server that will serve your HTML and Javascript to a browser.

I am running windows 7 and i was thinking of using webkit for that purpose but couldn't know how to work with it in python actually moreover I wanna use py2exe so how can I use python + webkit to handle the gui part ?

Hard to parse that. It either indicates too much coffee or no familiarity with punctuation.

Randomly, I'll pick the following words as possibly being meaningful.

how can I use python + webkit to handle the gui part ?

You run a web server on your desktop. The web server provides html and javascript pages to a browser -- also running on your desktop.

S.Lott
Sorry but that's a lame answer of my question ! If you don't know so don't comment. I mentioned at the beginning of the question that I was impressed by Appcelerator Titanum so I just need more freedom using python while doing the same thing as Appcelerator Titanum.
Lettuce
@Lettuce: Please **Clarify** your question. I found all the "?" I could find. I tried to parse the questions. If you don't like the answer, think about this for a moment. Maybe your question isn't complete enough for someone to understand it. Think that -- perhaps -- we don't know as much as you and you need to explain a little of what you're trying to do and what you need to know.
S.Lott
Ok I reformatted the question.
Lettuce
A: 

pywebkitgtk might be what you are looking for.

"HOWTO Create Python GUIs using HTML" http://www.aclevername.com/articles/python-webgui/

http://arstechnica.com/open-source/guides/2009/07/how-to-build-a-desktop-wysiwyg-editor-with-webkit-and-html-5.ars

But I'm not sure if it runs on Windows.

PyQt and Webkit would work on Windows.

http://www.rkblog.rk.edu.pl/w/p/webkit-pyqt-rendering-web-pages/

But really. If you want to make a desktop application you are better of with just PyQt ;)

Epeli
A: 

Have you looked at htmlayout? http://terrainformatica.com/htmlayout/main.whtm

sanchez
A: 

I assume you are mobilizing a web-application for cross platform access.

If so have you considered abstracting the cross platform access at the web-app presentation layer ?

Appcelerator / Webkit does not provide true native look-and-feel on mobile devices but this is where a new technology can help.