X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7012bb9f03e0012c32485655b7af4345b490bf4d..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/src/_misc.i?ds=sidebyside diff --git a/wxPython/src/_misc.i b/wxPython/src/_misc.i index fa233350d3..45ae59fd43 100644 --- a/wxPython/src/_misc.i +++ b/wxPython/src/_misc.i @@ -38,6 +38,9 @@ public: static void Enable(bool flag); static void SetDelay(long milliseconds); + + %property(Tip, GetTip, SetTip, doc="See `GetTip` and `SetTip`"); + %property(Window, GetWindow, doc="See `GetWindow`"); }; #endif @@ -51,7 +54,7 @@ public: ~wxCaret(); %extend { - %pythonAppend Destroy "args[0].thisown = 0" + %pythonPrepend Destroy "args[0].this.own(False)" DocStr(Destroy, "Deletes the C++ object this Python object is a proxy for.", ""); void Destroy() { @@ -137,7 +140,8 @@ class wxStopWatch public: // ctor starts the stop watch wxStopWatch(); - + ~wxStopWatch(); + // start the stop watch at the moment t0 void Start(long t0 = 0); @@ -363,9 +367,13 @@ public: int GetOSMajorVersion() const; int GetOSMinorVersion() const; + bool CheckOSVersion(int major, int minor) const; + int GetToolkitMajorVersion() const; int GetToolkitMinorVersion() const; + bool CheckToolkitVersion(int major, int minor) const; + bool IsUsingUniversalWidgets() const; wxOperatingSystemId GetOperatingSystemId() const;