On Tue, May 28, 2013 at 2:04 PM, Charles Hartman wrote:
> Right you are -- self.Destroy() does the job.
> I did read the other references you gave -- thanks for those. I think one
> confusion may be that changes (in Python, in wxPython, maybe in OSX?) may
> have changed the ways to handle this,
Right you are -- self.Destroy() does the job.
I did read the other references you gave -- thanks for those. I think one
confusion may be that changes (in Python, in wxPython, maybe in OSX?) may
have changed the ways to handle this, and some of the old approaches linger
on the web.
On Tue, May
On Tue, May 28, 2013 at 1:25 PM, Charles Hartman wrote:
> My app has only one frame, so for me it's not an issue.
fair enough.
> With the code I showed, the app quits if I press cmd-Q, select Quit from the
> app menu, or close the only window. That's fine—though I wouldn't mind if
> (like most
My app has only one frame, so for me it's not an issue.
With the code I showed, the app quits if I press cmd-Q, select Quit from
the app menu, *or* close the only window. That's fine—though I wouldn't
mind if (like most Mac apps) if closing the only window did *not* quit the
app. What I don't wa
On Tue, May 28, 2013 at 9:50 AM, Charles Hartman wrote:
\
> I included these lines in the __init__ for my app's Frame (or rather, in a
> long SetupGUI method that is called by __init__):
>
> item = self.fileMenu.Append(wx.ID_EXIT,'E&xit','Terminate the
> program')
> self.Bind(wx.EV
Chris, brilliant! Many thanks!
I included these lines in the __init__ for my app's Frame (or rather, in a
long SetupGUI method that is called by __init__):
item = self.fileMenu.Append(wx.ID_EXIT,'E&xit','Terminate the
program')
self.Bind(wx.EVT_MENU, self.OnClose, item)
Then far
On 28/05/2013 18:11, Charles Hartman wrote:
Thanks, Chris. My app has a wx.Frame (subclassed, of course). It's
there that I've tried Binding EVT_CLOSE, but a breakpoint in the
method I find is never reached at all, including when I use menu or
keyboard to Quit. On way I've tried is this snip
On Tue, May 28, 2013 at 9:11 AM, Charles Hartman wrote:
> Thanks, Chris. My app has a wx.Frame (subclassed, of course). It's there
> that I've tried Binding EVT_CLOSE, but a breakpoint in the method I find is
> never reached at all, including when I use menu or keyboard to Quit. On way
> I've t
Just found this:
http://wiki.wxwidgets.org/WxMac-specific_topics#When_to_close_the_program
maybe it will help.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle,
Thanks, Chris. My app has a wx.Frame (subclassed, of course). It's there
that I've tried Binding EVT_CLOSE, but a breakpoint in the method I find is
never reached at all, including when I use menu or keyboard to Quit. On
way I've tried is this snippet I got from wxPyWiki. (The line that
purport
On Mon, May 27, 2013 at 1:23 AM, Ronald Oussoren wrote:
> It's unlikely that support for external dependencies will improve a lot
> in the near future unless someone does the work and provides a clear and
> usable specification, preferably with an implementation.
well, Gattai may be a good start
On Tue, May 28, 2013 at 5:33 AM, Charles Hartman wrote:
> When I updated my app, I switched from the deprecated wx.PySimpleApp, which
> had the right default behavior on Mac, to wx.App, which apparently doesn't.
hmm -- I'm pretty sure that PYSipleApp is deprecated because it
doesn't actually do a
When I updated my app, I switched from the deprecated wx.PySimpleApp, which
had the right default behavior on Mac, to wx.App, which apparently doesn't.
(The docs say "You should normally exit the main loop (and the
application) by deleting the top window." What's "normal" for a Windows
user would
Thanks, but no. My app never touches EV_CLOSE, and it doesn't do threading
at all.
On Tue, May 28, 2013 at 7:34 AM, Paul Wiseman wrote:
> On 27 May 2013 16:26, Charles Hartman wrote:
>
>> I'm coming back to all of this after years away, so I'm sure I'm missing
>> something simple. I've broug
On 27 May 2013 16:26, Charles Hartman wrote:
> I'm coming back to all of this after years away, so I'm sure I'm missing
> something simple. I've brought an old app into the current world:
>
>Python 2.7.5
>OS 10.8.3
>wxPython 2.9.4.0
>py2app 0.7.3
>
> and I rebuilt my setup.py to
15 matches
Mail list logo