2020-04-06 18:13:10 +03:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
|
|
|
|
# Author: Tuncay ÇOLAK <tuncay.colak@tubitak.gov.tr>
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import easygui
|
|
|
|
|
|
|
|
def ask(content, title):
|
|
|
|
choice = easygui.buttonbox(msg=title, title=content, choices=['TAMAM'])
|
|
|
|
#choice = easygui.textbox(msg=title, text=content)
|
|
|
|
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:
|
2020-08-24 11:24:20 +03:00
|
|
|
print('Argument fault. Check your parameters or content of parameters. Parameters: ' + str(sys.argv))
|