def dlg_file(is_open, init_filename, init_dir, filters): res = ct.dlg_file(is_open, init_filename, init_dir, filters) if res is None: return None res = res.splitlines() if len(res)==1: res=res[0] return res
def dlg_file(is_open, init_filename, init_dir, filters): res = ct.dlg_file(is_open, init_filename, init_dir, filters) if res is None: return None res = res.splitlines() if len(res) == 1: res = res[0] return res
def dlg_file(is_open, init_filename, init_dir, filters): return ct.dlg_file(is_open, init_filename, init_dir, filters)
def dlg_file(is_open, init_filename, init_dir, filters, caption=''): if not caption: caption = 'Open file' if is_open else 'Save file' return ct.dlg_file(is_open, init_filename, init_dir, filters, caption)