1

I want to make a application that run as a web application or desktop application, I know how to implement for a web server using Django or Flask, i prefer Django, but is there any way to port it to a desktop application too? I found a nodewebkit that maybe give me the solution but, I don`t have any idea on how to use it.

2 Answers 2

3
import wx
from wx.lib.iewin import IEHtmlWindow
a = wx.App(redirect=False)
f = wx.Frame(None,-1,"My Desktop Application")
browser = IEHtmlWindow(f)
browser.Navigate("http://google.com")
f.Show()
a.MainLoop()

is a pretty good way for a remote web page to pretend to be a windows application ... assuming thats what you are asking for.. (this uses wxPython so of coarse you will need to install it)

Sign up to request clarification or add additional context in comments.

2 Comments

this can be turn into executable with py2exe?
well I usually use pyinstaller
2

Me personally prefer node-webkit(renamed to nwjs) for this kind of things. Its very easy and powerful, you should give it a try. here are some tutorials.

this, this and this. here is the github page nwjs.

but if your background is in python not nodejs then take a look at cefpython

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.