ANN: ThumbnailCtrl For wxPython ;-)

and display option for showing size and file date also. :slight_smile:

Mhm... where this information could be displayed? Above the
thumbs? Below
the caption? Somewhere else? I don't think it would be very
difficult to
implement it, I am just asking about "visual" suggestions :wink:

I didn't try your control yet, but perhaps you could use a popup tooltip
for information like this?

Greetlings, HR

Hello NG,

    Thanks for your nice suggestions about ThumbnailCtrl.

Regarding the suggestion from Franz:

A directory combobox maybe on the top would be nice
(with history entries)

Done. Now you have a wx.Combobox at the top of ThumbnailCtrl, that can be
shown or hidden, as you like. If you hide it (the default), ThumbnailCtrl
will look exactly as it looked in yesterday's implementation. This combobox
has history capabilities, which means that the directory you have visited
will be listed in this combobox, the latter in time is the first in the
combobox. Obviously, the wx.EVT_COMBOBOX event calls ThumbnailCtrl to change
the working directory. Please run the demo to see how ThumbnailCtrl behaves
when you enable/disable the wx.ComboBox.

and display option for showing size and file date also. :slight_smile:

Thanks for the suggestion from Franz and Henning, I have implemented this
functionality using wx.ToolTip. The tooltip shows information about file
name, file size, last modification date and thumb size. This functionality
may be improved in some way, though I haven't still realized *how* to
improve it... Please run the demo to see how ThumbnailCtrl behaves when you
enable/disable the thumbs tooltips.

You can get the latest source code with the demo in the usual place:

http://xoomer.virgilio.it/infinity77/eng/freeware.html#thumbnailctrl

or, if you prefer in italian :wink: :

http://xoomer.virgilio.it/infinity77/ita/freeware.html#thumbnailctrl

Thanks for all your suggestions and ideas.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77

ThumbnailCtrl is very nice - thank you.

The hardest thing for you might be trying to avoid adding features
until it becomes a full-fledged photo viewer …

Andrea Gavana wrote:

and display option for showing size and file date also. :)
Thanks for the suggestion from Franz and Henning, I have implemented this
functionality using wx.ToolTip. The tooltip shows information about file
name, file size, last modification date and thumb size. This functionality
may be improved in some way, though I haven't still realized *how* to
improve it... Please run the demo to see how ThumbnailCtrl behaves when you
enable/disable the thumbs tooltips.

how to improve it …

you could provide the ability to determine which fields are shown
(show=“name, modified date”) in the tooltip

you could extract the EXIF info from the file and each of those fields
could be optionally shown in the tooltip

(show=“name,date taken,aperture”)

···
-- Alex Tweedly

http://www.tweedly.net

Why not?
Let the ThumbnailCtrlDemo become a usable (and useful)
platform-independent photo viewer. :slight_smile:

I have to agree with Alex, the ThumbnailCtrl seems to be developing a
serious case of featuritis. All the options are useful, no doubt about
that - but its getting crowded.
At least that's what it looks like to me.
I think that ThumbnailCtrl has reached a turning point from a quick
hack (in the positive sense) to either a lean, useful module or a
bloated piece of code that tries to do everything.

After spending a few minutes thinking about possible uses for
"ThumbnailCtrl" I found two cases that could use the widget best if it
would be possible to just give it a list of filenames and have their
thumbnails shown:
- a recursive view, showing all pictures in a directory and in all its
subdirectories
- a picture archiver using "Labels" (like http://picasa.google.com/)

Harald Stürzebecher

···

2005/12/13, Alex Tweedly <alex@tweedly.net>:

ThumbnailCtrl is very nice - thank you.

The hardest thing for you might be trying to avoid adding features until it
becomes a full-fledged photo viewer ....

I have to disagree... python is good at evaluating "IF" instructions.... so if you have a flag that can turn a certain feature off... the more features there are the better! Ok... some refactoring might be required sometime in the future... BUT in the meanwhile... the users of the ThumbnailCtrl are the one that are right! If someone uses the control, sees something missing, asks for it and Andrea or someone else implements it... ThumbnailCtrl becomes better... just because that user will be happier... kudos to Andrea!

how would you describe bloat?

Peter

···

On Wed, 14 Dec 2005 04:14:12 +0200, Harald Stürzebecher <harald.stuerzebecher@gmail.com> wrote:

2005/12/13, Alex Tweedly <alex@tweedly.net>:

ThumbnailCtrl is very nice - thank you.

The hardest thing for you might be trying to avoid adding features until it
becomes a full-fledged photo viewer ....

Why not?
Let the ThumbnailCtrlDemo become a usable (and useful)
platform-independent photo viewer. :slight_smile:

I have to agree with Alex, the ThumbnailCtrl seems to be developing a
serious case of featuritis. All the options are useful, no doubt about
that - but its getting crowded.
At least that's what it looks like to me.
I think that ThumbnailCtrl has reached a turning point from a quick
hack (in the positive sense) to either a lean, useful module or a
bloated piece of code that tries to do everything.

Hello NG,

   Thanks for your nice suggestions about ThumbnailCtrl.

Regarding the suggestion from Franz:

Hello Andrea,

A directory combobox maybe on the top would be nice
(with history entries)

Done. Now you have a wx.Combobox at the top of ThumbnailCtrl, that can be
shown or hidden, as you like. If you hide it (the default), ThumbnailCtrl
will look exactly as it looked in yesterday's implementation. This combobox
has history capabilities, which means that the directory you have visited
will be listed in this combobox, the latter in time is the first in the
combobox.

cool, thank you, I like this feature.
I always find it convenient, to have a fast access for
such "last used directories".

Obviously, the wx.EVT_COMBOBOX event calls ThumbnailCtrl to change
the working directory. Please run the demo to see how ThumbnailCtrl behaves
when you enable/disable the wx.ComboBox.

and display option for showing size and file date also. :slight_smile:

Thanks for the suggestion from Franz and Henning, I have implemented this
functionality using wx.ToolTip. The tooltip shows information about file
name, file size, last modification date and thumb size. This functionality
may be improved in some way, though I haven't still realized *how* to
improve it... Please run the demo to see how ThumbnailCtrl behaves when you
enable/disable the thumbs tooltips.

I like it.

One other thing:

If I choose under more options another zoom factor (say 2),
then press the button "Set Zoom Factor", nothing happens,
(the thumbs stay unchanged).

···

On Tue, 13 Dec 2005 22:15:57 +0100, "Andrea Gavana" <andrea_gavana@tin.it> wrote:

--
Franz Steinhaeusler

Or use less lines and make them broader, so the display
is somewhat consistend:

test.tif->12 Dec 2005->11:21:49->32.111->(230,197)
-----------------------------------------^^^^^^ (here the total size, not the thumb size)

or maybe:
test.tif | 12 Dec 2005 | 11:21:49 | 32.111 | (230,197)

-> (tabs for justifying the display, so if you change from one
thumb to another, the display of tooltips doesn't always jumps to
much in the broad (only a guess)?)

···

On Tue, 13 Dec 2005 22:19:39 +0000, Alex Tweedly <alex@tweedly.net> wrote:

Thanks for the suggestion from Franz and Henning, I have implemented this
functionality using wx.ToolTip. The tooltip shows information about file
name, file size, last modification date and thumb size. This functionality
may be improved in some way, though I haven't still realized *how* to
improve it... Please run the demo to see how ThumbnailCtrl behaves when you
enable/disable the thumbs tooltips.

how to improve it .....

you could provide the ability to determine which fields are shown
(show="name, modified date") in the tooltip

--
Franz Steinhaeusler

ThumbnailCtrl is very nice - thank you.

The hardest thing for you might be trying to avoid adding features until it
becomes a full-fledged photo viewer ....

Why not?
Let the ThumbnailCtrlDemo become a usable (and useful)
platform-independent photo viewer. :slight_smile:

I fully agree; It is already useable yet.

I have to agree with Alex, the ThumbnailCtrl seems to be developing a
serious case of featuritis. All the options are useful, no doubt about
that - but its getting crowded.

I would say, let the demo as it is (from the scope of functionalities),
and then there is the possibility to create a
AC/DC, XnView, irfan view, cornice like (take the best
features from them) picture viewer. :wink:

···

On Wed, 14 Dec 2005 03:14:12 +0100, Harald Stürzebecher <harald.stuerzebecher@gmail.com> wrote:

2005/12/13, Alex Tweedly <alex@tweedly.net>:

--
Franz Steinhaeusler

What about using the statusbar (there should be enough place
for displaying also EXIF data), when hovering over a thumbnail
or selecting one?

···

On Wed, 14 Dec 2005 10:22:58 +0100, Franz Steinhaeusler <franz.steinhaeusler@gmx.at> wrote:

On Tue, 13 Dec 2005 22:19:39 +0000, Alex Tweedly <alex@tweedly.net> wrote:

Thanks for the suggestion from Franz and Henning, I have implemented this
functionality using wx.ToolTip. The tooltip shows information about file
name, file size, last modification date and thumb size. This functionality
may be improved in some way, though I haven't still realized *how* to
improve it... Please run the demo to see how ThumbnailCtrl behaves when you
enable/disable the thumbs tooltips.

how to improve it .....

you could provide the ability to determine which fields are shown
(show="name, modified date") in the tooltip

Or use less lines and make them broader, so the display
is somewhat consistend:

test.tif->12 Dec 2005->11:21:49->32.111->(230,197)
-----------------------------------------^^^^^^ (here the total size, not the thumb size)

or maybe:
test.tif | 12 Dec 2005 | 11:21:49 | 32.111 | (230,197)

-> (tabs for justifying the display, so if you change from one
thumb to another, the display of tooltips doesn't always jumps to
much in the broad (only a guess)?)

--
Franz Steinhaeusler

I would say, let the demo as it is (from the scope of functionalities),
and then there is the possibility to create a
AC/DC,

Of course not the rockband, I meant ACDSee.

···

On Wed, 14 Dec 2005 10:27:27 +0100, Franz Steinhaeusler <franz.steinhaeusler@gmx.at> wrote:

XnView, irfan view, cornice like (take the best
features from them) picture viewer. :wink:

--
Franz Steinhaeusler