def test_edit(data, title='', parent=None):
 app = qapplication()
 dlg = DataFrameEditor(parent=parent)
 if dlg.setup_and_check(data, title=title):
  dlg.exec_()
  return dlg.get_value()
 else:
  import sys
  sys.exit(1)

def test_edit ( data , title = '' , parent = None ) : app = qapplication ( ) dlg = DataFrameEditor ( parent = parent ) if dlg . setup_and_check ( data , title = title ) : dlg . exec_ ( ) return dlg . get_value ( ) else : import sys sys . exit ( 1 )
test subroutine .