Fun with Flags - PNG

Rolf presents: Fun with Flags - A homage to The Big Bang Theory.

flags_iso3166.py is a series of base64 encoded small png images of Country’s Flags and Regional Flags
with a small set of country details, capital, languages etc and standard UTC timezone information
See:
List of ISO 3166 country codes - Wikipedia

These images are aimed at being used in menus, BitmapComboBox, ListCtrl, TreeCtrl etc. wherever a bitmap can be inserted,
to add some clarity and va-va-voom, to your code.

There are currently 249 Country flags and 315 Regional flags (at last count) in flags_iso3166svg.py.
Regional flags are for Australia, Canada, Germany, Spain, France, India, Italy, Great Britain, Japan, Russia and the USA

The use of small PNG images keeps the size down, if you do not require to able to expand the images to any great extent.
If you do, see Fun with Flags SVG

flags_png_package.zip (1.0 MB)

Good job, Rolf! That’s a neat experiment

1 Like

Thank you Mike.
Coming from someone who has made such a large contribution themselves, it means a lot.
I can’t count the number of times, I’ve been helped by Mouse Vs Python.

Rolf

You’re welcome. Glad I could help!

Fun with Flags gets bumped to be Windows friendly and Emoji code flags have been added for those of you on Linux.
For those on Windows, I think you may have to wait for the next version of wxPython.

flags_png_package.zip (1.0 MB)