mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-15 13:42:18 +03:00
21 lines
470 B
Python
Executable file
21 lines
470 B
Python
Executable file
import sys
|
|
import easygui
|
|
|
|
|
|
def ask(content, title):
|
|
choice = easygui.textbox(msg=title, text=content, codebox=0)
|
|
if choice:
|
|
print('Y')
|
|
else:
|
|
print('N')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if len(sys.argv) == 3:
|
|
try:
|
|
ask(sys.argv[1], sys.argv[2])
|
|
except Exception as e:
|
|
print(str(e))
|
|
else:
|
|
print('Argument fault. Check your parameters or content of parameters. Parameters: ' + str(sys.argv))
|