X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92956ab232b5154998cb82e9f1df83307e3c05b6..087f594ba12ecbefb8d97729d50c5a61c97439be:/wxPython/src/_misc.i?ds=inline diff --git a/wxPython/src/_misc.i b/wxPython/src/_misc.i index 3390427f94..0ed3fe558b 100644 --- a/wxPython/src/_misc.i +++ b/wxPython/src/_misc.i @@ -62,9 +62,9 @@ public: wxWindow *GetWindow(); - %name(MoveXY)void Move(int x, int y); + %Rename(MoveXY, void, Move(int x, int y)); void Move(const wxPoint& pt); - %name(SetSizeWH) void SetSize(int width, int height); + %Rename(SetSizeWH, void, SetSize(int width, int height)); void SetSize(const wxSize& size); void Show(int show = true); void Hide(); @@ -159,7 +159,7 @@ public: void Save(wxConfigBase& config); void AddFilesToMenu(); - %name(AddFilesToThisMenu)void AddFilesToMenu(wxMenu* menu); + %Rename(AddFilesToThisMenu, void, AddFilesToMenu(wxMenu* menu)); // Accessors wxString GetHistoryFile(int i) const; @@ -184,7 +184,7 @@ public: const wxString& path = wxPyEmptyString); // default ctor, use Create() after it - %name(PreSingleInstanceChecker) wxSingleInstanceChecker(); + %RenameCtor(PreSingleInstanceChecker, wxSingleInstanceChecker()); ~wxSingleInstanceChecker(); @@ -207,7 +207,7 @@ public: //--------------------------------------------------------------------------- // Experimental... - +#if 0 %{ #ifdef __WXMSW__ @@ -279,14 +279,15 @@ void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) } if (pfnPrintWindow) { - printf("Using PrintWindow\n"); + //printf("Using PrintWindow\n"); pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); } else { - printf("Using WM_PRINT\n"); + //printf("Using WM_PRINT\n"); ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), - PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); + PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | + PRF_ERASEBKGND | PRF_OWNED ); } } #endif @@ -294,5 +295,7 @@ void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) %} +#endif + //--------------------------------------------------------------------------- //---------------------------------------------------------------------------