Skip to content

Commit 9205a73

Browse files
committed
v0.7.6
1 parent 37ef7bf commit 9205a73

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

MyCards.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Version:
2-
#0.7.5
2+
#0.7.6
33
###
44
import os ### Librairie #4
55
import csv ### .py & Librairie #5
@@ -11,7 +11,6 @@
1111
from language_modules import * ### .py #11
1212

1313
##///DEF\\\##
14-
1514
def language(input_language):
1615
##Choice of the language from the settings:
1716
global Language
@@ -77,6 +76,7 @@ def Back():
7776
def GitHubLink():
7877
if True:
7978
webbrowser.open(GitHub)
79+
8080
### Keyborad shortcuts
8181
def Randm(x):
8282
Randow_Word()
@@ -93,6 +93,7 @@ def IMG_Next(x):
9393
def IMG_Back(x):
9494
ImageBack()
9595
###
96+
9697
def 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\\\##
315316
Language=[] #List (will contain the words)
316317
NumberOfWord=0 #The number of the word in the list (DataBase.csv)
317318
GitHub="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.)
330331
path0 = "Screenshots"
331332
isExist = os.path.exists(path0)
332333
if 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
335336
else:
336-
print("Directory already created")
337+
print("Directory already created (Screenshots)")
337338
#End
338339

339340
##

0 commit comments

Comments
 (0)