1+ #!/usr/bin/python3
2+ """ Copyright© 2023-2025 LinuxUsersLinuxMint
3+ PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
4+ PyAppDevKit All Rights Reserved under the GPL(General Public License).
5+ Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
6+ A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""
7+
8+ def time (number ):
9+ while number > 0 :
10+ number -= 1
11+ for _ in range (100000000 ):
12+ pass
13+
14+ def error_msg (error_dialog ):
15+ print (error_dialog )
16+
17+ def exit_program_dialog_time (exit_dialog_msg ,userTime ):
18+ print (exit_dialog_msg )
19+ userTime = int (userTime )
20+ time (userTime )
21+ exit ()
22+
23+ def exit_program_time (userTime ):
24+ userTime = int (userTime )
25+ time (userTime )
26+ exit ()
27+
28+ def exit_program_dialog (exit_dialog_msg ):
29+ print (exit_dialog_msg )
30+
31+ """ Example Dialog (ExitSelectDialog): "Select the method to exit the program (0: Dialogue and Time entry, 1: Time entry only, 2: Dialogue entry only, 3: Normal exit (old style)): "
32+ Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: "
33+ Example Dialog (exitDialog): "Exit program..."
34+ Example Dialog (errormsgDialog): "Invalid Command!" """
35+
36+ def all_exit (ExitSelectDialog ,userTimeDialog ,exitDialog ,errormsgDialog ):
37+ exit_select = int (input (ExitSelectDialog ))
38+ exit_select = int (exit_select )
39+ if exit_select == 0 :
40+ userTime = input (userTimeDialog )
41+ exit_program_dialog_time (exitDialog , userTime )
42+ elif exit_select == 1 :
43+ userTime = input (userTimeDialog )
44+ exit_program_time (userTime )
45+ elif exit_select == 2 :
46+ exit_program_dialog (exitDialog )
47+ elif exit_select == 3 :
48+ exit ()
49+ else :
50+ print (errormsgDialog )
51+
52+ def program_info (dialog_one ,dialog_one_t ,dialog_two ,dialog_two_t ,dialog_three ,dialog_three_t ,dialog_four ,dialog_four_t ,dialog_five ,dialog_five_t ,dialog_six ,dialog_six_t ,dialog_seven ,dialog_seven_t ,dialog_eigth ,dialog_eight_t ,dialog_nine ,dialog_nine_t ,dialog_ten ,dialog_ten_t ):
53+ print ("{0} {1}" . format (dialog_one ,dialog_one_t ))
54+ print ("{0} {1}" . format (dialog_two ,dialog_two_t ))
55+ print ("{0} {1}" . format (dialog_three ,dialog_three_t ))
56+ print ("{0} {1}" . format (dialog_four ,dialog_four_t ))
57+ print ("{0} {1}" . format (dialog_five ,dialog_five_t ))
58+ print ("{0} {1}" . format (dialog_six ,dialog_six_t ))
59+ print ("{0} {1}" . format (dialog_seven ,dialog_seven_t ))
60+ print ("{0} {1}" . format (dialog_eigth ,dialog_eight_t ))
61+ print ("{0} {1}" . format (dialog_nine ,dialog_nine_t ))
62+ print ("{0} {1}" . format (dialog_ten ,dialog_ten_t ))
63+
64+ def library_info (dialog_one ,dialog_one_t ,dialog_two ,dialog_two_t ,dialog_three ,dialog_three_t ,dialog_four ,dialog_four_t ,dialog_five ,dialog_five_t ,dialog_six ,dialog_six_t ,dialog_seven ,dialog_seven_t ,dialog_eigth ,dialog_eight_t ,dialog_nine ,dialog_nine_t ,dialog_ten ,dialog_ten_t ):
65+ print ("{0} {1}" . format (dialog_one ,dialog_one_t ))
66+ print ("{0} {1}" . format (dialog_two ,dialog_two_t ))
67+ print ("{0} {1}" . format (dialog_three ,dialog_three_t ))
68+ print ("{0} {1}" . format (dialog_four ,dialog_four_t ))
69+ print ("{0} {1}" . format (dialog_five ,dialog_five_t ))
70+ print ("{0} {1}" . format (dialog_six ,dialog_six_t ))
71+ print ("{0} {1}" . format (dialog_seven ,dialog_seven_t ))
72+ print ("{0} {1}" . format (dialog_eigth ,dialog_eight_t ))
73+ print ("{0} {1}" . format (dialog_nine ,dialog_nine_t ))
74+ print ("{0} {1}" . format (dialog_ten ,dialog_ten_t ))
75+
76+ def program_welcome_msg (welcome_msg ,cfg ,cfg_ ,appname ,libname ,websitelink ):
77+ print (welcome_msg )
78+ if cfg == 1 :
79+ print (websitelink )
80+ elif cfg == 0 :
81+ if cfg_ == "lib" :
82+ library_info ("Library Name: " ,libname ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" )
83+ elif cfg_ == "app" :
84+ program_info ("Program Name: " ,appname ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" ,"" )
85+ else :
86+ error_msg ("Invalid definition!" )
0 commit comments