[wxPython-users] I modified my foldpanel code a bit (attached)
by Egor Zindy other posts by this author
Aug 31 2005 4:30AM messages near this date
RE: [wxPython-users] Finding right width of TextCtrl
|
[wxPython-users] Re: Diffrent colors for StyledTextCtrl margin?
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.
Attachments:
convert.py
FoldPanel.py
unknown1
unknown2
|