On 9/18/12 9:18 PM, Mark Livingstone wrote:
> Hi Guys,
>
> I have:
>
> wx.SystemOptions.SetOptionInt("mac.textcontrol-use-spell-checker", 1)
>
> in my code and it was working. However I have only just noticed it seems to
> have disappeared from the Edit menu, and been replaced by a Start Dictation
> menu pick.
>
> I am using the current Mac ports python 2.7.3, wxpython-devel 2.9.4 under
> Mountain Lion 10.8.1 which has probably happened since I last noticed it.
>
> Has this happened for anyone else, or is it just me?
You should probably create a ticket for this one. I experimented a
little on 10.7 and found that it works with or without the system option
set, but that I had to select the word to spell-check it. But I could
turn on spellcheck-as-you-type from the Spelling and Grammar submenu of
the text widget's context menu, and also open the spell-check dialog
from there.
I'm not sure if there is anything different in how the native bits work,
or how the wx bits are supposed to work in 10.8 as I haven't installed
it yet. So creating a ticket at
trac.wxwidgets.org will probably get
some more answers than what I have.
>
> Also recently I have started getting:
>
> swig/python detected a memory leak of type 'wxFrame *', no destructor found.
>
> when I close my program, but I don't get any traceback, and haven't added
> any new frames that I recall? I did load the WIT but it was not obvious to
> me if it could be used to help me in this case?
That error usually happens when the Python proxy object thinks that it
owns the C++ object, and when the proxy is GC'd and it sees that there
is no destructor defined for the C++ object (that it knows about anyway)
it complains about it with that message. However all wxPython widget
classes will usually set the proxy's thisown attribute to False so that
it doesn't think that it owns the C++ object so that shouldn't normally
happen. Are you using XRC or 2-phase create for some other reason but
are not calling PostCreate?
--
Robin Dunn
Software Craftsman
http://wxPython.org