Hello all -
I’m writing a little app to display and optionally download audiobook files from this site: http://audiobooks.ulitka.com I’m using urllib2 and BeautifulSoup to navigate the site and populate a TreeCtrl; however, I want the nodes to have checkboxes, and to carry enough information that I can easily download selected files. Looking at my options, it looks like the CustomTreeCtrl is my friend… Unfortunately, I’m having some difficulty understanding the demo: it’s HUGE. The longer I look at it, the dumber I feel.
So I decided to swallow my pride and ask if anyone can tell me what I need to do to add a checkbox to each node (and track whether it’s checked or not), and how to associate non-displayed data with each node - for example, the “content” of anchor elements is nice human-readable UTF-8 Cyrillic, but the “href” looks like this:
“%d0%90%d0%b2%d0%b5%d1%80%d1%87%d0%b5%d0%bd%d0%ba%d0%be%20%d0%90%d1%80%d0%ba%d0%b0%d0%b4%d0%b8%d0%b9/”
so I want to hide it.
I gather that I need to store two images, for checked and unchecked states, but that's about as far as I got. I know that everything I need to know is in the demo somewhere, but my head hurts...
Alternatively, can someone point me to documentation?
Even more alternatively, is there a better way to do what I need to do?
Thanks!