Re: [julia-users] Re: PySide questions

2014-03-28 Thread Samuele Carcagno
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)

Re: [julia-users] Re: PySide questions

2014-03-28 Thread Samuele Carcagno
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

[julia-users] Re: PySide questions

2014-03-28 Thread j verzani
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