Live data from Hacker News

Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

amol-mandhane.github.io

11–18 of 18 posts

Re: Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

#11
post #7

Can someone explain why this is useful over standard HTML/CSS or Bootstrap? Feels like I'm missing the point...

This library is just a wrapper on a rendering engine. It doesn't replace standard HTML/CSS. You can use it to create UIs for standalone applications using HTML/CSS, Bootstrap, jQuery and any other front-end libraries.

Re: Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

#12

It looks like a lot of work and thought went into this library. I'd love to give it a shot except that I have no idea what the output might look like.

Output is pretty much same as HTML rendered by chrome. htmlPy just renders it in a standalone application instead of browser window.

Re: Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

#13
post #5

> htmlPy is a wrapper around PySide's QtWebKit library... Based on my experience using Qt (via PyQt) this is kind of puzzling, and the very limited doc doesn't do much to unpuzzle me. QtWebKit is basically a rendering engine wrapped as a Qt widget[0]. Where an entire app is based on a Qt main window, it can display HTML-encoded or Javascript-encoded content in a QWebView widget. QtWebKit also offers the "WebKit bridg…

Where an entire app is based on a Qt main window, it can display HTML-encoded or Javascript-encoded content in a QWebView widget. So it's another one of these "web everything" things... which in my experience seems more like "how to make your app consume 100x more memory and disk space that it should". What is with this aversion to native UIs that I've been seeing more of recently (and the tendency to invent controls…

People are attracted to these solutions because they can build cross platform GUIs. Native UIs are great, no one is averse to them, people just don't want to write and maintain several different versions of the same thing in different languages.

Re: Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

#14
post #13

Earlier quoted context omitted.

Where an entire app is based on a Qt main window, it can display HTML-encoded or Javascript-encoded content in a QWebView widget. So it's another one of these "web everything" things... which in my experience seems more like "how to make your app consume 100x more memory and disk space that it should". What is with this aversion to native UIs that I've been seeing more of recently (and the tendency to invent controls…

People are attracted to these solutions because they can build cross platform GUIs. Native UIs are great, no one is averse to them, people just don't want to write and maintain several different versions of the same thing in different languages.

The irony is, Qt _IS_ a cross-platform GUI, where you build your UI once and it looks like Windows on Windows, Mac OS on Mac OS, and the look of whatever window manager on Linux.

Re: Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

#15
post #13

Earlier quoted context omitted.

Where an entire app is based on a Qt main window, it can display HTML-encoded or Javascript-encoded content in a QWebView widget. So it's another one of these "web everything" things... which in my experience seems more like "how to make your app consume 100x more memory and disk space that it should". What is with this aversion to native UIs that I've been seeing more of recently (and the tendency to invent controls…

People are attracted to these solutions because they can build cross platform GUIs. Native UIs are great, no one is averse to them, people just don't want to write and maintain several different versions of the same thing in different languages.

As @fernly said, Qt is a cross-platform GUI library and htmlPy isn't bringing anything extra in that field.

htmlPy is meant for easy GUI development and integration with popular frameworks like Django for standalone app development. It adds to the memory usage of the application due to the use of QtWebkit.

If you are making a not-very-complex app and don't want to go to lot of trouble for making GUIs for standalone version, htmlPy is a great solution. But if your app is conservative about resources, doing lot of memory optimization or needs features which can't be done using HTML, probably best if you use native UI.

Re: Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

#16
post #14
post #13

Earlier quoted context omitted.

People are attracted to these solutions because they can build cross platform GUIs. Native UIs are great, no one is averse to them, people just don't want to write and maintain several different versions of the same thing in different languages.

The irony is, Qt _IS_ a cross-platform GUI, where you build your UI once and it looks like Windows on Windows, Mac OS on Mac OS, and the look of whatever window manager on Linux.

> The irony is, Qt _IS_ a cross-platform GUI,

Haha, I didn't realize that(not familiar w/ Qt). Was just responding to the "why are people averse to Native UIs" question

Re: Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

#17
post #14
post #13

Earlier quoted context omitted.

People are attracted to these solutions because they can build cross platform GUIs. Native UIs are great, no one is averse to them, people just don't want to write and maintain several different versions of the same thing in different languages.

The irony is, Qt _IS_ a cross-platform GUI, where you build your UI once and it looks like Windows on Windows, Mac OS on Mac OS, and the look of whatever window manager on Linux.

The irony is, Qt _IS_ a cross-platform GUI, where you build your UI once and it looks like Windows on Windows, Mac OS on Mac OS, and the look of whatever window manager on Linux.

Looks like, yes. Behaves like, not really (at least on Windows.) The few Qt apps I have certainly do not feel as responsive as the native ones, despite (mostly) looking that way, so it is rather awkward. They're noticeably laggier even in simple operations like displaying a menu, or responding to window resizing/moving.

Re: Show HN: HtmlPy – HTML5-CSS3-JavaScript Based GUI Library in Python

#18
When i saw the example code, the first thing that is see is the use of globals:

  from main import app
  app.html
This is a reason i would never use a library like this. Flask has the same issue with globals. I think is a common problem that python developers have, because its so easy to create global singleton modules with state.
Post reply on HN