mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-29 15:32:23 +03:00
20 lines
380 B
Python
Executable file
20 lines
380 B
Python
Executable file
import sys
|
||
import easygui
|
||
|
||
|
||
def ask(content, title):
|
||
choice = easygui.ynbox(content, title, ('Evet', 'Hayır'))
|
||
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('Error')
|