def fedit(data, title=u'', comment=u'', icon=None, parent=None, apply=None):
 if QtWidgets.QApplication.startingUp():
  _app = QtWidgets.QApplication([])
 dialog = FormDialog(data, title, comment, icon, parent, apply)
 if dialog.exec_():
  return dialog.get()

def fedit ( data , title = u'' , comment = u'' , icon = None , parent = None , apply = None ) : if QtWidgets . QApplication . startingUp ( ) : _app = QtWidgets . QApplication ( [ ] ) dialog = FormDialog ( data , title , comment , icon , parent , apply ) if dialog . exec_ ( ) : return dialog . get ( )
create form dialog and return result data: datalist .