Discussion:
Has MacReopenApp changed?
Paul Wiseman
2014-09-19 10:39:33 UTC
Permalink
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()
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robin Dunn
2014-09-24 01:05:15 UTC
Permalink
Post by Paul Wiseman
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
self.frame = wx.Frame(None)
self.frame.Show()
return True
print ("reopen")
self.frame.Raise()
app = App(False)
app.MainLoop()
It looks like the other apple-event methods are broken too. :-( I'll
try to debug this soon.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Paul Wiseman
2014-09-24 09:13:45 UTC
Permalink
Post by Paul Wiseman
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
self.frame = wx.Frame(None)
self.frame.Show()
return True
print ("reopen")
self.frame.Raise()
app = App(False)
app.MainLoop()
It looks like the other apple-event methods are broken too. :-( I'll try to
debug this soon.
Thanks Robin I really appreciate it! If there's anyway I can help
please let me know :)
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...