%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;
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);
// 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
// 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
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ %pythoncode {
+ def SendSizeEvent(self):
+ self.ProcessEvent(wx.SizeEvent((-1,-1)))
+ }
};
//---------------------------------------------------------------------------
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.", "");
+
+
+
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