I made this Spinner dropdown displaying flag images of 20 countries: took my a whole afternoon trying to figure this out.
To get such a simple concept to work, was such a pain! made two classes and the images i used were .ico
I tried with .png and .svg, they don't seem to work. Png most likely will work with the code i will upload. The other trials were a failure to make it work.
Anyway just pip install kivy and download the zip, and run. Apply it to your projects, i surfed the web to find a solution to what i want to accomplish, couldn't find anything, came close to some other solutions but it just worked with one image, if i wanted multiple images to be on a dropdown of buttons or labels i had to figure that out! This code works! This code is just an example, if you want to add more countries modify!
Donate a taco, the more tacos i get the more i can create free scripts:
https://ko-fi.com/salvadorcarrillo_c
https://www.buymeacoffee.com/pointperksH
.--===-:.
.+*########**+:
=*#############*=
+################*.
.*################*=
.+*++++****######*+.
.===-==++****##**+:
-===+********#**+.
.+*=*+++=++******:
:--+++==+********+.
-=+**++****##*###*=-:.
:=+****##########*****+=-.
=++*#####**####*********+-.
.=+***#******#####************=-
:+####*###+++*####**#*************+.
.-+*######*##*=*####**#******###******+.
-*#**##**#***##*###***#***##*###********=
.-**#####******####****#****#####*#*******+.
-+**########****#*##**=**##***######***#*****+.
-+**##########***####***:+**#*#######***##*****+.
=****##########***###*******#########***##******+.
:=**#########%###***###********########**##*******+.
:=++*####%%%%%%###***###*******########***##**##***=
-++*###%#%%%%%%##*######*******########**######*#**-
-++*######+=----*#########****#########****#####***.
-++*##*=: -####*#*******##################***.
:=+**: :*###*********##########******##***.
.-=++*= .*#####*#****###########*+***###***:
:-==+**- +#####****############+==+**###***:
.--=++**. :*###################+==+***###*#*:
.--==+#+ +##################+=++****####**-
:=-+*+. -#################+=++**#*#####**-
.-::. .*###############+++***########**+
-. +#############*++***##########**+.
:. =############++***##########*#***:
......::-:....----::.:--::... +##########=++**#############-
.::.:-:::::----===+++++=+-:=+++##+++###############=
.. ::....:....:-=+=-+*++++==+++=-====++################+
:=+=-::.:........--+===++++++*=+++====##################+
-==+++=--.:.: :.:-=++=+==+++====++=++=++################=
.:-=+++++==-:-::=-+==+==+==+==+++#=+=+##############-
.:-==+++++++############+=+=+-. .-=+#####=.
...::::::::::::......... ..... .:-=+***.
..