Skip to content

Commit

Permalink
add flash card app
Browse files Browse the repository at this point in the history
  • Loading branch information
orifjon9 committed Mar 6, 2023
1 parent 2a6b437 commit 2b876e3
Show file tree
Hide file tree
Showing 10 changed files with 134 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added flash-card/__pycache__/colors.cpython-310.pyc
Binary file not shown.
Binary file added flash-card/card_front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions flash-card/colors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BACKGROUND_COLOR = "#B1DDC6"
102 changes: 102 additions & 0 deletions flash-card/data/french_words.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
French,English
partie,part
histoire,history
chercher,search
seulement,only
police,police
pensais,thought
aide,help
demande,request
genre,kind
mois,month
frère,brother
laisser,let
car,because
mettre,to put
aucun,no
laisse,leash
eux,them
ville,city
chaque,each
parlé,speak
arrivé,come
devrait,should
bébé,baby
longtemps,long time
heures,hours
vont,will
pendant,while
revoir,meet again
aucune,any
place,square
parle,speak
compris,understood
savais,knew
étaient,were
attention,Warning
voici,here is
pourrais,could
affaire,case
donner,give
type,type
leurs,their
donné,given
train,train
corps,body
endroit,place
yeux,eyes
façon,way
écoute,listen
dont,whose
trouve,find
premier,first
perdu,lost
main,hand
première,first
côté,side
pouvoir,power
vieux,old
sois,be
tiens,here
matin,morning
tellement,so much
enfant,child
point,point
venu,came
suite,after
pardon,sorry
venez,come
devant,in front of
vers,towards
minutes,minutes
demandé,request
chambre,bedroom
mis,placed
belle,beautiful
droit,law
aimerais,would like to
aujourd'hui,today
mari,husband
cause,cause
enfin,finally
espère,hope
eau,water
attendez,Wait
parti,left
nouvelle,new
boulot,job
arrêter,Stop
dirait,would say
terre,Earth
compte,account
donne,given
loin,far
fin,end
croire,believe
chérie,sweetheart
gros,large
plutôt,rather
aura,will have
filles,girls
jouer,to play
bureau,office
Binary file added flash-card/img/card_back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added flash-card/img/card_front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions flash-card/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from tkinter import Tk, Canvas, PhotoImage, Button
from colors import BACKGROUND_COLOR

window = Tk()
window.title("Flash card")
window.config(padx=50, pady=50, background=BACKGROUND_COLOR)

canvas = Canvas(width=800, height=526, bg=BACKGROUND_COLOR, highlightthickness=0)
card_front_img = PhotoImage("card_front.png")
canvas.create_image(400, 263, image=card_front_img)
canvas.create_text(400, 150, text="Text should be here", font=("Ariel", 40, "italic"), fill='black')
canvas.create_text(400, 263, text="Word", font=("Ariel", 60, "bold"), fill='black')
canvas.grid(row=0, column=0, columnspan=2)

cross_button_image = PhotoImage("wrong.png")
cross_button = Button(image=cross_button_image, highlightthickness=0)
cross_button.grid(row=1, column=0)

tick_button_image = PhotoImage(file="right.png", format="PNG")
tick_button = Button(image=tick_button_image, highlightthickness=0)
tick_button.grid(row=1, column=1)

window.mainloop()








Binary file added flash-card/right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added flash-card/wrong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2b876e3

Please sign in to comment.