|
5 | 5 | Bu Yazılımın Bir Kopyası GitHub da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint-Calculator-Lite
|
6 | 6 | A Copy of This Software is published on GitHub To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint-Calculator-Lite"""
|
7 | 7 |
|
8 |
| -about = "LinuxUsersLinuxMint-Calculator-Lite 2.3" |
9 |
| -lang=input("Language: ") |
| 8 | +import sys |
| 9 | +from Lib.Basic_Maths.Basic_Maths import * |
| 10 | +from Lib.PyAppDevKit.pyappdevkit import * |
| 11 | + |
| 12 | +about = "LinuxUsersLinuxMint-Calculator-Lite 2.5" |
| 13 | + |
| 14 | +if len(sys.argv) > 1: |
| 15 | + for arg in sys.argv[1:]: |
| 16 | + if arg == "-tr": |
| 17 | + lang="tr" |
| 18 | + elif arg == "-en": |
| 19 | + lang="en" |
| 20 | + elif arg == "-about": |
| 21 | + print(about) |
| 22 | + elif arg == "-help": |
| 23 | + print("-tr -> Turkish") |
| 24 | + print("-en -> English") |
| 25 | + print("-about -> About") |
| 26 | + print("-help -> Help") |
| 27 | + print("-addition -> Addition") |
| 28 | + print("-extraction -> Extraction") |
| 29 | + print("-multiplication -> Multiplication") |
| 30 | + print("-division -> Division") |
| 31 | + print("-percentage -> Percentage") |
| 32 | + print("-mod -> Mod") |
| 33 | + elif arg == "-addition" or arg == "-add": |
| 34 | + n1=int(input("calc> Enter the 1st number: ")) |
| 35 | + n2=int(input("calc> Enter the 2nd number: ")) |
| 36 | + Addition(n1,n2,"",save_cfg=OFF,file_name="",save_err_msg="") |
| 37 | + elif arg == "-extraction" or arg == "-ext": |
| 38 | + n1=int(input("calc> Enter the 1st number: ")) |
| 39 | + n2=int(input("calc> Enter the 2nd number: ")) |
| 40 | + Extraction(n1,n2,"",save_cfg=OFF,file_name="",save_err_msg="") |
| 41 | + elif arg == "-multiplication" or arg == "-mul": |
| 42 | + n1=int(input("calc> Enter the 1st number: ")) |
| 43 | + n2=int(input("calc> Enter the 2nd number: ")) |
| 44 | + Multiplication(n1,n2,"",save_cfg=OFF,file_name="",save_err_msg="") |
| 45 | + elif arg == "-division" or arg == "-div": |
| 46 | + n1=int(input("calc> Enter the 1st number: ")) |
| 47 | + n2=int(input("calc> Enter the 2nd number: ")) |
| 48 | + Division(n1,n2,"","Number cannot be 0 when dividing!",save_cfg=OFF,file_name="",save_err_msg="") |
| 49 | + elif arg == "-percentage" or arg == "-per": |
| 50 | + n1=int(input("calc> Enter the 1st number: ")) |
| 51 | + n2=int(input("calc> Enter the 2nd number: ")) |
| 52 | + Percentage(n1,n2,"",save_cfg=OFF,file_name="",save_err_msg="") |
| 53 | + elif arg == "-mod": |
| 54 | + n1=int(input("calc> Enter the 1st number: ")) |
| 55 | + n2=int(input("calc> Enter the 2nd number: ")) |
| 56 | + Mod(n1,n2,"",save_cfg=OFF,file_name="",save_err_msg="") |
| 57 | + else: |
| 58 | + print("Invalid argument! Please type -help for more information!") |
| 59 | +else: |
| 60 | + lang=input("Language: ") |
10 | 61 |
|
11 | 62 | if lang == "tr" or lang == "TR":
|
12 | 63 | error_dialog="Geçersiz işlem!"
|
|
0 commit comments