1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| import os import htmlPy from PyQt4 import QtGui
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
app = htmlPy.AppGUI(title=u"Application", maximized=True, plugins=True)
app.static_path = os.path.join(BASE_DIR, "static/") app.template_path = os.path.join(BASE_DIR, "templates/")
app.web_app.setMinimumWidth(1024) app.web_app.setMinimumHeight(768) app.window.setWindowIcon(QtGui.QIcon(BASE_DIR + "/static/img/icon.png"))
from html_to_python import ClassName
app.bind(ClassName())
if __name__ == "__main__":
app.start()
|