]> git.saurik.com Git - wxWidgets.git/commitdiff
little tweaks to match recent CVS changes
authorRobin Dunn <robin@alldunn.com>
Tue, 6 Jul 2004 21:01:33 +0000 (21:01 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 6 Jul 2004 21:01:33 +0000 (21:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/__misc_rename.i
wxPython/src/_functions.i
wxPython/src/_toplvl.i
wxPython/src/_window.i
wxPython/wxPython/_misc.py

index 77165d95027fd4efc92136c4bb5b8f9f857746e2..6ffdd55315de3dd192ecfdfbcf90080937733929 100644 (file)
 %rename(SHUTDOWN_REBOOT)                    wxSHUTDOWN_REBOOT;
 %rename(Shutdown)                           wxShutdown;
 %rename(Sleep)                              wxSleep;
-%rename(Usleep)                             wxUsleep;
+%rename(MilliSleep)                         wxMilliSleep;
+%rename(MicroSleep)                         wxMicroSleep;
 %rename(EnableTopLevelWindows)              wxEnableTopLevelWindows;
 %rename(StripMenuCodes)                     wxStripMenuCodes;
 %rename(GetEmailAddress)                    wxGetEmailAddress;
index efc60338f3c057835f22c1198a38107b90619114..02238b8ef58db3c5e1701d58574e1be67886a1e6 100644 (file)
@@ -80,7 +80,10 @@ bool wxShutdown(wxShutdownFlags wFlags);
 
 
 void wxSleep(int secs);
-void wxUsleep(unsigned long milliseconds);
+void wxMilliSleep(unsigned long milliseconds);
+void wxMicroSleep(unsigned long microseconds);
+%pythoncode { Usleep = MilliSleep }
+
 void wxEnableTopLevelWindows(bool enable);
 
 wxString wxStripMenuCodes(const wxString& in);
index d615218244540ad6d5c6b37781ad5b1571da1d66..261d41c0410dab16c987ee42a4e0a10bd8627e9b 100644 (file)
@@ -178,7 +178,7 @@ public:
     // sends a size event to the window using its current size -- this has an
     // effect of refreshing the window layout
     //
-    virtual void SendSizeEvent() { }
+    virtual void SendSizeEvent();
 
 
     // menu bar functions
@@ -286,8 +286,8 @@ public:
 
     // the modal dialogs have a return code - usually the id of the last
     // pressed button
-    void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
-    int GetReturnCode() const { return m_returnCode; }
+    void SetReturnCode(int returnCode);
+    int GetReturnCode() const;
 
     // splits text up at newlines and places the
     // lines into a vertical wxBoxSizer
@@ -311,6 +311,11 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+    %pythoncode {
+        def SendSizeEvent(self):
+            self.ProcessEvent(wx.SizeEvent((-1,-1)))
+    }
 };
 
 //---------------------------------------------------------------------------
index 1c382760f36a1628c21c51cafdb244fcf6e8897d..f30260b29798e62799e9fe01adfdc4f0ca8fe2e0 100644 (file)
@@ -871,8 +871,30 @@ control custom keypress handler to do the default navigation behaviour
 for the tab key, since the standard default behaviour for a multiline
 text control with the wx.TE_PROCESS_TAB style is to insert a tab and
 not navigate to the next control.");
+
+    
+
+    DocDeclStr(
+        void , MoveAfterInTabOrder(wxWindow *win),
+        "Moves this window in the tab navigation order after the specified
+sibling window.  This means that when the user presses the TAB key on
+that other window, the focus switches to this window.
+
+The default tab order is the same as creation order.  This function
+and `MoveBeforeInTabOrder` allow to change it after creating all the
+windows.
+", "");
+
+    
+    DocDeclStr(
+        void , MoveBeforeInTabOrder(wxWindow *win),
+        "Same as `MoveAfterInTabOrder` except that it inserts this window just
+before win instead of putting it right after it.", "");
     
 
+    
+
+
 
 
 
index 3cb27c1f09c01b124cc2374873d1024cdd37bdf9..8e46b9edb6b0185f4829ac7a6b42f1c8b229945a 100644 (file)
@@ -146,7 +146,8 @@ wxSHUTDOWN_POWEROFF = wx._misc.SHUTDOWN_POWEROFF
 wxSHUTDOWN_REBOOT = wx._misc.SHUTDOWN_REBOOT
 wxShutdown = wx._misc.Shutdown
 wxSleep = wx._misc.Sleep
-wxUsleep = wx._misc.Usleep
+wxMilliSleep = wx._misc.MilliSleep
+wxMicroSleep = wx._misc.MicroSleep
 wxEnableTopLevelWindows = wx._misc.EnableTopLevelWindows
 wxStripMenuCodes = wx._misc.StripMenuCodes
 wxGetEmailAddress = wx._misc.GetEmailAddress