uninvited message box with wxMediaCtrl from 2.9.1.1

Dear List,

After switching to wxPython 2.9.1.1 (and using Mac OS X with the
Carbon version of wxPython, with Python 2.6) every time I start a
program that uses wx.MediaCtrl, a message box pops up that says:
“Python Information wxQTMediaBackend”. I would greatly prefer this
not happen, but I can't figure out how to stop it.

Oddly, though, I don't see this behavior when running the wxPython
demo, so I guess there's some fix to this, but I can't figure it out.
Below I show an example of a simple stand-alone program that causes
the dialog to appear.

Thanks,
Tom

import wx
import wx.media

class MyFrame(wx.Panel):

    def __init__(self, parent):
        wx.Panel.__init__(self, parent, -1)
        self.player = wx.media.MediaCtrl(self)

app = wx.PySimpleApp()
frame = wx.Frame(None, -1, "player demo", size=(250, 100))
MyFrame(frame)
frame.Show(True)
app.MainLoop()

If I recall, 2.9 requires you to call wx.media.PreMediaCtrl() to instantiate it, and then load it afterwards with wx.media.Load()
(I don’t have it installed right now to verify; sorry.)
I think the wx documenatation that shipped with 2.9 has that documented.

···

On Mon, Jan 3, 2011 at 10:30 AM, Tom tom066886@gmail.com wrote:

Dear List,

After switching to wxPython 2.9.1.1 (and using Mac OS X with the

Carbon version of wxPython, with Python 2.6) every time I start a

program that uses wx.MediaCtrl, a message box pops up that says:

“Python Information wxQTMediaBackend”. I would greatly prefer this

not happen, but I can’t figure out how to stop it.

Oddly, though, I don’t see this behavior when running the wxPython

demo, so I guess there’s some fix to this, but I can’t figure it out.

Below I show an example of a simple stand-alone program that causes

the dialog to appear.

Thanks,

Tom

import wx

import wx.media

class MyFrame(wx.Panel):

def __init__(self, parent):

    wx.Panel.__init__(self, parent, -1)

    self.player = wx.media.MediaCtrl(self)

app = wx.PySimpleApp()

frame = wx.Frame(None, -1, “player demo”, size=(250, 100))

MyFrame(frame)

frame.Show(True)

app.MainLoop()

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

I think that's a wxLog message so in the demo it is probably being written to the message pane instead of showing the dialog. In your application you can set a new active log target so the messages will go elsewhere, or you can temporarily suppress the log messages by creating and holding on to an instance of wx.LogNull.

···

On 1/3/11 10:30 AM, Tom wrote:

Dear List,

After switching to wxPython 2.9.1.1 (and using Mac OS X with the
Carbon version of wxPython, with Python 2.6) every time I start a
program that uses wx.MediaCtrl, a message box pops up that says:
�Python Information wxQTMediaBackend�. I would greatly prefer this
not happen, but I can't figure out how to stop it.

Oddly, though, I don't see this behavior when running the wxPython
demo, so I guess there's some fix to this, but I can't figure it out.
Below I show an example of a simple stand-alone program that causes
the dialog to appear.

--
Robin Dunn
Software Craftsman

I think that's a wxLog message so in the demo it is probably being
written to the message pane instead of showing the dialog. In your
application you can set a new active log target so the messages will go
elsewhere, or you can temporarily suppress the log messages by creating
and holding on to an instance of wx.LogNull.

--
Robin Dunn
Software Craftsmanhttp://wxPython.org

Robin -

I used the wx.LogNull as a quick test and it fixed the problem. Many
thanks.

Tom