But what are the alternatives? Getting started with Qt/GTK isn't nearly as easy, for example.
Maybe someone should write an intro to native GUI programming for JS devs.
But what are the alternatives? Getting started with Qt/GTK isn't nearly as easy, for example.
Maybe someone should write an intro to native GUI programming for JS devs.
import sys
from PyQt4 import QtGui
def window():
app = QtGui.QApplication(sys.argv)
w = QtGui.QWidget()
b = QtGui.QLabel(w)
b.setText("Hello World!")
w.setGeometry(100,100,200,50)
b.move(50,20)
w.setWindowTitle(“PyQt”)
w.show()
sys.exit(app.exec_())
if __name__ == '__main__':
window()
In general I think Qt is one of the best-documented UI toolkits out there, and while it surely is complex it offers a lot of modern features and is able to produce pretty great UIs. b = QtGui.QLabel(w)
b.setText("Hello World!")
can be replaced with b = QtGui.QLabel(w, text = "Hello World!")Unfortunately, most users know Java from years ago and never understood the difference between an applet or desktop application, and in the minds of some users it's still falsely stereotyped as slow or insecure.
In most shops I know, Java is being extensively used on the back-end, but almost no custom Java apps with GUIs. Most shops (and people) who could do Java on the frontend have gone to learn Mono or WinForms or WPF instead, which gives you results that feel nicer to most users.
I ran into this when teaching myself Swift last year. Learning a new language is easy. Learning the ecosystem, architecture, and some initial best practices is a sisyphean task.