I modified my foldpanel code a bit (attached)

Hello list,

Just a few changes from the foldpanel code I sent a few weeks ago:

* I noticed I often wanted to add more than one panel to a FoldPanel control, so FoldPanel now sports an AddPage method. This is handy for banging lots of controls into separate panels and then grouping the panels using a foldpanel.
* I now use base64 encoding for storing the png images, it takes a lot less space then using binary strings.
* Other than that (todo), the foldpanel title bar could use some "..." when width restrictions prevent the whole title to be displayed, but those aren't essential changes.

I also attached the latest version of the utility I used to generate images.py from png images. Just put it in a folder with lots of png images, run and move images.py to wherever you need it (won't overwrite an existing images.py in the png directory)

Cheers,
Egor

So far, code only tested in windows.

FoldPanel.py (8.72 KB)

convert.py (2.51 KB)