Has MacReopenApp changed?

I noticed that after upgrading from 2.8.12.1 to 3.0.1.1 that the
MacReopenApp event handler no longer appears to be getting called. Was
there any change made that I need to make to get it working again?

This example previously worked, but doesn't appear to be under 3 -
clicking on the dock icon isn't calling the handler.

import wx

class App(wx.App):

    def OnInit(self):
        self.frame = wx.Frame(None)
        self.frame.Show()
        return True

    def MacReopenApp(self):
        print ("reopen")
        self.frame.Raise()

if __name__ == "__main__":
    app = App(False)
    app.MainLoop()

Paul Wiseman wrote:

I noticed that after upgrading from 2.8.12.1 to 3.0.1.1 that the
MacReopenApp event handler no longer appears to be getting called. Was
there any change made that I need to make to get it working again?

This example previously worked, but doesn't appear to be under 3 -
clicking on the dock icon isn't calling the handler.

import wx

class App(wx.App):

     def OnInit(self):
         self.frame = wx.Frame(None)
         self.frame.Show()
         return True

     def MacReopenApp(self):
         print ("reopen")
         self.frame.Raise()

if __name__ == "__main__":
     app = App(False)
     app.MainLoop()

It looks like the other apple-event methods are broken too. :frowning: I'll try to debug this soon.

···

--
Robin Dunn
Software Craftsman

Paul Wiseman wrote:

I noticed that after upgrading from 2.8.12.1 to 3.0.1.1 that the
MacReopenApp event handler no longer appears to be getting called. Was
there any change made that I need to make to get it working again?

This example previously worked, but doesn't appear to be under 3 -
clicking on the dock icon isn't calling the handler.

import wx

class App(wx.App):

     def OnInit(self):
         self.frame = wx.Frame(None)
         self.frame.Show()
         return True

     def MacReopenApp(self):
         print ("reopen")
         self.frame.Raise()

if __name__ == "__main__":
     app = App(False)
     app.MainLoop()

It looks like the other apple-event methods are broken too. :frowning: I'll try to
debug this soon.

Thanks Robin I really appreciate it! If there's anyway I can help
please let me know :slight_smile:

···

On 24 September 2014 02:05, Robin Dunn <robin@alldunn.com> wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org

--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.