TheMimeTypesManager problem

Re: [wxPython-users] TheMimeTypesManager problem
I met this problem too.

Actually it is caused by wrong configuration of my computer.

If Windows itself cannot get the icon, nor can wxPython, of course.

But I do think there should be a way to suppress the message box.

The demo simply prints a log instead of showing the annoying message box.

But I am still wondering how it is done.

···

Robin Dunn robin@alldunn.com wrote:

What is the message?

Is there a way to disable that error dialog message?

The demo does it like this:

  info = mime.GetIconInfo()
  if info is None:
          # do something different
  else:
          icon, file, idx = info
          if icon.Ok():
                  # do something with the icon
          else:
                  # do something different

I think this is done setting the Log_SetActiveTarget

Alessandro Crugnola - sephiroth

···

---------------------------------------------
Macromedia Flash Team Volunteer
http://www.macromedia.com/go/team
Flash && PHP developer
alessandro@sephiroth.it

*relax with SEPY http://www.sf.net/projects/sepy
---------------------------------------------

::-----Messaggio originale-----
::Da: Kun Fang [mailto:fangkun@nortel.com]
::Inviato: mercoledì 9 marzo 2005 9.50
::a: wxPython-users@lists.wxwidgets.org
::Oggetto: Re: [wxPython-users] TheMimeTypesManager problem
::
::I met this problem too.
::Actually it is caused by wrong configuration of my computer.
::If Windows itself cannot get the icon, nor can wxPython, of course.
::
::But I do think there should be a way to suppress the message box.
::The demo simply prints a log instead of showing the annoying
::message box.
::But I am still wondering how it is done.
::
::Robin Dunn <robin@alldunn.com> wrote:
::> What is the message?
::>
::> Is there a way to disable that error dialog message?
::>
::> The demo does it like this:
::>
::> info = mime.GetIconInfo()
::> if info is None:
::> # do something different
::> else:
::> icon, file, idx = info
::> if icon.Ok():
::> # do something with the icon
::> else:
::> # do something different
::>
::
::