mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Tweak some comments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,25 +17,10 @@
|
||||
|
||||
%MappedType wxString
|
||||
{
|
||||
// TODO: Will something like this work (and be a good idea) in order to
|
||||
// share the conversion code here and in the utlities module?
|
||||
//%ConvertToTypeCode
|
||||
// // Code to test a PyObject for compatibility with wxString
|
||||
// if (!sipIsErr) {
|
||||
// if (PyString_Check(sipPy) || PyUnicode_Check(sipPy))
|
||||
// return TRUE;
|
||||
// return FALSE;
|
||||
// }
|
||||
//
|
||||
// // Convert a compatible PyObject to a wxString
|
||||
// wxString str = Py2wxString(sipPy, true, *sipIsErr);
|
||||
// if (*sipIsErr)
|
||||
// return 0;
|
||||
// *sipCppPtr = new wxString(str);
|
||||
// return sipGetState(sipTransferObj);
|
||||
//%End
|
||||
|
||||
|
||||
|
||||
// TODO: It is still possible to have a wx build that uses utf-8 inside
|
||||
// wxString, so we should probably be checking wxUSE_UNICODE_WCHAR or
|
||||
// wxUSE_UNICODE_UTF8 for this conversion.
|
||||
|
||||
%ConvertToTypeCode
|
||||
// Code to test a PyObject for compatibility with wxString
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include "wxpybuffer.h"
|
||||
%End
|
||||
|
||||
// TODO: Use new buffer APIs and memoryview or bytearray objects?
|
||||
|
||||
%MappedType wxPyBuffer
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user