ANN: ThumbnailCtrl For wxPython ;-)

Hello NG,

      thanks a lot for all your kind suggestions. Regarding:

< Tacao & Harald > :

This only works here [wx2.6.1.0, msw ansi, PIL 1.1.5] if I add a
'self.TC.Refresh()' line in the demo's OnChangeOutline method.

Fixed :wink:

- Change Thumb Caption Font;

This only works if I insert the "# XXX" line below:

Fixed :wink:

No wheels here. 8^( How about adding these lines to the OnChar method:

Done... sorry, I haven't even thought about missing wheels on mices :slight_smile:

< Franz > :

1)If I set: Set Global Menu, and then select all, it changes no effect.
Only the other not selected before are selected now.

This should be fixed now. You get all thumbs selected once you choose the
"Select All" menu.

2) I select Set Global Menu => right click on one icon: Get Thumbs count

it shows 3 images

(Number of thumbs 3)
clear check on global => set check popup menu on thumbs => disable this

again =>

check on global => right click on one icon => Get Thumbs count =>
No dialog is shown anymore.

OK, this should be fixed now.

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

This is a nice suggestion. I will think about it this afternoon, and
probably I will get it working tomorrow.

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:

Thanks a lot for your comments, suggestions, bug reports and opinions.

Andrea.

···

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Restyled Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale € 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453

< Franz > :

Hello Andrea,

1)If I set: Set Global Menu, and then select all, it changes no effect.
Only the other not selected before are selected now.

This should be fixed now. You get all thumbs selected once you choose the
"Select All" menu.

Thanks, it works now.

2) I select Set Global Menu => right click on one icon: Get Thumbs count

it shows 3 images

(Number of thumbs 3)
clear check on global => set check popup menu on thumbs => disable this

again =>

check on global => right click on one icon => Get Thumbs count =>
No dialog is shown anymore.

OK, this should be fixed now.

This too :wink:

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

This is a nice suggestion. I will think about it this afternoon, and
probably I will get it working tomorrow.

Cool.

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:

Not so important, only a guess.

Maybe in right mouse menu => File Properties.

Best,

···

On Tue, 13 Dec 2005 13:45:30 +0100, andrea.gavana@agip.it wrote:
--
Franz Steinhaeusler

Or simply tooltips:
Thumb Customization: Show Size and date/time on Pointing.

···

On Tue, 13 Dec 2005 14:04:56 +0100, Franz Steinhaeusler <franz.steinhaeusler@gmx.at> wrote:

Maybe in right mouse menu => File Properties.

--
Franz Steinhaeusler

Hi. I tried the ThumbnailCtrl on Mac 10.2.8 and get the following traceback. I am using 2.6-mac-ansi. Has anyone got this working on Mac?
Many thanks.

Regards,
David

Traceback (most recent call last):
   File "ThumbnailCtrlDemo.py", line 275, in OnSetDirectory
     self.TC.ShowDir(dlg.GetPath())
   File "/Users/davidpratt/Desktop/wxSoftware/ThumbnailCtrl/ThumbnailCtrl.py", line 985, in ShowDir
     self._items.append(Thumb(self, dir, files, caption, size, lastmod))
   File "/Users/davidpratt/Desktop/wxSoftware/ThumbnailCtrl/ThumbnailCtrl.py", line 269, in __init__
     self._bitmap = wx.EmptyBitmap(-1, -1)
   File "//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/wx-2.6-mac-ansi/wx/_gdi.py", line 727, in EmptyBitmap
     val = _gdi_.new_EmptyBitmap(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "m_hBitmap" failed in ../src/mac/carbon/bitmap.cpp(182): Unable to create GWorld context

···

andrea.gavana@agip.it wrote:

Hello NG,

      thanks a lot for all your kind suggestions. Regarding:

< Tacao & Harald > :

This only works here [wx2.6.1.0, msw ansi, PIL 1.1.5] if I add a
'self.TC.Refresh()' line in the demo's OnChangeOutline method.

Fixed :wink:

- Change Thumb Caption Font;

This only works if I insert the "# XXX" line below:

Fixed :wink:

No wheels here. 8^( How about adding these lines to the OnChar method:

Done... sorry, I haven't even thought about missing wheels on mices :slight_smile:

< Franz > :

1)If I set: Set Global Menu, and then select all, it changes no effect.
Only the other not selected before are selected now.

This should be fixed now. You get all thumbs selected once you choose the
"Select All" menu.

2) I select Set Global Menu => right click on one icon: Get Thumbs count

it shows 3 images

(Number of thumbs 3)
clear check on global => set check popup menu on thumbs => disable this

again =>

check on global => right click on one icon => Get Thumbs count =>
No dialog is shown anymore.

OK, this should be fixed now.

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

This is a nice suggestion. I will think about it this afternoon, and
probably I will get it working tomorrow.

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:

Thanks a lot for your comments, suggestions, bug reports and opinions.

Andrea.

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Restyled Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale € 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

David Pratt wrote:

Hi. I tried the ThumbnailCtrl on Mac 10.2.8 and get the following traceback. I am using 2.6-mac-ansi. Has anyone got this working on Mac?
Many thanks.

Regards,
David

Traceback (most recent call last):
  File "ThumbnailCtrlDemo.py", line 275, in OnSetDirectory
    self.TC.ShowDir(dlg.GetPath())
  File "/Users/davidpratt/Desktop/wxSoftware/ThumbnailCtrl/ThumbnailCtrl.py", line 985, in ShowDir
    self._items.append(Thumb(self, dir, files, caption, size, lastmod))
  File "/Users/davidpratt/Desktop/wxSoftware/ThumbnailCtrl/ThumbnailCtrl.py", line 269, in __init__
    self._bitmap = wx.EmptyBitmap(-1, -1)
  File "//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/wx-2.6-mac-ansi/wx/_gdi.py", line 727, in EmptyBitmap
    val = _gdi_.new_EmptyBitmap(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "m_hBitmap" failed in ../src/mac/carbon/bitmap.cpp(182): Unable to create GWorld context

The Mac doesn't allow a bitmap with dimensions less than 1. Try changing that line to use wx.EmptyBitmap(1, 1)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!