reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -883,12 +883,38 @@ PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
|
|||||||
return PyList_New(0);
|
return PyList_New(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
wxLocale *new_wxLocale(int language,int flags){
|
wxLocale *new_wxLocale(int language,int flags){
|
||||||
|
wxLocale* loc;
|
||||||
if (language == -1)
|
if (language == -1)
|
||||||
return new wxLocale();
|
loc = new wxLocale();
|
||||||
else
|
else
|
||||||
return new wxLocale(language, flags);
|
loc = new wxLocale(language, flags);
|
||||||
|
// Python before 2.4 needs to have LC_NUMERIC set to "C" in order
|
||||||
|
// for the floating point conversions and such to work right.
|
||||||
|
#if PY_VERSION_HEX < 0x02040000
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
#endif
|
||||||
|
return loc;
|
||||||
|
}
|
||||||
|
bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort,wxString const &szLocale,bool bLoadDefault,bool bConvertEncoding){
|
||||||
|
bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
|
||||||
|
// Python before 2.4 needs to have LC_NUMERIC set to "C" in order
|
||||||
|
// for the floating point conversions and such to work right.
|
||||||
|
#if PY_VERSION_HEX < 0x02040000
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
#endif
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
bool wxLocale_Init2(wxLocale *self,int language,int flags){
|
||||||
|
bool rc = self->Init(language, flags);
|
||||||
|
// Python before 2.4 needs to have LC_NUMERIC set to "C" in order
|
||||||
|
// for the floating point conversions and such to work right.
|
||||||
|
#if PY_VERSION_HEX < 0x02040000
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
#endif
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "wx/wxPython/pydrawxxx.h"
|
#include "wx/wxPython/pydrawxxx.h"
|
||||||
@@ -9589,7 +9615,7 @@ static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
|
result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
@@ -9653,7 +9679,7 @@ static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (bool)(arg1)->Init(arg2,arg3);
|
result = (bool)wxLocale_Init2(arg1,arg2,arg3);
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
@@ -5852,7 +5852,7 @@ class StandardPaths(object):
|
|||||||
"""
|
"""
|
||||||
GetInstallPrefix(self) -> String
|
GetInstallPrefix(self) -> String
|
||||||
|
|
||||||
Get the program installation prefix.
|
Get the program installation prefix. (Unix only.)
|
||||||
"""
|
"""
|
||||||
return _misc_.StandardPaths_GetInstallPrefix(*args, **kwargs)
|
return _misc_.StandardPaths_GetInstallPrefix(*args, **kwargs)
|
||||||
|
|
||||||
|
@@ -4256,7 +4256,7 @@ class PrintDialogDataPtr(PrintDialogData):
|
|||||||
self.__class__ = PrintDialogData
|
self.__class__ = PrintDialogData
|
||||||
_windows_.PrintDialogData_swigregister(PrintDialogDataPtr)
|
_windows_.PrintDialogData_swigregister(PrintDialogDataPtr)
|
||||||
|
|
||||||
class PrintDialog(Dialog):
|
class PrintDialog(_core.Object):
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
@@ -4265,8 +4265,6 @@ class PrintDialog(Dialog):
|
|||||||
self.this = newobj.this
|
self.this = newobj.this
|
||||||
self.thisown = 1
|
self.thisown = 1
|
||||||
del newobj.thisown
|
del newobj.thisown
|
||||||
self._setOORInfo(self)
|
|
||||||
|
|
||||||
def ShowModal(*args, **kwargs):
|
def ShowModal(*args, **kwargs):
|
||||||
"""ShowModal(self) -> int"""
|
"""ShowModal(self) -> int"""
|
||||||
return _windows_.PrintDialog_ShowModal(*args, **kwargs)
|
return _windows_.PrintDialog_ShowModal(*args, **kwargs)
|
||||||
@@ -4310,11 +4308,11 @@ class Printer(_core.Object):
|
|||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
def CreateAbortWindow(*args, **kwargs):
|
def CreateAbortWindow(*args, **kwargs):
|
||||||
"""CreateAbortWindow(self, Window parent, wxPrintout printout) -> Window"""
|
"""CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
|
||||||
return _windows_.Printer_CreateAbortWindow(*args, **kwargs)
|
return _windows_.Printer_CreateAbortWindow(*args, **kwargs)
|
||||||
|
|
||||||
def ReportError(*args, **kwargs):
|
def ReportError(*args, **kwargs):
|
||||||
"""ReportError(self, Window parent, wxPrintout printout, String message)"""
|
"""ReportError(self, Window parent, Printout printout, String message)"""
|
||||||
return _windows_.Printer_ReportError(*args, **kwargs)
|
return _windows_.Printer_ReportError(*args, **kwargs)
|
||||||
|
|
||||||
def Setup(*args, **kwargs):
|
def Setup(*args, **kwargs):
|
||||||
@@ -4322,7 +4320,7 @@ class Printer(_core.Object):
|
|||||||
return _windows_.Printer_Setup(*args, **kwargs)
|
return _windows_.Printer_Setup(*args, **kwargs)
|
||||||
|
|
||||||
def Print(*args, **kwargs):
|
def Print(*args, **kwargs):
|
||||||
"""Print(self, Window parent, wxPrintout printout, bool prompt=True) -> bool"""
|
"""Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
|
||||||
return _windows_.Printer_Print(*args, **kwargs)
|
return _windows_.Printer_Print(*args, **kwargs)
|
||||||
|
|
||||||
def PrintDialog(*args, **kwargs):
|
def PrintDialog(*args, **kwargs):
|
||||||
@@ -4839,115 +4837,4 @@ class PyPreviewControlBarPtr(PyPreviewControlBar):
|
|||||||
self.__class__ = PyPreviewControlBar
|
self.__class__ = PyPreviewControlBar
|
||||||
_windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
|
_windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
|
||||||
|
|
||||||
class PrintFactory(object):
|
|
||||||
def __init__(self): raise RuntimeError, "No constructor defined"
|
|
||||||
def __repr__(self):
|
|
||||||
return "<%s.%s; proxy of C++ wxPrintFactory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
|
||||||
def CreatePrinter(*args, **kwargs):
|
|
||||||
"""CreatePrinter(self, PrintDialogData data) -> wxPrinterBase"""
|
|
||||||
return _windows_.PrintFactory_CreatePrinter(*args, **kwargs)
|
|
||||||
|
|
||||||
def CreatePrintPreview(*args):
|
|
||||||
"""
|
|
||||||
CreatePrintPreview(self, wxPrintout preview, wxPrintout printout=None, PrintDialogData data=None) -> wxPrintPreviewBase
|
|
||||||
CreatePrintPreview(self, wxPrintout preview, wxPrintout printout, PrintData data) -> wxPrintPreviewBase
|
|
||||||
"""
|
|
||||||
return _windows_.PrintFactory_CreatePrintPreview(*args)
|
|
||||||
|
|
||||||
def CreatePrintDialog(*args):
|
|
||||||
"""
|
|
||||||
CreatePrintDialog(self, Window parent, PrintDialogData data=None) -> wxPrintDialogBase
|
|
||||||
CreatePrintDialog(self, Window parent, PrintData data) -> wxPrintDialogBase
|
|
||||||
"""
|
|
||||||
return _windows_.PrintFactory_CreatePrintDialog(*args)
|
|
||||||
|
|
||||||
def HasPrintSetupDialog(*args, **kwargs):
|
|
||||||
"""HasPrintSetupDialog(self) -> bool"""
|
|
||||||
return _windows_.PrintFactory_HasPrintSetupDialog(*args, **kwargs)
|
|
||||||
|
|
||||||
def CreatePrintSetupDialog(*args, **kwargs):
|
|
||||||
"""CreatePrintSetupDialog(self, Window parent, PrintData data) -> Dialog"""
|
|
||||||
return _windows_.PrintFactory_CreatePrintSetupDialog(*args, **kwargs)
|
|
||||||
|
|
||||||
def HasOwnPrintToFile(*args, **kwargs):
|
|
||||||
"""HasOwnPrintToFile(self) -> bool"""
|
|
||||||
return _windows_.PrintFactory_HasOwnPrintToFile(*args, **kwargs)
|
|
||||||
|
|
||||||
def HasPrinterLine(*args, **kwargs):
|
|
||||||
"""HasPrinterLine(self) -> bool"""
|
|
||||||
return _windows_.PrintFactory_HasPrinterLine(*args, **kwargs)
|
|
||||||
|
|
||||||
def CreatePrinterLine(*args, **kwargs):
|
|
||||||
"""CreatePrinterLine(self) -> String"""
|
|
||||||
return _windows_.PrintFactory_CreatePrinterLine(*args, **kwargs)
|
|
||||||
|
|
||||||
def HasStatusLine(*args, **kwargs):
|
|
||||||
"""HasStatusLine(self) -> bool"""
|
|
||||||
return _windows_.PrintFactory_HasStatusLine(*args, **kwargs)
|
|
||||||
|
|
||||||
def CreateStatusLine(*args, **kwargs):
|
|
||||||
"""CreateStatusLine(self) -> String"""
|
|
||||||
return _windows_.PrintFactory_CreateStatusLine(*args, **kwargs)
|
|
||||||
|
|
||||||
def CreatePrintNativeData(*args, **kwargs):
|
|
||||||
"""CreatePrintNativeData(self) -> PrintNativeDataBase"""
|
|
||||||
return _windows_.PrintFactory_CreatePrintNativeData(*args, **kwargs)
|
|
||||||
|
|
||||||
def SetPrintFactory(*args, **kwargs):
|
|
||||||
"""SetPrintFactory(PrintFactory factory)"""
|
|
||||||
return _windows_.PrintFactory_SetPrintFactory(*args, **kwargs)
|
|
||||||
|
|
||||||
SetPrintFactory = staticmethod(SetPrintFactory)
|
|
||||||
def GetFactory(*args, **kwargs):
|
|
||||||
"""GetFactory() -> PrintFactory"""
|
|
||||||
return _windows_.PrintFactory_GetFactory(*args, **kwargs)
|
|
||||||
|
|
||||||
GetFactory = staticmethod(GetFactory)
|
|
||||||
|
|
||||||
class PrintFactoryPtr(PrintFactory):
|
|
||||||
def __init__(self, this):
|
|
||||||
self.this = this
|
|
||||||
if not hasattr(self,"thisown"): self.thisown = 0
|
|
||||||
self.__class__ = PrintFactory
|
|
||||||
_windows_.PrintFactory_swigregister(PrintFactoryPtr)
|
|
||||||
|
|
||||||
def PrintFactory_SetPrintFactory(*args, **kwargs):
|
|
||||||
"""PrintFactory_SetPrintFactory(PrintFactory factory)"""
|
|
||||||
return _windows_.PrintFactory_SetPrintFactory(*args, **kwargs)
|
|
||||||
|
|
||||||
def PrintFactory_GetFactory(*args, **kwargs):
|
|
||||||
"""PrintFactory_GetFactory() -> PrintFactory"""
|
|
||||||
return _windows_.PrintFactory_GetFactory(*args, **kwargs)
|
|
||||||
|
|
||||||
class PrintNativeDataBase(_core.Object):
|
|
||||||
def __init__(self): raise RuntimeError, "No constructor defined"
|
|
||||||
def __repr__(self):
|
|
||||||
return "<%s.%s; proxy of C++ wxPrintNativeDataBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
|
||||||
def __del__(self, destroy=_windows_.delete_PrintNativeDataBase):
|
|
||||||
"""__del__(self)"""
|
|
||||||
try:
|
|
||||||
if self.thisown: destroy(self)
|
|
||||||
except: pass
|
|
||||||
|
|
||||||
def TransferTo(*args, **kwargs):
|
|
||||||
"""TransferTo(self, PrintData data) -> bool"""
|
|
||||||
return _windows_.PrintNativeDataBase_TransferTo(*args, **kwargs)
|
|
||||||
|
|
||||||
def TransferFrom(*args, **kwargs):
|
|
||||||
"""TransferFrom(self, PrintData data) -> bool"""
|
|
||||||
return _windows_.PrintNativeDataBase_TransferFrom(*args, **kwargs)
|
|
||||||
|
|
||||||
def Ok(*args, **kwargs):
|
|
||||||
"""Ok(self) -> bool"""
|
|
||||||
return _windows_.PrintNativeDataBase_Ok(*args, **kwargs)
|
|
||||||
|
|
||||||
m_ref = property(_windows_.PrintNativeDataBase_m_ref_get, _windows_.PrintNativeDataBase_m_ref_set)
|
|
||||||
|
|
||||||
class PrintNativeDataBasePtr(PrintNativeDataBase):
|
|
||||||
def __init__(self, this):
|
|
||||||
self.this = this
|
|
||||||
if not hasattr(self,"thisown"): self.thisown = 0
|
|
||||||
self.__class__ = PrintNativeDataBase
|
|
||||||
_windows_.PrintNativeDataBase_swigregister(PrintNativeDataBasePtr)
|
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user