I would think you can put the GUI in a while(true) type loop so that it
doesn't close immediately. There should be nicer way though.
found a workaround using `wait()`
qnew_class("mwin", "QtGui.QMainWindow") ## QtGui -- not just Qt.
w = qnew_class_instance("mwin")
qset_method(w, :closeEvent)
many thanks for the help!
qt_enum(attr::Vector{ASCIIString}; how="|") = PyCall.pyeval(join(map(u
-> "QtCore.Qt.$u", attr), " $how "))
Basically, it calls "|" at the python level. Maybe there is a better
alternative.
I struggled to understand it at first, but then found an example on the
PySi
Hi, here is one way to address the setting of flags (though misnamed):
qt_enum(attr::Vector{ASCIIString}; how="|") = PyCall.pyeval(join(map(u ->
"QtCore.Qt.$u", attr), " $how "))
Basically, it calls "|" at the python level. Maybe there is a better
alternative.
As for NonModal, look at the une