Open GoogleCodeExporter opened 9 years ago
In your script, I can see only one call to fedit.
You mention multiple calls to fedit in your report: did you run it inside
IPython several times or anywhere else?
Original comment by pierre.raybaut
on 6 Oct 2011 at 2:38
The call to fedit is inside a while loop. That's what I meant by "multiple
calls." Cheers! ~br
Original comment by b...@co57.com
on 6 Oct 2011 at 2:48
As certain versions of PyQt does not like the QApplication to be destroyed
(when quitting the `fedit` function), I suggest the two following options:
1. initializing your own QApplication, only once, before calling fedit (before
your while loop):
from PyQt4.QtGui import QApplication
app = QApplication([])
data = dict(a=1)
while True:
data = formlayout.fedit(data)
2. if 1. does not work, try the following but the result should be the same:
from PyQt4.QtGui import QApplication
app = QApplication([])
data = dict(a=1)
while True:
dialog = formlayout.FormDialog(data)
if dialog.exec_():
data = dialog.get()
Original comment by pierre.raybaut
on 6 Oct 2011 at 3:06
Original issue reported on code.google.com by
b...@co57.com
on 30 Sep 2011 at 2:21