11#Version:
2- #0.7.5
2+ #0.7.6
33###
44import os ### Librairie #4
55import csv ### .py & Librairie #5
1111from language_modules import * ### .py #11
1212
1313##///DEF\\\##
14-
1514def language (input_language ):
1615 ##Choice of the language from the settings:
1716 global Language
@@ -77,6 +76,7 @@ def Back():
7776def GitHubLink ():
7877 if True :
7978 webbrowser .open (GitHub )
79+
8080### Keyborad shortcuts
8181def Randm (x ):
8282 Randow_Word ()
@@ -93,6 +93,7 @@ def IMG_Next(x):
9393def IMG_Back (x ):
9494 ImageBack ()
9595###
96+
9697def Update (Numéro ):
9798 # Update the window content with the new word
9899 print ("Card N°" ,NumberOfWord )
@@ -308,10 +309,10 @@ def ImageBack():
308309 ### End of ImageBack()
309310######### Images #########
310311
311- ##///END_DEF\\\##
312+ ##///END_DEF\\\## ##///END_DEF\\\## ##///END_DEF\\\##
312313
313314
314- ##///MAIN\\\##
315+ ##///MAIN\\\## ##///MAIN\\\## ##///MAIN\\\##
315316Language = [] #List (will contain the words)
316317NumberOfWord = 0 #The number of the word in the list (DataBase.csv)
317318GitHub = "https://github.com/Hidden-Warden/MyCards/blob/main/README.md" #Link to GitHub ;D
@@ -326,14 +327,14 @@ def ImageBack():
326327 print ("Rappel_CSV_Title" ,Rappel_CSV_Title )
327328###
328329
329- #Start- Check if the folder exists
330+ #Start- Check if the folder exists and create it if not (event if the path for the screenshots was changed.)
330331path0 = "Screenshots"
331332isExist = os .path .exists (path0 )
332333if False == isExist : # If the folder does not exist, create it
333334 os .makedirs (path0 )
334- print ("Directory created successfully" ) # If the folder is created successfully, print this message
335+ print ("Directory created successfully (Screenshots) " ) # If the folder is created successfully, print this message
335336else :
336- print ("Directory already created" )
337+ print ("Directory already created (Screenshots) " )
337338#End
338339
339340##
0 commit comments