I have been having a problem under windows where opening some of my
older tiff files pops up an error message. I discovered it did this
regardless of the wxLog that I had set.
Looking at the source, it seems that in src/tiff/tif_win32.c we have the
line
TIFFErrorHandler _TIFFwarningHandler = Win32WarningHandler;
where Win32WarningHandler is a function that directly access the win32
api to pop up a dialog box.
My question is: would it be possible to replace this somehow with a call
to the wxLog functions? I can understand leaving it this way for errors,
but for warnings this is a big hassle.
On a somewhat unrelated note, I would love to fix this in my own copy at
least but don't have a copy of MSVC, does anyone know of some
documentation for compiling under mingw?
I have been having a problem under windows where opening some of my
older tiff files pops up an error message. I discovered it did this
regardless of the wxLog that I had set.
Looking at the source, it seems that in src/tiff/tif_win32.c we have the
line
TIFFErrorHandler _TIFFwarningHandler = Win32WarningHandler;
where Win32WarningHandler is a function that directly access the win32
api to pop up a dialog box.
My question is: would it be possible to replace this somehow with a call
to the wxLog functions? I can understand leaving it this way for errors,
but for warnings this is a big hassle.
Yes, it can be changed. The tiff library has an API for setting a callback function for handing the errors/warnings. I thought I had submitted a bug report about this already, but I can't find it now. Please go ahead and submit one.
On a somewhat unrelated note, I would love to fix this in my own copy at
least but don't have a copy of MSVC, does anyone know of some
documentation for compiling under mingw?
wxWindows can be built with mingw, and there are docs out on the web somewhere for building Python extensions with mingw, but AFAIK the two havn't been brought together for wxPython yet. wxPython's setup.py asusmes that it is using MSVC so it will need some tweaking to be made to work.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I would like to have a popup menu when I right click on an item in the
wxListCtrl where you can choose rename. I have tried to use
wxListCtrl::EditLabel but get following error:
AttributeError: wxListCtrl instance has no attribute 'EditLabel'
I would like to have a popup menu when I right click on an item in the
wxListCtrl where you can choose rename. I have tried to use
wxListCtrl::EditLabel but get following error:
AttributeError: wxListCtrl instance has no attribute 'EditLabel'
Originally the wxListCtrl used on non-MSW platforms didn't have EditLabel so it was ifdef'd out. I see it does have it now so I'll add it. In the meantime you'll need to open a dialog or something to do the edit.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!