mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-25 03:52:16 +03:00
27 lines
604 B
Python
27 lines
604 B
Python
|
#!/usr/bin/env python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
|
||
|
|
||
|
import sys
|
||
|
import easygui
|
||
|
|
||
|
|
||
|
def confirm(message, title):
|
||
|
choice = easygui.buttonbox(msg=message, title=title, choices=["Tamam"])
|
||
|
|
||
|
if choice:
|
||
|
print('Y')
|
||
|
else:
|
||
|
print('N')
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
|
||
|
if len(sys.argv) == 3:
|
||
|
try:
|
||
|
confirm(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))
|