Beispiel #1
0
def import_export():
    ch = Choose([], "Dump/Restore pseudocode details", 1)
    ch.list = ["Import", "Export"]
    ch.width = 25
    ch.deflt = 1

    c = ch.choose()
    if c > 0:
        pkl_file = pickle_file(c)
        if not pkl_file:
            print "error with file choice"
            return
        if c == 1:
            import_pseudocomments(pkl_file)
        elif c == 2:
            export_pseudocomments(pkl_file)
    else:
        print "moep"
Beispiel #2
0
def import_export():
	ch = Choose([], "Dump/Restore pseudocode details", 1)
	ch.list = ["Import", "Export"]
	ch.width = 25
	ch.deflt = 1

	c = ch.choose()
	if c > 0:
		pkl_file = pickle_file(c)
		if not pkl_file:
			print "error with file choice"
			return
		if c == 1:
			import_pseudocomments(pkl_file)
		elif c == 2:
			export_pseudocomments(pkl_file)
	else:
		print "moep"