in reply to Re: Display new widgets after MainLoop
in thread Display new widgets after MainLoop

I looked at HList but it wasn't clear that I could easily create a scrolling grid of thumbnails with it. I want a rectangular area with rows and columns of thumbnails that I can select and operate on. (Ultimately I'd like to be able to remove thumbnails as operations are completed but that's for later.)
  • Comment on Re^2: Display new widgets after MainLoop

Replies are listed 'Best First'.
Re^3: Display new widgets after MainLoop
by zentara (Cardinal) on Aug 11, 2010 at 19:15 UTC
    You can use Hlist for thumbnails, see ztkdb and ztkdb-sql

    HList is the most configurable list in Tk.

    You can also use Gtk2's various list widgets, which accept pixbuf fields.


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku

      The page you provided had dead links, but I found it at http://www.perlmonks.org/index.pl?displaytype=print;node_id=338291. It's dying with

      Can't call method "get" on an undefined value at ztkdb14a.pl line 1715.

      when I run it in the command window (on Windows 7.)

      I'll start looking at it to see if I can learn what it has to teach me. Thanks!!!

      Update: I got the window to open after moving the directory where admin privileges weren't required and creating admin.jpg and default.jpg in the thumbs directory. The HList looks like a one dimensional list but maybe it'll be clear how to extend it to multiple columns...

        Sorry.... moved servers....and needed to change ztkdb to ZTKDB in the path. Links are fixed now. The plain ztkdb is easier to understand than ztkdb-sql. You need Storable for it though.

        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku