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.

efirvida
  • 4,592
  • 3
  • 42
  • 68

2 Answers2

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)

Joran Beasley
  • 110,522
  • 12
  • 160
  • 179
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

miqe
  • 3,209
  • 2
  • 28
  • 36