Skip to content

I made this Spinner dropdown displaying flag images of 20 countries: took my a whole afternoon trying to figure this out.

License

Notifications You must be signed in to change notification settings

salvecom333/flag_dropdown_kivy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flag_dropdown_kivy

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

                              .--===-:.                                           
                           .+*########**+:                                        
                          =*#############*=                                       
                         +################*.                                      
                        .*################*=                                      
                         .+*++++****######*+.                                     
                          .===-==++****##**+:                                     
                           -===+********#**+.                                     
                           .+*=*+++=++******:                                     
                            :--+++==+********+.                                   
                             -=+**++****##*###*=-:.                               
                              :=+****##########*****+=-.                          
                                =++*#####**####*********+-.                       
                             .=+***#******#####************=-                     
                           :+####*###+++*####**#*************+.                   
                        .-+*######*##*=*####**#******###******+.                  
                       -*#**##**#***##*###***#***##*###********=                  
                     .-**#####******####****#****#####*#*******+.                 
                  -+**########****#*##**=**##***######***#*****+.                 
                -+**##########***####***:+**#*#######***##*****+.                 
               =****##########***###*******#########***##******+.                 
             :=**#########%###***###********########**##*******+.                 
            :=++*####%%%%%%###***###*******########***##**##***=                  
            -++*###%#%%%%%%##*######*******########**######*#**-                  
            -++*######+=----*#########****#########****#####***.                  
            -++*##*=:       -####*#*******##################***.                  
            :=+**:          :*###*********##########******##***.                  
          .-=++*=           .*#####*#****###########*+***###***:                  
         :-==+**-            +#####****############+==+**###***:                  
        .--=++**.            :*###################+==+***###*#*:                  
        .--==+#+              +##################+=++****####**-                  
         :=-+*+.              -#################+=++**#*#####**-                  
          .-::.               .*###############+++***########**+                  
            -.                 +#############*++***##########**+.                 
            :.                 =############++***##########*#***:                 

......::-:....----::.:--::... +##########=++**#############-
.::.:-:::::----===+
++++=+-:=+++##+++###############=
.. ::....:....:-=+=-+*++++==+++=-====++################+
:=+=-::.:........--+
===++++++*=+++====##################+
-==+++=--.:.: :.:-=++=+==+++====++=++=++################=
.:-=+++++==-:-::=-+
==+
==+
==+==+++#=+=+##############-
.:-==+++++++############+=+=+-. .-=+#####=.
...::::::::::::......... ..... .:-=+***.
..

About

I made this Spinner dropdown displaying flag images of 20 countries: took my a whole afternoon trying to figure this out.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages