<autodoc>FindNext() -> String</autodoc>
</method>
<staticmethod name="AddHandler" type="" overloaded="no">
- <autodoc>FileSystem.AddHandler(CPPFileSystemHandler handler)</autodoc>
+ <autodoc>AddHandler(CPPFileSystemHandler handler)</autodoc>
<paramlist>
<param name="handler" type="CPPFileSystemHandler" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="CleanUpHandlers" type="" overloaded="no">
- <autodoc>FileSystem.CleanUpHandlers()</autodoc>
+ <autodoc>CleanUpHandlers()</autodoc>
</staticmethod>
<staticmethod name="FileNameToURL" type="String" overloaded="no">
- <autodoc>FileSystem.FileNameToURL(String filename) -> String</autodoc>
+ <autodoc>FileNameToURL(String filename) -> String</autodoc>
<paramlist>
<param name="filename" type="String" default=""/>
</paramlist>
<autodoc>__init__() -> MemoryFSHandler</autodoc>
</constructor>
<staticmethod name="RemoveFile" type="" overloaded="no">
- <autodoc>MemoryFSHandler.RemoveFile(String filename)</autodoc>
+ <autodoc>RemoveFile(String filename)</autodoc>
<paramlist>
<param name="filename" type="String" default=""/>
</paramlist>
<autodoc>__init__() -> ImageHistogram</autodoc>
</constructor>
<staticmethod name="MakeKey" type="unsigned long" overloaded="no">
- <autodoc>ImageHistogram.MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long</autodoc>
+ <autodoc>MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long</autodoc>
<docstring>Get the key in the histogram for the given RGB values</docstring>
<paramlist>
<param name="r" type="unsigned char" default=""/>
</paramlist>
</method>
<staticmethod name="CanRead" type="bool" overloaded="no">
- <autodoc>Image.CanRead(String name) -> bool</autodoc>
+ <autodoc>CanRead(String name) -> bool</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetImageCount" type="int" overloaded="no">
- <autodoc>Image.GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int</autodoc>
+ <autodoc>GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
<param name="type" type="long" default="wxBITMAP_TYPE_ANY"/>
</paramlist>
</method>
<staticmethod name="CanReadStream" type="bool" overloaded="no">
- <autodoc>Image.CanReadStream(InputStream stream) -> bool</autodoc>
+ <autodoc>CanReadStream(InputStream stream) -> bool</autodoc>
<paramlist>
<param name="stream" type="wxInputStream" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="AddHandler" type="" overloaded="no">
- <autodoc>Image.AddHandler(ImageHandler handler)</autodoc>
+ <autodoc>AddHandler(ImageHandler handler)</autodoc>
<paramlist>
<param name="handler" type="ImageHandler" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="InsertHandler" type="" overloaded="no">
- <autodoc>Image.InsertHandler(ImageHandler handler)</autodoc>
+ <autodoc>InsertHandler(ImageHandler handler)</autodoc>
<paramlist>
<param name="handler" type="ImageHandler" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="RemoveHandler" type="bool" overloaded="no">
- <autodoc>Image.RemoveHandler(String name) -> bool</autodoc>
+ <autodoc>RemoveHandler(String name) -> bool</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetImageExtWildcard" type="String" overloaded="no">
- <autodoc>Image.GetImageExtWildcard() -> String</autodoc>
+ <autodoc>GetImageExtWildcard() -> String</autodoc>
</staticmethod>
<method name="ConvertToBitmap" type="wxBitmap" overloaded="no">
<autodoc>ConvertToBitmap() -> Bitmap</autodoc>
EVT_COMMAND_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE, 1)
EVT_COMMAND_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL, 1)
-EVT_SPIN_UP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP, 1)
-EVT_SPIN_DOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN, 1)
-EVT_SPIN = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1)
-
EVT_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED, 1)
EVT_CHECKBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED, 1)
EVT_CHOICE = wx.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED, 1)
</paramlist>
</method>
<staticmethod name="SetUpdateInterval" type="" overloaded="no">
- <autodoc>UpdateUIEvent.SetUpdateInterval(long updateInterval)</autodoc>
+ <autodoc>SetUpdateInterval(long updateInterval)</autodoc>
<paramlist>
<param name="updateInterval" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetUpdateInterval" type="long" overloaded="no">
- <autodoc>UpdateUIEvent.GetUpdateInterval() -> long</autodoc>
+ <autodoc>GetUpdateInterval() -> long</autodoc>
</staticmethod>
<staticmethod name="CanUpdate" type="bool" overloaded="no">
- <autodoc>UpdateUIEvent.CanUpdate(Window win) -> bool</autodoc>
+ <autodoc>CanUpdate(Window win) -> bool</autodoc>
<paramlist>
<param name="win" type="wxWindow" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="ResetUpdateTime" type="" overloaded="no">
- <autodoc>UpdateUIEvent.ResetUpdateTime()</autodoc>
+ <autodoc>ResetUpdateTime()</autodoc>
</staticmethod>
<staticmethod name="SetMode" type="" overloaded="no">
- <autodoc>UpdateUIEvent.SetMode(int mode)</autodoc>
+ <autodoc>SetMode(int mode)</autodoc>
<paramlist>
<param name="mode" type="wxUpdateUIMode" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetMode" type="wxUpdateUIMode" overloaded="no">
- <autodoc>UpdateUIEvent.GetMode() -> int</autodoc>
+ <autodoc>GetMode() -> int</autodoc>
</staticmethod>
</class>
<pythoncode>
<autodoc>MoreRequested() -> bool</autodoc>
</method>
<staticmethod name="SetMode" type="" overloaded="no">
- <autodoc>IdleEvent.SetMode(int mode)</autodoc>
+ <autodoc>SetMode(int mode)</autodoc>
<paramlist>
<param name="mode" type="wxIdleMode" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetMode" type="wxIdleMode" overloaded="no">
- <autodoc>IdleEvent.GetMode() -> int</autodoc>
+ <autodoc>GetMode() -> int</autodoc>
</staticmethod>
<staticmethod name="CanSend" type="bool" overloaded="no">
- <autodoc>IdleEvent.CanSend(Window win) -> bool</autodoc>
+ <autodoc>CanSend(Window win) -> bool</autodoc>
<paramlist>
<param name="win" type="wxWindow" default=""/>
</paramlist>
<baseclass name="EvtHandler"/>
<constructor name="PyApp" overloaded="no">
<autodoc>__init__() -> PyApp</autodoc>
+ <docstring>Create a new application object, starting the bootstrap process.</docstring>
</constructor>
<destructor name="~wxPyApp" overloaded="no">
<autodoc>__del__()</autodoc>
<docstring>Get the current OnAssert behaviour setting.</docstring>
</method>
<staticmethod name="GetMacSupportPCMenuShortcuts" type="bool" overloaded="no">
- <autodoc>PyApp.GetMacSupportPCMenuShortcuts() -> bool</autodoc>
+ <autodoc>GetMacSupportPCMenuShortcuts() -> bool</autodoc>
</staticmethod>
<staticmethod name="GetMacAboutMenuItemId" type="long" overloaded="no">
- <autodoc>PyApp.GetMacAboutMenuItemId() -> long</autodoc>
+ <autodoc>GetMacAboutMenuItemId() -> long</autodoc>
</staticmethod>
<staticmethod name="GetMacPreferencesMenuItemId" type="long" overloaded="no">
- <autodoc>PyApp.GetMacPreferencesMenuItemId() -> long</autodoc>
+ <autodoc>GetMacPreferencesMenuItemId() -> long</autodoc>
</staticmethod>
<staticmethod name="GetMacExitMenuItemId" type="long" overloaded="no">
- <autodoc>PyApp.GetMacExitMenuItemId() -> long</autodoc>
+ <autodoc>GetMacExitMenuItemId() -> long</autodoc>
</staticmethod>
<staticmethod name="GetMacHelpMenuTitleName" type="String" overloaded="no">
- <autodoc>PyApp.GetMacHelpMenuTitleName() -> String</autodoc>
+ <autodoc>GetMacHelpMenuTitleName() -> String</autodoc>
</staticmethod>
<staticmethod name="SetMacSupportPCMenuShortcuts" type="" overloaded="no">
- <autodoc>PyApp.SetMacSupportPCMenuShortcuts(bool val)</autodoc>
+ <autodoc>SetMacSupportPCMenuShortcuts(bool val)</autodoc>
<paramlist>
<param name="val" type="bool" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="SetMacAboutMenuItemId" type="" overloaded="no">
- <autodoc>PyApp.SetMacAboutMenuItemId(long val)</autodoc>
+ <autodoc>SetMacAboutMenuItemId(long val)</autodoc>
<paramlist>
<param name="val" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="SetMacPreferencesMenuItemId" type="" overloaded="no">
- <autodoc>PyApp.SetMacPreferencesMenuItemId(long val)</autodoc>
+ <autodoc>SetMacPreferencesMenuItemId(long val)</autodoc>
<paramlist>
<param name="val" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="SetMacExitMenuItemId" type="" overloaded="no">
- <autodoc>PyApp.SetMacExitMenuItemId(long val)</autodoc>
+ <autodoc>SetMacExitMenuItemId(long val)</autodoc>
<paramlist>
<param name="val" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="SetMacHelpMenuTitleName" type="" overloaded="no">
- <autodoc>PyApp.SetMacHelpMenuTitleName(String val)</autodoc>
+ <autodoc>SetMacHelpMenuTitleName(String val)</autodoc>
<paramlist>
<param name="val" type="String" default=""/>
</paramlist>
<docstring>For internal use only</docstring>
</method>
<staticmethod name="GetComCtl32Version" type="int" overloaded="no">
- <autodoc>PyApp.GetComCtl32Version() -> int</autodoc>
+ <autodoc>GetComCtl32Version() -> int</autodoc>
<docstring>Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it
wasn't found at all. Raises an exception on non-Windows platforms.</docstring>
</staticmethod>
style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
self.text = wx.TextCtrl(self.frame, -1, "",
style = wx.TE_MULTILINE | wx.TE_READONLY)
+ self.text.AppendText(st)
self.frame.SetSize((450, 300))
self.frame.Show(True)
EVT_CLOSE(self.frame, self.OnCloseWindow)
#---------------------------------------------------------------------------
</pythoncode>
<class name="Window" oldname="wxWindow" module="core">
+ <docstring>
+wx.Window is the base class for all windows and represents any visible
+object on the screen. All controls, top level windows and so on are
+wx.Windows. Sizers and device contexts are not however, as they don't
+appear on screen themselves.
+</docstring>
+ <refdoc>
+ Styles
+
+ wx.SIMPLE_BORDER: Displays a thin border around the window.
+
+ wx.DOUBLE_BORDER: Displays a double border. Windows and Mac only.
+
+ wx.SUNKEN_BORDER: Displays a sunken border.
+
+ wx.RAISED_BORDER: Displays a raised border.
+
+ wx.STATIC_BORDER: Displays a border suitable for a static
+ control. Windows only.
+
+ wx.NO_BORDER: Displays no border, overriding the default
+ border style for the window.
+
+ wx.TRANSPARENT_WINDOW: The window is transparent, that is, it
+ will not receive paint events. Windows only.
+
+ wx.TAB_TRAVERSAL: Use this to enable tab traversal for
+ non-dialog windows.
+
+ wx.WANTS_CHARS: Use this to indicate that the window
+ wants to get all char/key events for
+ all keys - even for keys like TAB or
+ ENTER which are usually used for
+ dialog navigation and which wouldn't
+ be generated without this style. If
+ you need to use this style in order to
+ get the arrows or etc., but would
+ still like to have normal keyboard
+ navigation take place, you should
+ create and send a wxNavigationKeyEvent
+ in response to the key events for Tab
+ and Shift-Tab.
+
+ wx.NO_FULL_REPAINT_ON_RESIZE: Disables repainting the window
+ completely when its size is changed
+ - you will have to repaint the new
+ window area manually if you use this
+ style. As of version 2.5.1 this
+ style is on by default. Use
+ wx.FULL_REPAINT_ON_RESIZE to
+ deactivate it.
+
+ wx.VSCROLL: Use this style to enable a vertical scrollbar.
+
+ wx.HSCROLL: Use this style to enable a horizontal scrollbar.
+
+ wx.ALWAYS_SHOW_SB: If a window has scrollbars, disable them
+ instead of hiding them when they are
+ not needed (i.e. when the size of the
+ window is big enough to not require
+ the scrollbars to navigate it). This
+ style is currently only implemented
+ for wxMSW and wxUniversal and does
+ nothing on the other platforms.
+
+ wx.CLIP_CHILDREN: Use this style to eliminate flicker caused by
+ the background being repainted, then
+ children being painted over
+ them. Windows only.
+
+ wx.FULL_REPAINT_ON_RESIZE: Use this style to force a complete
+ redraw of the window whenever it is
+ resized instead of redrawing just the
+ part of the window affected by
+ resizing. Note that this was the
+ behaviour by default before 2.5.1
+ release and that if you experience
+ redraw problems with the code which
+ previously used to work you may want
+ to try this.
+
+ Extra Styles
+
+ wx.WS_EX_VALIDATE_RECURSIVELY: By default,
+ Validate/TransferDataTo/FromWindow()
+ only work on direct children of
+ the window (compatible
+ behaviour). Set this flag to make
+ them recursively descend into all
+ subwindows.
+
+ wx.WS_EX_BLOCK_EVENTS: wx.CommandEvents and the objects of the
+ derived classes are forwarded to
+ the parent window and so on
+ recursively by default. Using this
+ flag for the given window allows
+ to block this propagation at this
+ window, i.e. prevent the events
+ from being propagated further
+ upwards. Dialogs have this flag on
+ by default.
+
+ wx.WS_EX_TRANSIENT Don't use this window as an implicit parent for
+ the other windows: this must be
+ used with transient windows as
+ otherwise there is the risk of
+ creating a dialog/frame with this
+ window as a parent which would
+ lead to a crash if the parent is
+ destroyed before the child.
+
+ wx.WS_EX_PROCESS_IDLE: This window should always process idle
+ events, even if the mode set by
+ wx.IdleEvent.SetMode is
+ wx.IDLE_PROCESS_SPECIFIED.
+
+ wx.WS_EX_PROCESS_UI_UPDATES This window should always process UI
+ update events, even if the mode
+ set by wxUpdateUIEvent::SetMode is
+ wxUPDATE_UI_PROCESS_SPECIFIED.
+
+</refdoc>
<baseclass name="EvtHandler"/>
<constructor name="Window" overloaded="no">
<autodoc>__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, String name=PanelNameStr) -> Window</autodoc>
+ <docstring>Construct and show a generic Window.</docstring>
+ <refdoc>
+ Styles
+
+ wx.SIMPLE_BORDER: Displays a thin border around the window.
+
+ wx.DOUBLE_BORDER: Displays a double border. Windows and Mac only.
+
+ wx.SUNKEN_BORDER: Displays a sunken border.
+
+ wx.RAISED_BORDER: Displays a raised border.
+
+ wx.STATIC_BORDER: Displays a border suitable for a static
+ control. Windows only.
+
+ wx.NO_BORDER: Displays no border, overriding the default
+ border style for the window.
+
+ wx.TRANSPARENT_WINDOW: The window is transparent, that is, it
+ will not receive paint events. Windows only.
+
+ wx.TAB_TRAVERSAL: Use this to enable tab traversal for
+ non-dialog windows.
+
+ wx.WANTS_CHARS: Use this to indicate that the window
+ wants to get all char/key events for
+ all keys - even for keys like TAB or
+ ENTER which are usually used for
+ dialog navigation and which wouldn't
+ be generated without this style. If
+ you need to use this style in order to
+ get the arrows or etc., but would
+ still like to have normal keyboard
+ navigation take place, you should
+ create and send a wxNavigationKeyEvent
+ in response to the key events for Tab
+ and Shift-Tab.
+
+ wx.NO_FULL_REPAINT_ON_RESIZE: Disables repainting the window
+ completely when its size is changed
+ - you will have to repaint the new
+ window area manually if you use this
+ style. As of version 2.5.1 this
+ style is on by default. Use
+ wx.FULL_REPAINT_ON_RESIZE to
+ deactivate it.
+
+ wx.VSCROLL: Use this style to enable a vertical scrollbar.
+
+ wx.HSCROLL: Use this style to enable a horizontal scrollbar.
+
+ wx.ALWAYS_SHOW_SB: If a window has scrollbars, disable them
+ instead of hiding them when they are
+ not needed (i.e. when the size of the
+ window is big enough to not require
+ the scrollbars to navigate it). This
+ style is currently only implemented
+ for wxMSW and wxUniversal and does
+ nothing on the other platforms.
+
+ wx.CLIP_CHILDREN: Use this style to eliminate flicker caused by
+ the background being repainted, then
+ children being painted over
+ them. Windows only.
+
+ wx.FULL_REPAINT_ON_RESIZE: Use this style to force a complete
+ redraw of the window whenever it is
+ resized instead of redrawing just the
+ part of the window affected by
+ resizing. Note that this was the
+ behaviour by default before 2.5.1
+ release and that if you experience
+ redraw problems with the code which
+ previously used to work you may want
+ to try this.
+
+ Extra Styles
+
+ wx.WS_EX_VALIDATE_RECURSIVELY: By default,
+ Validate/TransferDataTo/FromWindow()
+ only work on direct children of
+ the window (compatible
+ behaviour). Set this flag to make
+ them recursively descend into all
+ subwindows.
+
+ wx.WS_EX_BLOCK_EVENTS: wx.CommandEvents and the objects of the
+ derived classes are forwarded to
+ the parent window and so on
+ recursively by default. Using this
+ flag for the given window allows
+ to block this propagation at this
+ window, i.e. prevent the events
+ from being propagated further
+ upwards. Dialogs have this flag on
+ by default.
+
+ wx.WS_EX_TRANSIENT Don't use this window as an implicit parent for
+ the other windows: this must be
+ used with transient windows as
+ otherwise there is the risk of
+ creating a dialog/frame with this
+ window as a parent which would
+ lead to a crash if the parent is
+ destroyed before the child.
+
+ wx.WS_EX_PROCESS_IDLE: This window should always process idle
+ events, even if the mode set by
+ wx.IdleEvent.SetMode is
+ wx.IDLE_PROCESS_SPECIFIED.
+
+ wx.WS_EX_PROCESS_UI_UPDATES This window should always process UI
+ update events, even if the mode
+ set by wxUpdateUIEvent::SetMode is
+ wxUPDATE_UI_PROCESS_SPECIFIED.
+
+</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
</constructor>
<constructor name="PreWindow" overloaded="no">
<autodoc>PreWindow() -> Window</autodoc>
+ <docstring>Precreate a Window for 2-phase creation.</docstring>
+ <refdoc>
+ Styles
+
+ wx.SIMPLE_BORDER: Displays a thin border around the window.
+
+ wx.DOUBLE_BORDER: Displays a double border. Windows and Mac only.
+
+ wx.SUNKEN_BORDER: Displays a sunken border.
+
+ wx.RAISED_BORDER: Displays a raised border.
+
+ wx.STATIC_BORDER: Displays a border suitable for a static
+ control. Windows only.
+
+ wx.NO_BORDER: Displays no border, overriding the default
+ border style for the window.
+
+ wx.TRANSPARENT_WINDOW: The window is transparent, that is, it
+ will not receive paint events. Windows only.
+
+ wx.TAB_TRAVERSAL: Use this to enable tab traversal for
+ non-dialog windows.
+
+ wx.WANTS_CHARS: Use this to indicate that the window
+ wants to get all char/key events for
+ all keys - even for keys like TAB or
+ ENTER which are usually used for
+ dialog navigation and which wouldn't
+ be generated without this style. If
+ you need to use this style in order to
+ get the arrows or etc., but would
+ still like to have normal keyboard
+ navigation take place, you should
+ create and send a wxNavigationKeyEvent
+ in response to the key events for Tab
+ and Shift-Tab.
+
+ wx.NO_FULL_REPAINT_ON_RESIZE: Disables repainting the window
+ completely when its size is changed
+ - you will have to repaint the new
+ window area manually if you use this
+ style. As of version 2.5.1 this
+ style is on by default. Use
+ wx.FULL_REPAINT_ON_RESIZE to
+ deactivate it.
+
+ wx.VSCROLL: Use this style to enable a vertical scrollbar.
+
+ wx.HSCROLL: Use this style to enable a horizontal scrollbar.
+
+ wx.ALWAYS_SHOW_SB: If a window has scrollbars, disable them
+ instead of hiding them when they are
+ not needed (i.e. when the size of the
+ window is big enough to not require
+ the scrollbars to navigate it). This
+ style is currently only implemented
+ for wxMSW and wxUniversal and does
+ nothing on the other platforms.
+
+ wx.CLIP_CHILDREN: Use this style to eliminate flicker caused by
+ the background being repainted, then
+ children being painted over
+ them. Windows only.
+
+ wx.FULL_REPAINT_ON_RESIZE: Use this style to force a complete
+ redraw of the window whenever it is
+ resized instead of redrawing just the
+ part of the window affected by
+ resizing. Note that this was the
+ behaviour by default before 2.5.1
+ release and that if you experience
+ redraw problems with the code which
+ previously used to work you may want
+ to try this.
+
+ Extra Styles
+
+ wx.WS_EX_VALIDATE_RECURSIVELY: By default,
+ Validate/TransferDataTo/FromWindow()
+ only work on direct children of
+ the window (compatible
+ behaviour). Set this flag to make
+ them recursively descend into all
+ subwindows.
+
+ wx.WS_EX_BLOCK_EVENTS: wx.CommandEvents and the objects of the
+ derived classes are forwarded to
+ the parent window and so on
+ recursively by default. Using this
+ flag for the given window allows
+ to block this propagation at this
+ window, i.e. prevent the events
+ from being propagated further
+ upwards. Dialogs have this flag on
+ by default.
+
+ wx.WS_EX_TRANSIENT Don't use this window as an implicit parent for
+ the other windows: this must be
+ used with transient windows as
+ otherwise there is the risk of
+ creating a dialog/frame with this
+ window as a parent which would
+ lead to a crash if the parent is
+ destroyed before the child.
+
+ wx.WS_EX_PROCESS_IDLE: This window should always process idle
+ events, even if the mode set by
+ wx.IdleEvent.SetMode is
+ wx.IDLE_PROCESS_SPECIFIED.
+
+ wx.WS_EX_PROCESS_UI_UPDATES This window should always process UI
+ update events, even if the mode
+ set by wxUpdateUIEvent::SetMode is
+ wxUPDATE_UI_PROCESS_SPECIFIED.
+
+</refdoc>
</constructor>
<method name="Create" type="bool" overloaded="no">
<autodoc>Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, String name=PanelNameStr) -> bool</autodoc>
+ <docstring>Create the GUI part of the Window for 2-phase creation mode.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
</method>
<method name="Close" type="bool" overloaded="no">
<autodoc>Close(bool force=False) -> bool</autodoc>
+ <docstring>This function simply generates a EVT_CLOSE event whose handler usually
+tries to close the window. It doesn't close the window itself,
+however. If force is False (the default) then the window's close
+handler will be allowed to veto the destruction of the window.
+
+Usually Close is only used with the top level windows (wx.Frame and
+wx.Dialog classes) as the others are not supposed to have any special
+EVT_CLOSE logic.
+
+The close handler should check whether the window is being deleted
+forcibly, using wx.CloseEvent.GetForce, in which case it should
+destroy the window using wx.Window.Destroy.
+
+Note that calling Close does not guarantee that the window will be
+destroyed; but it provides a way to simulate a manual close of a
+window, which may or may not be implemented by destroying the
+window. The default EVT_CLOSE handler for wx.Dialog does not
+necessarily delete the dialog, since it will simply simulate an
+wxID_CANCEL event which is handled by the appropriate button event
+handler and may do anything at all.
+
+To guarantee that the window will be destroyed, call wx.Window.Destroy
+instead.</docstring>
<paramlist>
<param name="force" type="bool" default="False"/>
</paramlist>
</method>
<method name="Destroy" type="bool" overloaded="no">
<autodoc>Destroy() -> bool</autodoc>
- <docstring>Deletes the C++ object this Python object is a proxy for.</docstring>
+ <docstring>Destroys the window safely. Frames and dialogs are not destroyed
+immediately when this function is called -- they are added to a list
+of windows to be deleted on idle time, when all the window's events
+have been processed. This prevents problems with events being sent to
+non-existent windows.
+
+Returns True if the window has either been successfully deleted, or it
+has been added to the list of windows pending real deletion.</docstring>
</method>
<method name="DestroyChildren" type="bool" overloaded="no">
<autodoc>DestroyChildren() -> bool</autodoc>
+ <docstring>Destroys all children of a window. Called automatically by the destructor.</docstring>
</method>
<method name="IsBeingDeleted" type="bool" overloaded="no">
<autodoc>IsBeingDeleted() -> bool</autodoc>
+ <docstring>Is the window in the process of being deleted?</docstring>
</method>
<method name="SetTitle" type="" overloaded="no">
<autodoc>SetTitle(String title)</autodoc>
+ <docstring>Sets the window's title. Applicable only to frames and dialogs.</docstring>
<paramlist>
<param name="title" type="String" default=""/>
</paramlist>
</method>
<method name="GetTitle" type="String" overloaded="no">
<autodoc>GetTitle() -> String</autodoc>
+ <docstring>Gets the window's title. Applicable only to frames and dialogs.</docstring>
</method>
<method name="SetLabel" type="" overloaded="no">
<autodoc>SetLabel(String label)</autodoc>
+ <docstring>Set the text which the window shows in its label if applicable.</docstring>
<paramlist>
<param name="label" type="String" default=""/>
</paramlist>
</method>
<method name="GetLabel" type="String" overloaded="no">
<autodoc>GetLabel() -> String</autodoc>
+ <docstring>Generic way of getting a label from any window, for identification
+purposes. The interpretation of this function differs from class to
+class. For frames and dialogs, the value returned is the title. For
+buttons or static text controls, it is the button text. This function
+can be useful for meta-programs (such as testing tools or
+special-needs access programs) which need to identify windows by name.</docstring>
</method>
<method name="SetName" type="" overloaded="no">
<autodoc>SetName(String name)</autodoc>
+ <docstring>Sets the window's name. The window name is used for ressource setting
+in X, it is not the same as the window title/label</docstring>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
</method>
<method name="GetName" type="String" overloaded="no">
<autodoc>GetName() -> String</autodoc>
+ <docstring>Returns the window's name. This name is not guaranteed to be unique;
+it is up to the programmer to supply an appropriate name in the window
+constructor or via wx.Window.SetName.</docstring>
</method>
<method name="SetId" type="" overloaded="no">
<autodoc>SetId(int winid)</autodoc>
+ <docstring>Sets the identifier of the window. Each window has an integer
+identifier. If the application has not provided one, an identifier
+will be generated. Normally, the identifier should be provided on
+creation and should not be modified subsequently.</docstring>
<paramlist>
<param name="winid" type="int" default=""/>
</paramlist>
</method>
<method name="GetId" type="int" overloaded="no">
<autodoc>GetId() -> int</autodoc>
+ <docstring>Returns the identifier of the window. Each window has an integer
+identifier. If the application has not provided one (or the default Id
+-1 is used) then an unique identifier with a negative value will be
+generated.</docstring>
</method>
<staticmethod name="NewControlId" type="int" overloaded="no">
- <autodoc>Window.NewControlId() -> int</autodoc>
+ <autodoc>NewControlId() -> int</autodoc>
+ <docstring>Generate a control id for the controls which were not given one.</docstring>
</staticmethod>
<staticmethod name="NextControlId" type="int" overloaded="no">
- <autodoc>Window.NextControlId(int winid) -> int</autodoc>
+ <autodoc>NextControlId(int winid) -> int</autodoc>
+ <docstring>Get the id of the control following the one with the given
+(autogenerated) id</docstring>
<paramlist>
<param name="winid" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="PrevControlId" type="int" overloaded="no">
- <autodoc>Window.PrevControlId(int winid) -> int</autodoc>
+ <autodoc>PrevControlId(int winid) -> int</autodoc>
+ <docstring>Get the id of the control preceding the one with the given
+(autogenerated) id</docstring>
<paramlist>
<param name="winid" type="int" default=""/>
</paramlist>
</staticmethod>
<method name="SetSize" type="" overloaded="no">
<autodoc>SetSize(Size size)</autodoc>
+ <docstring>Sets the size of the window in pixels.</docstring>
<paramlist>
<param name="size" type="Size" default=""/>
</paramlist>
</method>
<method name="SetDimensions" type="" overloaded="no">
<autodoc>SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)</autodoc>
+ <docstring>Sets the position and size of the window in pixels. The sizeFlags
+parameter indicates the interpretation of the other params if they are
+-1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default
+shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be
+used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow
+dimensions of -1 and less to be interpreted as real dimensions, not
+default values.</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
</method>
<method name="SetRect" type="" overloaded="no">
<autodoc>SetRect(Rect rect, int sizeFlags=SIZE_AUTO)</autodoc>
+ <docstring>Sets the position and size of the window in pixels using a wx.Rect.</docstring>
<paramlist>
<param name="rect" type="Rect" default=""/>
<param name="sizeFlags" type="int" default="wxSIZE_AUTO"/>
</method>
<method name="SetSizeWH" type="" overloaded="no">
<autodoc>SetSizeWH(int width, int height)</autodoc>
+ <docstring>Sets the size of the window in pixels.</docstring>
<paramlist>
<param name="width" type="int" default=""/>
<param name="height" type="int" default=""/>
</method>
<method name="Move" type="" overloaded="no">
<autodoc>Move(Point pt, int flags=SIZE_USE_EXISTING)</autodoc>
+ <docstring>Moves the window to the given position.</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
<param name="flags" type="int" default="wxSIZE_USE_EXISTING"/>
</method>
<method name="MoveXY" type="" overloaded="no">
<autodoc>MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)</autodoc>
+ <docstring>Moves the window to the given position.</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
</method>
<method name="Raise" type="" overloaded="no">
<autodoc>Raise()</autodoc>
+ <docstring>Raises the window to the top of the window hierarchy if it is a
+managed window (dialog or frame).</docstring>
</method>
<method name="Lower" type="" overloaded="no">
<autodoc>Lower()</autodoc>
+ <docstring>Lowers the window to the bottom of the window hierarchy if it is a
+managed window (dialog or frame).</docstring>
</method>
<method name="SetClientSize" type="" overloaded="no">
<autodoc>SetClientSize(Size size)</autodoc>
+ <docstring>This sets the size of the window client area in pixels. Using this
+function to size a window tends to be more device-independent than
+wx.Window.SetSize, since the application need not worry about what
+dimensions the border or title bar have when trying to fit the window
+around panel items, for example.</docstring>
<paramlist>
<param name="size" type="Size" default=""/>
</paramlist>
</method>
<method name="SetClientSizeWH" type="" overloaded="no">
<autodoc>SetClientSizeWH(int width, int height)</autodoc>
+ <docstring>This sets the size of the window client area in pixels. Using this
+function to size a window tends to be more device-independent than
+wx.Window.SetSize, since the application need not worry about what
+dimensions the border or title bar have when trying to fit the window
+around panel items, for example.</docstring>
<paramlist>
<param name="width" type="int" default=""/>
<param name="height" type="int" default=""/>
</method>
<method name="SetClientRect" type="" overloaded="no">
<autodoc>SetClientRect(Rect rect)</autodoc>
+ <docstring>This sets the size of the window client area in pixels. Using this
+function to size a window tends to be more device-independent than
+wx.Window.SetSize, since the application need not worry about what
+dimensions the border or title bar have when trying to fit the window
+around panel items, for example.</docstring>
<paramlist>
<param name="rect" type="Rect" default=""/>
</paramlist>
</method>
<method name="GetRect" type="Rect" overloaded="no">
<autodoc>GetRect() -> Rect</autodoc>
+ <docstring>Returns the size and position of the window as a wx.Rect object.</docstring>
</method>
<method name="GetClientSize" type="Size" overloaded="no">
<autodoc>GetClientSize() -> Size</autodoc>
- <docstring>Get the window's client size.</docstring>
+ <docstring>This gets the size of the window's 'client area' in pixels. The client
+area is the area which may be drawn on by the programmer, excluding
+title bar, border, scrollbars, etc.</docstring>
</method>
<method name="GetClientSizeTuple" type="" overloaded="no">
<autodoc>GetClientSizeTuple() -> (width, height)</autodoc>
- <docstring>Get the window's client size.</docstring>
+ <docstring>This gets the size of the window's 'client area' in pixels. The client
+area is the area which may be drawn on by the programmer, excluding
+title bar, border, scrollbars, etc.</docstring>
<paramlist>
<param name="OUTPUT" type="int" default=""/>
<param name="OUTPUT" type="int" default=""/>
</method>
<method name="GetClientAreaOrigin" type="Point" overloaded="no">
<autodoc>GetClientAreaOrigin() -> Point</autodoc>
+ <docstring>Get the origin of the client area of the window relative to the
+window's top left corner (the client area may be shifted because of
+the borders, scrollbars, other decorations...)</docstring>
</method>
<method name="GetClientRect" type="Rect" overloaded="no">
<autodoc>GetClientRect() -> Rect</autodoc>
+ <docstring>Get the client area position and size as a wx.Rect object.</docstring>
</method>
<method name="GetBestSize" type="Size" overloaded="no">
<autodoc>GetBestSize() -> Size</autodoc>
- <docstring>Get the size best suited for the window (in fact, minimal acceptable size
-using which it will still look "nice")</docstring>
+ <docstring>This functions returns the best acceptable minimal size for the
+window, if applicable. For example, for a static text control, it will be
+the minimal size such that the control label is not truncated. For
+windows containing subwindows (suzh aswx.Panel), the size returned
+by this function will be the same as the size the window would have
+had after calling Fit.</docstring>
</method>
<method name="GetBestSizeTuple" type="" overloaded="no">
<autodoc>GetBestSizeTuple() -> (width, height)</autodoc>
- <docstring>Get the size best suited for the window (in fact, minimal acceptable size
-using which it will still look "nice")</docstring>
+ <docstring>This functions returns the best acceptable minimal size for the
+window, if applicable. For example, for a static text control, it will be
+the minimal size such that the control label is not truncated. For
+windows containing subwindows (suzh aswx.Panel), the size returned
+by this function will be the same as the size the window would have
+had after calling Fit.</docstring>
<paramlist>
<param name="OUTPUT" type="int" default=""/>
<param name="OUTPUT" type="int" default=""/>
</method>
<method name="GetAdjustedBestSize" type="Size" overloaded="no">
<autodoc>GetAdjustedBestSize() -> Size</autodoc>
+ <docstring>This method is similar to GetBestSize, except in one
+thing. GetBestSize should return the minimum untruncated size of the
+window, while this method will return the largest of BestSize and any
+user specified minimum size. ie. it is the minimum size the window
+should currently be drawn at, not the minimal size it can possibly
+tolerate.</docstring>
</method>
<method name="Center" type="" overloaded="no">
<autodoc>Center(int direction=BOTH)</autodoc>
+ <docstring>Centers the window. The parameter specifies the direction for
+cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
+also include wx.CENTER_ON_SCREEN flag if you want to center the window
+on the entire screen and not on its parent window. If it is a
+top-level window and has no parent then it will always be centered
+relative to the screen.</docstring>
<paramlist>
<param name="direction" type="int" default="wxBOTH"/>
</paramlist>
</method>
<method name="CenterOnScreen" type="" overloaded="no">
<autodoc>CenterOnScreen(int dir=BOTH)</autodoc>
+ <docstring>Center on screen (only works for top level windows)</docstring>
<paramlist>
<param name="dir" type="int" default="wxBOTH"/>
</paramlist>
</method>
<method name="CenterOnParent" type="" overloaded="no">
<autodoc>CenterOnParent(int dir=BOTH)</autodoc>
+ <docstring>Center with respect to the the parent window</docstring>
<paramlist>
<param name="dir" type="int" default="wxBOTH"/>
</paramlist>
</method>
<method name="Fit" type="" overloaded="no">
<autodoc>Fit()</autodoc>
+ <docstring>Sizes the window so that it fits around its subwindows. This function
+won't do anything if there are no subwindows and will only really work
+correctly if sizers are used for the subwindows layout. Also, if the
+window has exactly one subwindow it is better (faster and the result
+is more precise as Fit adds some margin to account for fuzziness of
+its calculations) to call window.SetClientSize(child.GetSize())
+instead of calling Fit.</docstring>
</method>
<method name="FitInside" type="" overloaded="no">
<autodoc>FitInside()</autodoc>
+ <docstring>Similar to Fit, but sizes the interior (virtual) size of a
+window. Mainly useful with scrolled windows to reset scrollbars after
+sizing changes that do not trigger a size event, and/or scrolled
+windows without an interior sizer. This function similarly won't do
+anything if there are no subwindows.</docstring>
</method>
<method name="SetSizeHints" type="" overloaded="no">
<autodoc>SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)</autodoc>
+ <docstring>Allows specification of minimum and maximum window sizes, and window
+size increments. If a pair of values is not set (or set to -1), the
+default values will be used. If this function is called, the user
+will not be able to size the window outside the given bounds. The
+resizing increments are only significant under Motif or Xt.</docstring>
<paramlist>
<param name="minW" type="int" default=""/>
<param name="minH" type="int" default=""/>
</method>
<method name="SetVirtualSizeHints" type="" overloaded="no">
<autodoc>SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)</autodoc>
+ <docstring>Allows specification of minimum and maximum virtual window sizes. If a
+pair of values is not set (or set to -1), the default values will be
+used. If this function is called, the user will not be able to size
+the virtual area of the window outside the given bounds.</docstring>
<paramlist>
<param name="minW" type="int" default=""/>
<param name="minH" type="int" default=""/>
</method>
<method name="SetVirtualSize" type="" overloaded="no">
<autodoc>SetVirtualSize(Size size)</autodoc>
- <docstring>Set the the virtual size of a window. For most windows this is just the
-client area of the window, but for some like scrolled windows it is more or
-less independent of the screen window size.</docstring>
+ <docstring>Set the the virtual size of a window in pixels. For most windows this
+is just the client area of the window, but for some like scrolled
+windows it is more or less independent of the screen window size.</docstring>
<paramlist>
<param name="size" type="Size" default=""/>
</paramlist>
</method>
<method name="SetVirtualSizeWH" type="" overloaded="no">
<autodoc>SetVirtualSizeWH(int w, int h)</autodoc>
- <docstring>Set the the virtual size of a window. For most windows this is just the
-client area of the window, but for some like scrolled windows it is more or
-less independent of the screen window size.</docstring>
+ <docstring>Set the the virtual size of a window in pixels. For most windows this
+is just the client area of the window, but for some like scrolled
+windows it is more or less independent of the screen window size.</docstring>
<paramlist>
<param name="w" type="int" default=""/>
<param name="h" type="int" default=""/>
</method>
<method name="GetVirtualSize" type="Size" overloaded="no">
<autodoc>GetVirtualSize() -> Size</autodoc>
- <docstring>Get the the virtual size of the window. For most windows this is just
-the client area of the window, but for some like scrolled windows it is
-more or less independent of the screen window size.</docstring>
+ <docstring>Get the the virtual size of the window in pixels. For most windows
+this is just the client area of the window, but for some like scrolled
+windows it is more or less independent of the screen window size.</docstring>
</method>
<method name="GetVirtualSizeTuple" type="" overloaded="no">
<autodoc>GetVirtualSizeTuple() -> (width, height)</autodoc>
- <docstring>Get the the virtual size of the window. For most windows this is just
-the client area of the window, but for some like scrolled windows it is
-more or less independent of the screen window size.</docstring>
+ <docstring>Get the the virtual size of the window in pixels. For most windows
+this is just the client area of the window, but for some like scrolled
+windows it is more or less independent of the screen window size.</docstring>
<paramlist>
<param name="OUTPUT" type="int" default=""/>
<param name="OUTPUT" type="int" default=""/>
</method>
<method name="GetBestVirtualSize" type="Size" overloaded="no">
<autodoc>GetBestVirtualSize() -> Size</autodoc>
+ <docstring>Return the largest of ClientSize and BestSize (as determined by a
+sizer, interior children, or other means)</docstring>
</method>
<method name="Show" type="bool" overloaded="no">
<autodoc>Show(bool show=True) -> bool</autodoc>
+ <docstring>Shows or hides the window. You may need to call Raise for a top level
+window if you want to bring it to top, although this is not needed if
+Show is called immediately after the frame creation. Returns True if
+the window has been shown or hidden or False if nothing was done
+because it already was in the requested state.</docstring>
<paramlist>
<param name="show" type="bool" default="True"/>
</paramlist>
</method>
<method name="Hide" type="bool" overloaded="no">
<autodoc>Hide() -> bool</autodoc>
+ <docstring>Equivalent to calling Show(False).</docstring>
</method>
<method name="Enable" type="bool" overloaded="no">
<autodoc>Enable(bool enable=True) -> bool</autodoc>
+ <docstring>Enable or disable the window for user input. Note that when a parent
+window is disabled, all of its children are disabled as well and they
+are reenabled again when the parent is. Returns true if the window
+has been enabled or disabled, false if nothing was done, i.e. if the
+window had already been in the specified state.</docstring>
<paramlist>
<param name="enable" type="bool" default="True"/>
</paramlist>
</method>
<method name="Disable" type="bool" overloaded="no">
<autodoc>Disable() -> bool</autodoc>
+ <docstring>Disables the window, same as Enable(false).</docstring>
</method>
<method name="IsShown" type="bool" overloaded="no">
<autodoc>IsShown() -> bool</autodoc>
+ <docstring>Returns true if the window is shown, false if it has been hidden.</docstring>
</method>
<method name="IsEnabled" type="bool" overloaded="no">
<autodoc>IsEnabled() -> bool</autodoc>
+ <docstring>Returns true if the window is enabled for input, false otherwise.</docstring>
</method>
<method name="SetWindowStyleFlag" type="" overloaded="no">
<autodoc>SetWindowStyleFlag(long style)</autodoc>
+ <docstring>Sets the style of the window. Please note that some styles cannot be
+changed after the window creation and that Refresh() might be called
+after changing the others for the change to take place immediately.</docstring>
<paramlist>
<param name="style" type="long" default=""/>
</paramlist>
</method>
<method name="GetWindowStyleFlag" type="long" overloaded="no">
<autodoc>GetWindowStyleFlag() -> long</autodoc>
- </method>
- <method name="SetWindowStyle" type="" overloaded="no">
- <autodoc>SetWindowStyle(long style)</autodoc>
- <paramlist>
- <param name="style" type="long" default=""/>
- </paramlist>
- </method>
- <method name="GetWindowStyle" type="long" overloaded="no">
- <autodoc>GetWindowStyle() -> long</autodoc>
+ <docstring>Gets the window style that was passed to the constructor or Create
+method.</docstring>
</method>
<method name="HasFlag" type="bool" overloaded="no">
<autodoc>HasFlag(int flag) -> bool</autodoc>
+ <docstring>Test if the given style is set for this window.</docstring>
<paramlist>
<param name="flag" type="int" default=""/>
</paramlist>
</method>
<method name="IsRetained" type="bool" overloaded="no">
<autodoc>IsRetained() -> bool</autodoc>
+ <docstring>Returns true if the window is retained, false otherwise. Retained
+windows are only available on X platforms.</docstring>
</method>
<method name="SetExtraStyle" type="" overloaded="no">
<autodoc>SetExtraStyle(long exStyle)</autodoc>
+ <docstring>Sets the extra style bits for the window. Extra styles are the less
+often used style bits which can't be set with the constructor or with
+SetWindowStyleFlag()</docstring>
<paramlist>
<param name="exStyle" type="long" default=""/>
</paramlist>
</method>
<method name="GetExtraStyle" type="long" overloaded="no">
<autodoc>GetExtraStyle() -> long</autodoc>
+ <docstring>Returns the extra style bits for the window.</docstring>
</method>
<method name="MakeModal" type="" overloaded="no">
<autodoc>MakeModal(bool modal=True)</autodoc>
+ <docstring>Disables all other windows in the application so that the user can
+only interact with this window. Passing False will reverse this
+effect.</docstring>
<paramlist>
<param name="modal" type="bool" default="True"/>
</paramlist>
</method>
<method name="SetThemeEnabled" type="" overloaded="no">
<autodoc>SetThemeEnabled(bool enableTheme)</autodoc>
+ <docstring>This function tells a window if it should use the system's "theme"
+ code to draw the windows' background instead if its own background
+ drawing code. This will only have an effect on platforms that support
+ the notion of themes in user defined windows. One such platform is
+ GTK+ where windows can have (very colourful) backgrounds defined by a
+ user's selected theme.
+
+Dialogs, notebook pages and the status bar have this flag set to true
+by default so that the default look and feel is simulated best.</docstring>
<paramlist>
<param name="enableTheme" type="bool" default=""/>
</paramlist>
</method>
<method name="GetThemeEnabled" type="bool" overloaded="no">
<autodoc>GetThemeEnabled() -> bool</autodoc>
- </method>
- <method name="ShouldInheritColours" type="bool" overloaded="no">
- <autodoc>ShouldInheritColours() -> bool</autodoc>
+ <docstring>Return the themeEnabled flag.</docstring>
</method>
<method name="SetFocus" type="" overloaded="no">
<autodoc>SetFocus()</autodoc>
+ <docstring>Set's the focus to this window, allowing it to receive keyboard input.</docstring>
</method>
<method name="SetFocusFromKbd" type="" overloaded="no">
<autodoc>SetFocusFromKbd()</autodoc>
+ <docstring>Set focus to this window as the result of a keyboard action. Normally
+only called internally.</docstring>
</method>
<staticmethod name="FindFocus" type="Window" overloaded="no">
- <autodoc>Window.FindFocus() -> Window</autodoc>
+ <autodoc>FindFocus() -> Window</autodoc>
+ <docstring>Returns the window or control that currently has the keyboard focus,
+or None.</docstring>
</staticmethod>
<method name="AcceptsFocus" type="bool" overloaded="no">
<autodoc>AcceptsFocus() -> bool</autodoc>
+ <docstring>Can this window have focus?</docstring>
</method>
<method name="AcceptsFocusFromKeyboard" type="bool" overloaded="no">
<autodoc>AcceptsFocusFromKeyboard() -> bool</autodoc>
+ <docstring>Can this window be given focus by keyboard navigation? if not, the
+only way to give it focus (provided it accepts it at all) is to click
+it.</docstring>
</method>
<method name="GetDefaultItem" type="Window" overloaded="no">
<autodoc>GetDefaultItem() -> Window</autodoc>
+ <docstring>Get the default child of this parent, i.e. the one which is activated
+by pressing <Enter> such as the OK button on a wx.Dialog.</docstring>
</method>
<method name="SetDefaultItem" type="Window" overloaded="no">
<autodoc>SetDefaultItem(Window child) -> Window</autodoc>
+ <docstring>Set this child as default, return the old default.</docstring>
<paramlist>
<param name="child" type="Window" default=""/>
</paramlist>
</method>
<method name="SetTmpDefaultItem" type="" overloaded="no">
<autodoc>SetTmpDefaultItem(Window win)</autodoc>
+ <docstring>Set this child as temporary default</docstring>
<paramlist>
<param name="win" type="Window" default=""/>
</paramlist>
</method>
<method name="GetChildren" type="PyObject" overloaded="no">
<autodoc>GetChildren() -> PyObject</autodoc>
+ <docstring>Returns a list of the window's children. NOTE: Currently this is a
+copy of the child window list maintained by the window, so the return
+value of this function is only valid as long as the window's children
+do not change.</docstring>
</method>
<method name="GetParent" type="Window" overloaded="no">
<autodoc>GetParent() -> Window</autodoc>
+ <docstring>Returns the parent window of this window, or None if there isn't one.</docstring>
</method>
<method name="GetGrandParent" type="Window" overloaded="no">
<autodoc>GetGrandParent() -> Window</autodoc>
+ <docstring>Returns the parent of the parent of this window, or None if there isn't one.</docstring>
</method>
<method name="IsTopLevel" type="bool" overloaded="no">
<autodoc>IsTopLevel() -> bool</autodoc>
+ <docstring>Returns true if the given window is a top-level one. Currently all
+frames and dialogs are always considered to be top-level windows (even
+if they have a parent window).</docstring>
</method>
<method name="Reparent" type="bool" overloaded="no">
<autodoc>Reparent(Window newParent) -> bool</autodoc>
+ <docstring>Reparents the window, i.e the window will be removed from its current
+parent window (e.g. a non-standard toolbar in a wxFrame) and then
+re-inserted into another. Available on Windows and GTK. Returns True
+if the parent was changed, False otherwise (error or newParent ==
+oldParent)</docstring>
<paramlist>
<param name="newParent" type="Window" default=""/>
</paramlist>
</method>
<method name="AddChild" type="" overloaded="no">
<autodoc>AddChild(Window child)</autodoc>
+ <docstring>Adds a child window. This is called automatically by window creation
+functions so should not be required by the application programmer.</docstring>
<paramlist>
<param name="child" type="Window" default=""/>
</paramlist>
</method>
<method name="RemoveChild" type="" overloaded="no">
<autodoc>RemoveChild(Window child)</autodoc>
+ <docstring>Removes a child window. This is called automatically by window
+deletion functions so should not be required by the application
+programmer.</docstring>
<paramlist>
<param name="child" type="Window" default=""/>
</paramlist>
</method>
<method name="FindWindowById" type="Window" overloaded="no">
<autodoc>FindWindowById(long winid) -> Window</autodoc>
+ <docstring>Find a chld of this window by window ID</docstring>
<paramlist>
<param name="winid" type="long" default=""/>
</paramlist>
</method>
<method name="FindWindowByName" type="Window" overloaded="no">
<autodoc>FindWindowByName(String name) -> Window</autodoc>
+ <docstring>Find a child of this window by name</docstring>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
</method>
<method name="GetEventHandler" type="EvtHandler" overloaded="no">
<autodoc>GetEventHandler() -> EvtHandler</autodoc>
+ <docstring>Returns the event handler for this window. By default, the window is
+its own event handler.</docstring>
</method>
<method name="SetEventHandler" type="" overloaded="no">
<autodoc>SetEventHandler(EvtHandler handler)</autodoc>
+ <docstring>Sets the event handler for this window. An event handler is an object
+that is capable of processing the events sent to a window. By default,
+the window is its own event handler, but an application may wish to
+substitute another, for example to allow central implementation of
+event-handling for a variety of different window classes.
+
+It is usually better to use wx.Window.PushEventHandler since this sets
+up a chain of event handlers, where an event not handled by one event
+handler is handed to the next one in the chain.</docstring>
<paramlist>
<param name="handler" type="EvtHandler" default=""/>
</paramlist>
</method>
<method name="PushEventHandler" type="" overloaded="no">
<autodoc>PushEventHandler(EvtHandler handler)</autodoc>
+ <docstring>Pushes this event handler onto the event handler stack for the window.
+An event handler is an object that is capable of processing the events
+sent to a window. By default, the window is its own event handler, but
+an application may wish to substitute another, for example to allow
+central implementation of event-handling for a variety of different
+window classes.
+
+wx.Window.PushEventHandler allows an application to set up a chain of
+event handlers, where an event not handled by one event handler is
+handed to the next one in the chain. Use wx.Window.PopEventHandler to
+remove the event handler.</docstring>
<paramlist>
<param name="handler" type="EvtHandler" default=""/>
</paramlist>
</method>
<method name="PopEventHandler" type="EvtHandler" overloaded="no">
<autodoc>PopEventHandler(bool deleteHandler=False) -> EvtHandler</autodoc>
+ <docstring>Removes and returns the top-most event handler on the event handler
+stack. If deleteHandler is True then the wx.EvtHandler object will be
+destroyed after it is popped.</docstring>
<paramlist>
<param name="deleteHandler" type="bool" default="False"/>
</paramlist>
</method>
<method name="RemoveEventHandler" type="bool" overloaded="no">
<autodoc>RemoveEventHandler(EvtHandler handler) -> bool</autodoc>
+ <docstring>Find the given handler in the event handler chain and remove (but
+not delete) it from the event handler chain, return True if it was
+found and False otherwise (this also results in an assert failure so
+this function should only be called when the handler is supposed to
+be there.)</docstring>
<paramlist>
<param name="handler" type="EvtHandler" default=""/>
</paramlist>
</method>
<method name="SetValidator" type="" overloaded="no">
<autodoc>SetValidator(Validator validator)</autodoc>
+ <docstring>Deletes the current validator (if any) and sets the window validator,
+having called wx.Validator.Clone to create a new validator of this
+type.</docstring>
<paramlist>
<param name="validator" type="wxValidator" default=""/>
</paramlist>
</method>
<method name="GetValidator" type="wxValidator" overloaded="no">
<autodoc>GetValidator() -> Validator</autodoc>
+ <docstring>Returns a pointer to the current validator for the window, or None if
+there is none.</docstring>
</method>
<method name="SetAcceleratorTable" type="" overloaded="no">
<autodoc>SetAcceleratorTable(AcceleratorTable accel)</autodoc>
+ <docstring>Sets the accelerator table for this window.</docstring>
<paramlist>
<param name="accel" type="AcceleratorTable" default=""/>
</paramlist>
</method>
<method name="GetAcceleratorTable" type="AcceleratorTable" overloaded="no">
<autodoc>GetAcceleratorTable() -> AcceleratorTable</autodoc>
+ <docstring>Gets the accelerator table for this window.</docstring>
</method>
<method name="RegisterHotKey" type="bool" overloaded="no">
<autodoc>RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool</autodoc>
+ <docstring>Registers a system wide hotkey. Every time the user presses the hotkey
+registered here, this window will receive a hotkey event. It will
+receive the event even if the application is in the background and
+does not have the input focus because the user is working with some
+other application. To bind an event handler function to this hotkey
+use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
+hotkey was registered successfully.</docstring>
<paramlist>
<param name="hotkeyId" type="int" default=""/>
<param name="modifiers" type="int" default=""/>
</method>
<method name="UnregisterHotKey" type="bool" overloaded="no">
<autodoc>UnregisterHotKey(int hotkeyId) -> bool</autodoc>
+ <docstring>Unregisters a system wide hotkey.</docstring>
<paramlist>
<param name="hotkeyId" type="int" default=""/>
</paramlist>
</method>
<method name="ConvertDialogPointToPixels" type="Point" overloaded="no">
<autodoc>ConvertDialogPointToPixels(Point pt) -> Point</autodoc>
+ <docstring>Converts a point or size from dialog units to pixels. Dialog units
+are used for maintaining a dialog's proportions even if the font
+changes. For the x dimension, the dialog units are multiplied by the
+average character width and then divided by 4. For the y dimension,
+the dialog units are multiplied by the average character height and
+then divided by 8.</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
</paramlist>
</method>
<method name="ConvertDialogSizeToPixels" type="Size" overloaded="no">
<autodoc>ConvertDialogSizeToPixels(Size sz) -> Size</autodoc>
+ <docstring>Converts a point or size from dialog units to pixels. Dialog units
+are used for maintaining a dialog's proportions even if the font
+changes. For the x dimension, the dialog units are multiplied by the
+average character width and then divided by 4. For the y dimension,
+the dialog units are multiplied by the average character height and
+then divided by 8.</docstring>
<paramlist>
<param name="sz" type="Size" default=""/>
</paramlist>
</method>
<method name="DLG_PNT" type="Point" overloaded="no">
<autodoc>DLG_PNT(Point pt) -> Point</autodoc>
+ <docstring>Converts a point or size from dialog units to pixels. Dialog units
+are used for maintaining a dialog's proportions even if the font
+changes. For the x dimension, the dialog units are multiplied by the
+average character width and then divided by 4. For the y dimension,
+the dialog units are multiplied by the average character height and
+then divided by 8.</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
</paramlist>
</method>
<method name="DLG_SZE" type="Size" overloaded="no">
<autodoc>DLG_SZE(Size sz) -> Size</autodoc>
+ <docstring>Converts a point or size from dialog units to pixels. Dialog units
+are used for maintaining a dialog's proportions even if the font
+changes. For the x dimension, the dialog units are multiplied by the
+average character width and then divided by 4. For the y dimension,
+the dialog units are multiplied by the average character height and
+then divided by 8.</docstring>
<paramlist>
<param name="sz" type="Size" default=""/>
</paramlist>
</method>
<method name="WarpPointer" type="" overloaded="no">
<autodoc>WarpPointer(int x, int y)</autodoc>
+ <docstring>Moves the pointer to the given position on the window.
+
+NOTE: This function is not supported under Mac because Apple Human
+Interface Guidelines forbid moving the mouse cursor programmatically.</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
</method>
<method name="CaptureMouse" type="" overloaded="no">
<autodoc>CaptureMouse()</autodoc>
+ <docstring>Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
+release the capture.
+
+Note that wxWindows maintains the stack of windows having captured the
+mouse and when the mouse is released the capture returns to the window
+which had had captured it previously and it is only really released if
+there were no previous window. In particular, this means that you must
+release the mouse as many times as you capture it.</docstring>
</method>
<method name="ReleaseMouse" type="" overloaded="no">
<autodoc>ReleaseMouse()</autodoc>
+ <docstring>Releases mouse input captured with wx.Window.CaptureMouse.</docstring>
</method>
<staticmethod name="GetCapture" type="Window" overloaded="no">
- <autodoc>Window.GetCapture() -> Window</autodoc>
+ <autodoc>GetCapture() -> Window</autodoc>
+ <docstring>Returns the window which currently captures the mouse or None</docstring>
</staticmethod>
<method name="HasCapture" type="bool" overloaded="no">
<autodoc>HasCapture() -> bool</autodoc>
+ <docstring>Returns true if this window has the current mouse capture.</docstring>
</method>
<method name="Refresh" type="" overloaded="no">
<autodoc>Refresh(bool eraseBackground=True, Rect rect=None)</autodoc>
+ <docstring>Mark the specified rectangle (or the whole window) as "dirty" so it
+will be repainted. Causes an EVT_PAINT event to be generated and sent
+to the window.</docstring>
<paramlist>
<param name="eraseBackground" type="bool" default="True"/>
<param name="rect" type="Rect" default="NULL"/>
</method>
<method name="RefreshRect" type="" overloaded="no">
<autodoc>RefreshRect(Rect rect)</autodoc>
+ <docstring>Redraws the contents of the given rectangle: the area inside it will
+be repainted. This is the same as Refresh but has a nicer syntax.</docstring>
<paramlist>
<param name="rect" type="Rect" default=""/>
</paramlist>
</method>
<method name="Update" type="" overloaded="no">
<autodoc>Update()</autodoc>
+ <docstring>Calling this method immediately repaints the invalidated area of the
+window instead of waiting for the EVT_PAINT event to happen, (normally
+this would usually only happen when the flow of control returns to the
+event loop.) Notice that this function doesn't refresh the window and
+does nothing if the window has been already repainted. Use Refresh
+first if you want to immediately redraw the window (or some portion of
+it) unconditionally.</docstring>
</method>
<method name="ClearBackground" type="" overloaded="no">
<autodoc>ClearBackground()</autodoc>
+ <docstring>Clears the window by filling it with the current background
+colour. Does not cause an erase background event to be generated.</docstring>
</method>
<method name="Freeze" type="" overloaded="no">
<autodoc>Freeze()</autodoc>
+ <docstring>Freezes the window or, in other words, prevents any updates from
+taking place on screen, the window is not redrawn at all. Thaw must be
+called to reenable window redrawing.
+
+This method is useful for visual appearance optimization (for example,
+it is a good idea to use it before inserting large amount of text into
+a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
+for all controls so it is mostly just a hint to wxWindows and not a
+mandatory directive.</docstring>
</method>
<method name="Thaw" type="" overloaded="no">
<autodoc>Thaw()</autodoc>
+ <docstring>Reenables window updating after a previous call to Freeze.</docstring>
</method>
<method name="PrepareDC" type="" overloaded="no">
<autodoc>PrepareDC(DC dc)</autodoc>
+ <docstring>Call this function to prepare the device context for drawing a
+scrolled image. It sets the device origin according to the current
+scroll position.</docstring>
<paramlist>
<param name="dc" type="wxDC" default=""/>
</paramlist>
</method>
<method name="GetUpdateRegion" type="wxRegion" overloaded="no">
<autodoc>GetUpdateRegion() -> Region</autodoc>
+ <docstring>Returns the region specifying which parts of the window have been
+damaged. Should only be called within an EVT_PAINT handler.</docstring>
</method>
<method name="GetUpdateClientRect" type="Rect" overloaded="no">
<autodoc>GetUpdateClientRect() -> Rect</autodoc>
+ <docstring>Get the update rectangle region bounding box in client coords.</docstring>
</method>
<method name="IsExposed" type="bool" overloaded="no">
<autodoc>IsExposed(int x, int y, int w=1, int h=1) -> bool</autodoc>
+ <docstring>Returns true if the given point or rectangle area has been exposed
+since the last repaint. Call this in an paint event handler to
+optimize redrawing by only redrawing those areas, which have been
+exposed.</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
</method>
<method name="IsExposedPoint" type="bool" overloaded="no">
<autodoc>IsExposedPoint(Point pt) -> bool</autodoc>
+ <docstring>Returns true if the given point or rectangle area has been exposed
+since the last repaint. Call this in an paint event handler to
+optimize redrawing by only redrawing those areas, which have been
+exposed.</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
</paramlist>
</method>
<method name="isExposedRect" type="bool" overloaded="no">
<autodoc>isExposedRect(Rect rect) -> bool</autodoc>
+ <docstring>Returns true if the given point or rectangle area has been exposed
+since the last repaint. Call this in an paint event handler to
+optimize redrawing by only redrawing those areas, which have been
+exposed.</docstring>
<paramlist>
<param name="rect" type="Rect" default=""/>
</paramlist>
</method>
<method name="SetBackgroundColour" type="bool" overloaded="no">
<autodoc>SetBackgroundColour(Colour colour) -> bool</autodoc>
+ <docstring>Sets the background colour of the window. Returns True if the colour
+was changed. The background colour is usually painted by the default
+EVT_ERASE_BACKGROUND event handler function under Windows and
+automatically under GTK.
+
+Note that setting the background colour does not cause an immediate
+refresh, so you may wish to call ClearBackground or Refresh after
+calling this function.
+
+Use this function with care under GTK+ as the new appearance of the
+window might not look equally well when used with themes, i.e GTK+'s
+ability to change its look as the user wishes with run-time loadable
+modules.</docstring>
<paramlist>
<param name="colour" type="wxColour" default=""/>
</paramlist>
</method>
<method name="SetForegroundColour" type="bool" overloaded="no">
<autodoc>SetForegroundColour(Colour colour) -> bool</autodoc>
+ <docstring>Sets the foreground colour of the window. Returns True is the colour
+was changed. The interpretation of foreground colour is dependent on
+the window class; it may be the text colour or other colour, or it may
+not be used at all.</docstring>
<paramlist>
<param name="colour" type="wxColour" default=""/>
</paramlist>
</method>
<method name="GetBackgroundColour" type="wxColour" overloaded="no">
<autodoc>GetBackgroundColour() -> Colour</autodoc>
+ <docstring>Returns the background colour of the window.</docstring>
</method>
<method name="GetForegroundColour" type="wxColour" overloaded="no">
<autodoc>GetForegroundColour() -> Colour</autodoc>
+ <docstring>Returns the foreground colour of the window. The interpretation of
+foreground colour is dependent on the window class; it may be the text
+colour or other colour, or it may not be used at all.</docstring>
</method>
<method name="SetCursor" type="bool" overloaded="no">
<autodoc>SetCursor(Cursor cursor) -> bool</autodoc>
+ <docstring>Sets the window's cursor. Notice that the window cursor also sets it
+for the children of the window implicitly.
+
+The cursor may be wx.NullCursor in which case the window cursor will
+be reset back to default.</docstring>
<paramlist>
<param name="cursor" type="wxCursor" default=""/>
</paramlist>
</method>
<method name="GetCursor" type="wxCursor" overloaded="no">
<autodoc>GetCursor() -> Cursor</autodoc>
+ <docstring>Return the cursor associated with this window.</docstring>
</method>
<method name="SetFont" type="bool" overloaded="no">
<autodoc>SetFont(Font font) -> bool</autodoc>
+ <docstring>Sets the font for this window.</docstring>
<paramlist>
<param name="font" type="wxFont" default=""/>
</paramlist>
</method>
<method name="GetFont" type="wxFont" overloaded="no">
<autodoc>GetFont() -> Font</autodoc>
+ <docstring>Returns a reference to the font for this window.</docstring>
</method>
<method name="SetCaret" type="" overloaded="no">
<autodoc>SetCaret(Caret caret)</autodoc>
+ <docstring>Sets the caret associated with the window.</docstring>
<paramlist>
<param name="caret" type="wxCaret" default=""/>
</paramlist>
</method>
<method name="GetCaret" type="wxCaret" overloaded="no">
<autodoc>GetCaret() -> Caret</autodoc>
+ <docstring>Returns the caret associated with the window.</docstring>
</method>
<method name="GetCharHeight" type="int" overloaded="no">
<autodoc>GetCharHeight() -> int</autodoc>
+ <docstring>Get the (average) character size for the current font.</docstring>
</method>
<method name="GetCharWidth" type="int" overloaded="no">
<autodoc>GetCharWidth() -> int</autodoc>
+ <docstring>Get the (average) character size for the current font.</docstring>
</method>
<method name="GetTextExtent" type="" overloaded="no">
<autodoc>GetTextExtent(String string) -> (width, height)</autodoc>
<method name="GetFullTextExtent" type="" overloaded="no">
<autodoc>GetFullTextExtent(String string, Font font=None) ->
(width, height, descent, externalLeading)</autodoc>
- <docstring>Get the width, height, decent and leading of the text using the current or specified font.</docstring>
+ <docstring>Get the width, height, decent and leading of the text using the
+current or specified font.</docstring>
<paramlist>
<param name="string" type="String" default=""/>
<param name="OUTPUT" type="int" default=""/>
</paramlist>
</method>
<method name="ClientToScreenXY" type="" overloaded="no">
- <autodoc>ClientToScreenXY(int x, int y)</autodoc>
+ <autodoc>ClientToScreenXY(int x, int y) -> (x,y)</autodoc>
+ <docstring>Converts to screen coordinates from coordinates relative to this window.</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
</paramlist>
</method>
<method name="ScreenToClientXY" type="" overloaded="no">
- <autodoc>ScreenToClientXY(int x, int y)</autodoc>
+ <autodoc>ScreenToClientXY(int x, int y) -> (x,y)</autodoc>
+ <docstring>Converts from screen to client window coordinates.</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
</method>
<method name="ClientToScreen" type="Point" overloaded="no">
<autodoc>ClientToScreen(Point pt) -> Point</autodoc>
+ <docstring>Converts to screen coordinates from coordinates relative to this window.</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
</paramlist>
</method>
<method name="ScreenToClient" type="Point" overloaded="no">
<autodoc>ScreenToClient(Point pt) -> Point</autodoc>
+ <docstring>Converts from screen to client window coordinates.</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
</paramlist>
</method>
<method name="HitTestXY" type="wxHitTest" overloaded="no">
<autodoc>HitTestXY(int x, int y) -> int</autodoc>
+ <docstring>Test where the given (in client coords) point lies</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
</method>
<method name="HitTest" type="wxHitTest" overloaded="no">
<autodoc>HitTest(Point pt) -> int</autodoc>
+ <docstring>Test where the given (in client coords) point lies</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
</paramlist>
</method>
- <method name="GetBorderFlags" type="wxBorder" overloaded="no">
- <autodoc>GetBorderFlags(long flags) -> int</autodoc>
+ <method name="GetBorder" type="wxBorder" overloaded="yes">
+ <docstring>Get the window border style from the given flags: this is different
+from simply doing flags & wxBORDER_MASK because it uses
+GetDefaultBorder() to translate wxBORDER_DEFAULT to something
+reasonable.
+</docstring>
<paramlist>
<param name="flags" type="long" default=""/>
</paramlist>
</method>
- <method name="GetBorder" type="wxBorder" overloaded="no">
- <autodoc>GetBorder() -> int</autodoc>
+ <method name="GetBorder" type="wxBorder" overloaded="yes">
+ <autodoc>GetBorder(long flags) -> int
+GetBorder() -> int</autodoc>
+ <docstring>Get border for the flags of this window</docstring>
</method>
<method name="UpdateWindowUI" type="" overloaded="no">
<autodoc>UpdateWindowUI(long flags=UPDATE_UI_NONE)</autodoc>
+ <docstring>This function sends EVT_UPDATE_UI events to the window. The particular
+implementation depends on the window; for example a wx.ToolBar will
+send an update UI event for each toolbar button, and a wx.Frame will
+send an update UI event for each menubar menu item. You can call this
+function from your application to ensure that your UI is up-to-date at
+a particular point in time (as far as your EVT_UPDATE_UI handlers are
+concerned). This may be necessary if you have called
+wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to
+limit the overhead that wxWindows incurs by sending update UI events
+in idle time.
+
+The flags should be a bitlist of one or more of the following values:
+
+ wx.UPDATE_UI_NONE No particular value
+ wx.UPDATE_UI_RECURSE Call the function for descendants
+ wx.UPDATE_UI_FROMIDLE Invoked from OnIdle
+
+If you are calling this function from an OnIdle function, make sure
+you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to
+only update the UI elements that need to be updated in idle time. Some
+windows update their elements only when necessary, for example when a
+menu is about to be shown. The following is an example of how to call
+UpdateWindowUI from an idle function.
+
+ def OnIdle(self, evt):
+ if wx.UpdateUIEvent.CanUpdate(self):
+ self.UpdateWindowUI(wx.UPDATE_UI_FROMIDLE);
+</docstring>
<paramlist>
<param name="flags" type="long" default="wxUPDATE_UI_NONE"/>
</paramlist>
</method>
<method name="PopupMenuXY" type="bool" overloaded="no">
<autodoc>PopupMenuXY(Menu menu, int x, int y) -> bool</autodoc>
+ <docstring>Pops up the given menu at the specified coordinates, relative to this
+window, and returns control when the user has dismissed the menu. If a
+menu item is selected, the corresponding menu event is generated and
+will be processed as usual.</docstring>
<paramlist>
<param name="menu" type="wxMenu" default=""/>
<param name="x" type="int" default=""/>
</method>
<method name="PopupMenu" type="bool" overloaded="no">
<autodoc>PopupMenu(Menu menu, Point pos) -> bool</autodoc>
+ <docstring>Pops up the given menu at the specified coordinates, relative to this
+window, and returns control when the user has dismissed the menu. If a
+menu item is selected, the corresponding menu event is generated and
+will be processed as usual.</docstring>
<paramlist>
<param name="menu" type="wxMenu" default=""/>
<param name="pos" type="Point" default=""/>
</method>
<method name="GetHandle" type="long" overloaded="no">
<autodoc>GetHandle() -> long</autodoc>
+ <docstring>Returns the platform-specific handle (as a long integer) of the
+physical window. Currently on wxMac it returns the handle of the
+toplevel parent of the window.</docstring>
</method>
<method name="HasScrollbar" type="bool" overloaded="no">
<autodoc>HasScrollbar(int orient) -> bool</autodoc>
+ <docstring>Does the window have the scrollbar for this orientation?</docstring>
<paramlist>
<param name="orient" type="int" default=""/>
</paramlist>
</method>
<method name="SetScrollbar" type="" overloaded="no">
- <autodoc>SetScrollbar(int orient, int pos, int thumbvisible, int range, bool refresh=True)</autodoc>
+ <autodoc>SetScrollbar(int orientation, int pos, int thumbvisible, int range,
+ bool refresh=True)</autodoc>
+ <docstring>Sets the scrollbar properties of a built-in scrollbar.
+
+ orientation: Determines the scrollbar whose page size is to be
+ set. May be wx.HORIZONTAL or wx.VERTICAL.
+
+ position: The position of the scrollbar in scroll units.
+
+ thumbSize: The size of the thumb, or visible portion of the
+ scrollbar, in scroll units.
+
+ range: The maximum position of the scrollbar.
+
+ refresh: True to redraw the scrollbar, false otherwise.</docstring>
<paramlist>
- <param name="orient" type="int" default=""/>
+ <param name="orientation" type="int" default=""/>
<param name="pos" type="int" default=""/>
<param name="thumbvisible" type="int" default=""/>
<param name="range" type="int" default=""/>
</paramlist>
</method>
<method name="SetScrollPos" type="" overloaded="no">
- <autodoc>SetScrollPos(int orient, int pos, bool refresh=True)</autodoc>
+ <autodoc>SetScrollPos(int orientation, int pos, bool refresh=True)</autodoc>
+ <docstring>Sets the position of one of the built-in scrollbars.</docstring>
<paramlist>
- <param name="orient" type="int" default=""/>
+ <param name="orientation" type="int" default=""/>
<param name="pos" type="int" default=""/>
<param name="refresh" type="bool" default="True"/>
</paramlist>
</method>
<method name="GetScrollPos" type="int" overloaded="no">
- <autodoc>GetScrollPos(int orient) -> int</autodoc>
+ <autodoc>GetScrollPos(int orientation) -> int</autodoc>
+ <docstring>Returns the built-in scrollbar position.</docstring>
<paramlist>
- <param name="orient" type="int" default=""/>
+ <param name="orientation" type="int" default=""/>
</paramlist>
</method>
<method name="GetScrollThumb" type="int" overloaded="no">
- <autodoc>GetScrollThumb(int orient) -> int</autodoc>
+ <autodoc>GetScrollThumb(int orientation) -> int</autodoc>
+ <docstring>Returns the built-in scrollbar thumb size.</docstring>
<paramlist>
- <param name="orient" type="int" default=""/>
+ <param name="orientation" type="int" default=""/>
</paramlist>
</method>
<method name="GetScrollRange" type="int" overloaded="no">
- <autodoc>GetScrollRange(int orient) -> int</autodoc>
+ <autodoc>GetScrollRange(int orientation) -> int</autodoc>
+ <docstring>Returns the built-in scrollbar range.</docstring>
<paramlist>
- <param name="orient" type="int" default=""/>
+ <param name="orientation" type="int" default=""/>
</paramlist>
</method>
<method name="ScrollWindow" type="" overloaded="no">
<autodoc>ScrollWindow(int dx, int dy, Rect rect=None)</autodoc>
+ <docstring>Physically scrolls the pixels in the window and move child windows
+accordingly. Use this function to optimise your scrolling
+implementations, to minimise the area that must be redrawn. Note that
+it is rarely required to call this function from a user program.
+
+ dx: Amount to scroll horizontally.
+
+ dy: Amount to scroll vertically.
+
+ rect: Rectangle to invalidate. If this is None, the whole window
+ is invalidated. If you pass a rectangle corresponding to the
+ area of the window exposed by the scroll, your painting
+ handler can optimize painting by checking for the
+ invalidated region.</docstring>
<paramlist>
<param name="dx" type="int" default=""/>
<param name="dy" type="int" default=""/>
</method>
<method name="ScrollLines" type="bool" overloaded="no">
<autodoc>ScrollLines(int lines) -> bool</autodoc>
+ <docstring>If the platform and window class supports it, scrolls the window by
+the given number of lines down, if lines is positive, or up if lines
+is negative. Returns True if the window was scrolled, False if it was
+already on top/bottom and nothing was done.</docstring>
<paramlist>
<param name="lines" type="int" default=""/>
</paramlist>
</method>
<method name="ScrollPages" type="bool" overloaded="no">
<autodoc>ScrollPages(int pages) -> bool</autodoc>
+ <docstring>If the platform and window class supports it, scrolls the window by
+the given number of pages down, if pages is positive, or up if pages
+is negative. Returns True if the window was scrolled, False if it was
+already on top/bottom and nothing was done.</docstring>
<paramlist>
<param name="pages" type="int" default=""/>
</paramlist>
</method>
<method name="LineUp" type="bool" overloaded="no">
<autodoc>LineUp() -> bool</autodoc>
+ <docstring>This is just a wrapper for ScrollLines(-1).</docstring>
</method>
<method name="LineDown" type="bool" overloaded="no">
<autodoc>LineDown() -> bool</autodoc>
+ <docstring>This is just a wrapper for ScrollLines(1).</docstring>
</method>
<method name="PageUp" type="bool" overloaded="no">
<autodoc>PageUp() -> bool</autodoc>
+ <docstring>This is just a wrapper for ScrollPages(-1).</docstring>
</method>
<method name="PageDown" type="bool" overloaded="no">
<autodoc>PageDown() -> bool</autodoc>
+ <docstring>This is just a wrapper for ScrollPages(1).</docstring>
</method>
<method name="SetHelpText" type="" overloaded="no">
<autodoc>SetHelpText(String text)</autodoc>
+ <docstring>Sets the help text to be used as context-sensitive help for this
+window. Note that the text is actually stored by the current
+wxHelpProvider implementation, and not in the window object itself.</docstring>
<paramlist>
<param name="text" type="String" default=""/>
</paramlist>
</method>
<method name="SetHelpTextForId" type="" overloaded="no">
<autodoc>SetHelpTextForId(String text)</autodoc>
+ <docstring>Associate this help text with all windows with the same id as this
+one.</docstring>
<paramlist>
<param name="text" type="String" default=""/>
</paramlist>
</method>
<method name="GetHelpText" type="String" overloaded="no">
<autodoc>GetHelpText() -> String</autodoc>
+ <docstring>Gets the help text to be used as context-sensitive help for this
+window. Note that the text is actually stored by the current
+wxHelpProvider implementation, and not in the window object itself.</docstring>
</method>
<method name="SetToolTipString" type="" overloaded="no">
<autodoc>SetToolTipString(String tip)</autodoc>
+ <docstring>Attach a tooltip to the window.</docstring>
<paramlist>
<param name="tip" type="String" default=""/>
</paramlist>
</method>
<method name="SetToolTip" type="" overloaded="no">
<autodoc>SetToolTip(ToolTip tip)</autodoc>
+ <docstring>Attach a tooltip to the window.</docstring>
<paramlist>
<param name="tip" type="wxToolTip" default=""/>
</paramlist>
</method>
<method name="GetToolTip" type="wxToolTip" overloaded="no">
<autodoc>GetToolTip() -> ToolTip</autodoc>
+ <docstring>get the associated tooltip or None if none</docstring>
</method>
<method name="SetDropTarget" type="" overloaded="no">
- <autodoc>SetDropTarget(PyDropTarget dropTarget)</autodoc>
+ <autodoc>SetDropTarget(DropTarget dropTarget)</autodoc>
+ <docstring>Associates a drop target with this window. If the window already has
+a drop target, it is deleted.</docstring>
<paramlist>
<param name="dropTarget" type="wxPyDropTarget" default=""/>
</paramlist>
</method>
<method name="GetDropTarget" type="wxPyDropTarget" overloaded="no">
- <autodoc>GetDropTarget() -> PyDropTarget</autodoc>
+ <autodoc>GetDropTarget() -> DropTarget</autodoc>
+ <docstring>Returns the associated drop target, which may be None.</docstring>
</method>
<method name="SetConstraints" type="" overloaded="no">
<autodoc>SetConstraints(LayoutConstraints constraints)</autodoc>
+ <docstring>Sets the window to have the given layout constraints. If an existing
+layout constraints object is already owned by the window, it will be
+deleted. Pass None to disassociate and delete the window's current
+constraints.
+
+You must call SetAutoLayout to tell a window to use the constraints
+automatically in its default EVT_SIZE handler; otherwise, you must
+handle EVT_SIZE yourself and call Layout() explicitly. When setting
+both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
+effect.</docstring>
<paramlist>
<param name="constraints" type="wxLayoutConstraints" default=""/>
</paramlist>
</method>
<method name="GetConstraints" type="wxLayoutConstraints" overloaded="no">
<autodoc>GetConstraints() -> LayoutConstraints</autodoc>
+ <docstring>Returns a pointer to the window's layout constraints, or None if there
+are none.</docstring>
</method>
<method name="SetAutoLayout" type="" overloaded="no">
<autodoc>SetAutoLayout(bool autoLayout)</autodoc>
+ <docstring>Determines whether the Layout function will be called automatically
+when the window is resized. It is called implicitly by SetSizer but
+if you use SetConstraints you should call it manually or otherwise the
+window layout won't be correctly updated when its size changes.</docstring>
<paramlist>
<param name="autoLayout" type="bool" default=""/>
</paramlist>
</method>
<method name="GetAutoLayout" type="bool" overloaded="no">
<autodoc>GetAutoLayout() -> bool</autodoc>
+ <docstring>Returns the current autoLayout setting</docstring>
</method>
<method name="Layout" type="bool" overloaded="no">
<autodoc>Layout() -> bool</autodoc>
+ <docstring>Invokes the constraint-based layout algorithm or the sizer-based
+algorithm for this window. See SetAutoLayout: when auto layout is on,
+this function gets called automatically by the default EVT_SIZE
+handler when the window is resized.</docstring>
</method>
<method name="SetSizer" type="" overloaded="no">
<autodoc>SetSizer(Sizer sizer, bool deleteOld=True)</autodoc>
+ <docstring>Sets the window to have the given layout sizer. The window will then
+own the object, and will take care of its deletion. If an existing
+layout sizer object is already owned by the window, it will be deleted
+if the deleteOld parameter is true. Note that this function will also
+call SetAutoLayout implicitly with a True parameter if the sizer is
+non-NoneL and False otherwise.</docstring>
<paramlist>
<param name="sizer" type="wxSizer" default=""/>
<param name="deleteOld" type="bool" default="True"/>
</method>
<method name="SetSizerAndFit" type="" overloaded="no">
<autodoc>SetSizerAndFit(Sizer sizer, bool deleteOld=True)</autodoc>
+ <docstring>The same as SetSizer, except it also sets the size hints for the
+window based on the sizer's minimum size.</docstring>
<paramlist>
<param name="sizer" type="wxSizer" default=""/>
<param name="deleteOld" type="bool" default="True"/>
</method>
<method name="GetSizer" type="wxSizer" overloaded="no">
<autodoc>GetSizer() -> Sizer</autodoc>
+ <docstring>Return the sizer associated with the window by a previous call to
+SetSizer or None if there isn't one.</docstring>
</method>
<method name="SetContainingSizer" type="" overloaded="no">
<autodoc>SetContainingSizer(Sizer sizer)</autodoc>
+ <docstring>This normally does not need to be called by application code. It is
+called internally when a window is added to a sizer, and is used so
+the window can remove itself from the sizer when it is destroyed.</docstring>
<paramlist>
<param name="sizer" type="wxSizer" default=""/>
</paramlist>
</method>
<method name="GetContainingSizer" type="wxSizer" overloaded="no">
<autodoc>GetContainingSizer() -> Sizer</autodoc>
+ <docstring>Return the sizer that this window is a member of, if any, otherwise None.</docstring>
</method>
</class>
<pythoncode>
def DLG_PNT(win, point_or_x, y=None):
+ """
+ Convenience function for converting a Point or (x,y) in
+ dialog units to pixel units.
+ """
if y is None:
return win.ConvertDialogPointToPixels(point_or_x)
else:
return win.ConvertDialogPointToPixels(wx.Point(point_or_x, y))
def DLG_SZE(win, size_width, height=None):
+ """
+ Convenience function for converting a Size or (w,h) in
+ dialog units to pixel units.
+ """
if height is None:
return win.ConvertDialogSizeToPixels(size_width)
else:
</pythoncode>
<method name="FindWindowById" oldname="wxFindWindowById" type="Window" overloaded="no">
<autodoc>FindWindowById(long id, Window parent=None) -> Window</autodoc>
+ <docstring>Find the first window in the application with the given id. If parent
+is None, the search will start from all top-level frames and dialog
+boxes; if non-None, the search will be limited to the given window
+hierarchy. The search is recursive in both cases.</docstring>
<paramlist>
<param name="id" type="long" default=""/>
<param name="parent" type="Window" default="NULL"/>
</method>
<method name="FindWindowByName" oldname="wxFindWindowByName" type="Window" overloaded="no">
<autodoc>FindWindowByName(String name, Window parent=None) -> Window</autodoc>
+ <docstring>Find a window by its name (as given in a window constructor or Create
+function call). If parent is None, the search will start from all
+top-level frames and dialog boxes; if non-None, the search will be
+limited to the given window hierarchy. The search is recursive in both
+cases.
+
+If no window with such name is found, wx.FindWindowByLabel is called.</docstring>
<paramlist>
<param name="name" type="String" default=""/>
<param name="parent" type="Window" default="NULL"/>
</method>
<method name="FindWindowByLabel" oldname="wxFindWindowByLabel" type="Window" overloaded="no">
<autodoc>FindWindowByLabel(String label, Window parent=None) -> Window</autodoc>
+ <docstring>Find a window by its label. Depending on the type of window, the label
+may be a window title or panel item label. If parent is None, the
+search will start from all top-level frames and dialog boxes; if
+non-None, the search will be limited to the given window
+hierarchy. The search is recursive in both cases.</docstring>
<paramlist>
<param name="label" type="String" default=""/>
<param name="parent" type="Window" default="NULL"/>
</paramlist>
</method>
<staticmethod name="IsSilent" type="bool" overloaded="no">
- <autodoc>Validator.IsSilent() -> bool</autodoc>
+ <autodoc>IsSilent() -> bool</autodoc>
</staticmethod>
<staticmethod name="SetBellOnError" type="" overloaded="no">
- <autodoc>Validator.SetBellOnError(int doIt=True)</autodoc>
+ <autodoc>SetBellOnError(int doIt=True)</autodoc>
<paramlist>
<param name="doIt" type="int" default="True"/>
</paramlist>
<param name="style" type="long" default="0"/>
</paramlist>
</constructor>
- <method name="Append" type="" overloaded="no">
- <autodoc>Append(int id, String text, String help=EmptyString, int kind=ITEM_NORMAL)</autodoc>
+ <method name="Append" type="wxMenuItem" overloaded="no">
+ <autodoc>Append(int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
<param name="kind" type="wxItemKind" default="wxITEM_NORMAL"/>
</paramlist>
</method>
- <method name="AppendSeparator" type="" overloaded="no">
- <autodoc>AppendSeparator()</autodoc>
+ <method name="AppendSeparator" type="wxMenuItem" overloaded="no">
+ <autodoc>AppendSeparator() -> MenuItem</autodoc>
</method>
- <method name="AppendCheckItem" type="" overloaded="no">
- <autodoc>AppendCheckItem(int id, String text, String help=EmptyString)</autodoc>
+ <method name="AppendCheckItem" type="wxMenuItem" overloaded="no">
+ <autodoc>AppendCheckItem(int id, String text, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
<param name="help" type="String" default="wxPyEmptyString"/>
</paramlist>
</method>
- <method name="AppendRadioItem" type="" overloaded="no">
- <autodoc>AppendRadioItem(int id, String text, String help=EmptyString)</autodoc>
+ <method name="AppendRadioItem" type="wxMenuItem" overloaded="no">
+ <autodoc>AppendRadioItem(int id, String text, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
<param name="help" type="String" default="wxPyEmptyString"/>
</paramlist>
</method>
- <method name="AppendMenu" type="" overloaded="no">
- <autodoc>AppendMenu(int id, String text, Menu submenu, String help=EmptyString)</autodoc>
+ <method name="AppendMenu" type="wxMenuItem" overloaded="no">
+ <autodoc>AppendMenu(int id, String text, Menu submenu, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
<param name="help" type="String" default="wxPyEmptyString"/>
</paramlist>
</method>
- <method name="AppendItem" type="" overloaded="no">
- <autodoc>AppendItem(MenuItem item)</autodoc>
+ <method name="AppendItem" type="wxMenuItem" overloaded="no">
+ <autodoc>AppendItem(MenuItem item) -> MenuItem</autodoc>
<paramlist>
<param name="item" type="wxMenuItem" default=""/>
</paramlist>
<method name="Break" type="" overloaded="no">
<autodoc>Break()</autodoc>
</method>
- <method name="InsertItem" type="bool" overloaded="no">
- <autodoc>InsertItem(size_t pos, MenuItem item) -> bool</autodoc>
+ <method name="InsertItem" type="wxMenuItem" overloaded="no">
+ <autodoc>InsertItem(size_t pos, MenuItem item) -> MenuItem</autodoc>
<paramlist>
<param name="pos" type="size_t" default=""/>
<param name="item" type="wxMenuItem" default=""/>
</paramlist>
</method>
- <method name="Insert" type="" overloaded="no">
+ <method name="Insert" type="wxMenuItem" overloaded="no">
<autodoc>Insert(size_t pos, int id, String text, String help=EmptyString,
- int kind=ITEM_NORMAL)</autodoc>
+ int kind=ITEM_NORMAL) -> MenuItem</autodoc>
<paramlist>
<param name="pos" type="size_t" default=""/>
<param name="id" type="int" default=""/>
<param name="kind" type="wxItemKind" default="wxITEM_NORMAL"/>
</paramlist>
</method>
- <method name="InsertSeparator" type="" overloaded="no">
- <autodoc>InsertSeparator(size_t pos)</autodoc>
+ <method name="InsertSeparator" type="wxMenuItem" overloaded="no">
+ <autodoc>InsertSeparator(size_t pos) -> MenuItem</autodoc>
<paramlist>
<param name="pos" type="size_t" default=""/>
</paramlist>
</method>
- <method name="InsertCheckItem" type="" overloaded="no">
- <autodoc>InsertCheckItem(size_t pos, int id, String text, String help=EmptyString)</autodoc>
+ <method name="InsertCheckItem" type="wxMenuItem" overloaded="no">
+ <autodoc>InsertCheckItem(size_t pos, int id, String text, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="pos" type="size_t" default=""/>
<param name="id" type="int" default=""/>
<param name="help" type="String" default="wxPyEmptyString"/>
</paramlist>
</method>
- <method name="InsertRadioItem" type="" overloaded="no">
- <autodoc>InsertRadioItem(size_t pos, int id, String text, String help=EmptyString)</autodoc>
+ <method name="InsertRadioItem" type="wxMenuItem" overloaded="no">
+ <autodoc>InsertRadioItem(size_t pos, int id, String text, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="pos" type="size_t" default=""/>
<param name="id" type="int" default=""/>
<param name="help" type="String" default="wxPyEmptyString"/>
</paramlist>
</method>
- <method name="InsertMenu" type="" overloaded="no">
- <autodoc>InsertMenu(size_t pos, int id, String text, Menu submenu, String help=EmptyString)</autodoc>
+ <method name="InsertMenu" type="wxMenuItem" overloaded="no">
+ <autodoc>InsertMenu(size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="pos" type="size_t" default=""/>
<param name="id" type="int" default=""/>
<param name="help" type="String" default="wxPyEmptyString"/>
</paramlist>
</method>
- <method name="PrependItem" type="" overloaded="no">
- <autodoc>PrependItem(MenuItem item)</autodoc>
+ <method name="PrependItem" type="wxMenuItem" overloaded="no">
+ <autodoc>PrependItem(MenuItem item) -> MenuItem</autodoc>
<paramlist>
<param name="item" type="wxMenuItem" default=""/>
</paramlist>
</method>
- <method name="Prepend" type="" overloaded="no">
- <autodoc>Prepend(int id, String text, String help=EmptyString, int kind=ITEM_NORMAL)</autodoc>
+ <method name="Prepend" type="wxMenuItem" overloaded="no">
+ <autodoc>Prepend(int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
<param name="kind" type="wxItemKind" default="wxITEM_NORMAL"/>
</paramlist>
</method>
- <method name="PrependSeparator" type="" overloaded="no">
- <autodoc>PrependSeparator()</autodoc>
+ <method name="PrependSeparator" type="wxMenuItem" overloaded="no">
+ <autodoc>PrependSeparator() -> MenuItem</autodoc>
</method>
- <method name="PrependCheckItem" type="" overloaded="no">
- <autodoc>PrependCheckItem(int id, String text, String help=EmptyString)</autodoc>
+ <method name="PrependCheckItem" type="wxMenuItem" overloaded="no">
+ <autodoc>PrependCheckItem(int id, String text, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
<param name="help" type="String" default="wxPyEmptyString"/>
</paramlist>
</method>
- <method name="PrependRadioItem" type="" overloaded="no">
- <autodoc>PrependRadioItem(int id, String text, String help=EmptyString)</autodoc>
+ <method name="PrependRadioItem" type="wxMenuItem" overloaded="no">
+ <autodoc>PrependRadioItem(int id, String text, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
<param name="help" type="String" default="wxPyEmptyString"/>
</paramlist>
</method>
- <method name="PrependMenu" type="" overloaded="no">
- <autodoc>PrependMenu(int id, String text, Menu submenu, String help=EmptyString)</autodoc>
+ <method name="PrependMenu" type="wxMenuItem" overloaded="no">
+ <autodoc>PrependMenu(int id, String text, Menu submenu, String help=EmptyString) -> MenuItem</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
<autodoc>GetText() -> String</autodoc>
</method>
<staticmethod name="GetLabelFromText" type="String" overloaded="no">
- <autodoc>MenuItem.GetLabelFromText(String text) -> String</autodoc>
+ <autodoc>GetLabelFromText(String text) -> String</autodoc>
<paramlist>
<param name="text" type="String" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="GetDefaultMarginWidth" type="int" overloaded="no">
- <autodoc>MenuItem.GetDefaultMarginWidth() -> int</autodoc>
+ <autodoc>GetDefaultMarginWidth() -> int</autodoc>
</staticmethod>
<method name="SetBitmap" type="" overloaded="no">
<autodoc>SetBitmap(Bitmap bitmap)</autodoc>
#---------------------------------------------------------------------------
</pythoncode>
<class name="Control" oldname="wxControl" module="core">
+ <docstring>This is the base class for a control or 'widget'.
+
+A control is generally a small window which processes user input and/or
+displays one or more item of data.</docstring>
<baseclass name="Window"/>
<constructor name="Control" overloaded="no">
<autodoc>__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, Validator validator=DefaultValidator,
String name=ControlNameStr) -> Control</autodoc>
+ <docstring>Create a Control. Normally you should only call this from a
+subclass' __init__ as a plain old wx.Control is not very useful.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
</constructor>
<constructor name="PreControl" overloaded="no">
<autodoc>PreControl() -> Control</autodoc>
+ <docstring>Precreate a Control control for 2-phase creation</docstring>
</constructor>
<method name="Create" type="bool" overloaded="no">
<autodoc>Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, Validator validator=DefaultValidator,
String name=ControlNameStr) -> bool</autodoc>
+ <docstring>Do the 2nd phase and create the GUI control.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
</method>
<method name="Command" type="" overloaded="no">
<autodoc>Command(CommandEvent event)</autodoc>
+ <docstring>Simulates the effect of the user issuing a command to the
+item. See wxCommandEvent.</docstring>
<paramlist>
<param name="event" type="CommandEvent" default=""/>
</paramlist>
</method>
<method name="GetLabel" type="String" overloaded="no">
<autodoc>GetLabel() -> String</autodoc>
+ <docstring>Return a control's text.</docstring>
</method>
<method name="SetLabel" type="" overloaded="no">
<autodoc>SetLabel(String label)</autodoc>
+ <docstring>Sets the item's text.</docstring>
<paramlist>
<param name="label" type="String" default=""/>
</paramlist>
#---------------------------------------------------------------------------
</pythoncode>
<class name="ItemContainer" oldname="wxItemContainer" module="core">
+ <docstring>wx.ItemContainer defines an interface which is implemented by all
+controls which have string subitems, each of which may be
+selected, such as wx.ListBox, wx.CheckListBox, wx.Choice and
+wx.ComboBox (which implements an extended interface deriving from
+this one)
+
+It defines the methods for accessing the control's items and
+although each of the derived classes implements them differently,
+they still all conform to the same interface.
+
+The items in a wx.ItemContainer have (non empty) string labels
+and, optionally, client data associated with them.
+</docstring>
<method name="Append" type="int" overloaded="no">
<autodoc>Append(String item, PyObject clientData=None) -> int</autodoc>
+ <docstring>Adds the item to the control, associating the given data with the
+item if not None. The return value is the index of the newly
+added item which may be different from the last one if the
+control is sorted (e.g. has wx.LB_SORT or wx.CB_SORT style).</docstring>
<paramlist>
<param name="item" type="String" default=""/>
<param name="clientData" type="PyObject" default="NULL"/>
</method>
<method name="AppendItems" type="" overloaded="no">
<autodoc>AppendItems(wxArrayString strings)</autodoc>
+ <docstring>Apend several items at once to the control. Notice that calling
+this method may be much faster than appending the items one by
+one if you need to add a lot of items.</docstring>
<paramlist>
<param name="strings" type="wxArrayString" default=""/>
</paramlist>
</method>
<method name="Insert" type="int" overloaded="no">
<autodoc>Insert(String item, int pos, PyObject clientData=None) -> int</autodoc>
+ <docstring>Insert an item into the control before the item at the pos index,
+optionally associating some data object with the item.</docstring>
<paramlist>
<param name="item" type="String" default=""/>
<param name="pos" type="int" default=""/>
</method>
<method name="Clear" type="" overloaded="no">
<autodoc>Clear()</autodoc>
+ <docstring>Removes all items from the control.</docstring>
</method>
<method name="Delete" type="" overloaded="no">
<autodoc>Delete(int n)</autodoc>
+ <docstring>Deletes the item at the zero-based index 'n' from the control.
+Note that it is an error (signalled by a PyAssertionError
+exception if enabled) to remove an item with the index negative
+or greater or equal than the number of items in the control.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
</paramlist>
</method>
<method name="GetCount" type="int" overloaded="no">
<autodoc>GetCount() -> int</autodoc>
+ <docstring>Returns the number of items in the control.</docstring>
</method>
<method name="IsEmpty" type="bool" overloaded="no">
<autodoc>IsEmpty() -> bool</autodoc>
+ <docstring>Returns True if the control is empty or False if it has some items.</docstring>
</method>
<method name="GetString" type="String" overloaded="no">
<autodoc>GetString(int n) -> String</autodoc>
+ <docstring>Returns the label of the item with the given index.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
</paramlist>
</method>
<method name="SetString" type="" overloaded="no">
<autodoc>SetString(int n, String s)</autodoc>
+ <docstring>Sets the label for the given item.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
<param name="s" type="String" default=""/>
</method>
<method name="FindString" type="int" overloaded="no">
<autodoc>FindString(String s) -> int</autodoc>
+ <docstring>Finds an item whose label matches the given string. Returns the
+zero-based position of the item, or wx.NOT_FOUND if the string
+was not found.</docstring>
<paramlist>
<param name="s" type="String" default=""/>
</paramlist>
</method>
<method name="Select" type="" overloaded="no">
<autodoc>Select(int n)</autodoc>
+ <docstring>Sets the item at index 'n' to be the selected item.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
</paramlist>
</method>
<method name="GetSelection" type="int" overloaded="no">
<autodoc>GetSelection() -> int</autodoc>
+ <docstring>Returns the index of the selected item or wx.NOT_FOUND if no item is selected.</docstring>
</method>
<method name="GetStringSelection" type="String" overloaded="no">
<autodoc>GetStringSelection() -> String</autodoc>
+ <docstring>Returns the label of the selected item or an empty string if no item is selected.</docstring>
</method>
<method name="GetClientData" type="PyObject" overloaded="no">
<autodoc>GetClientData(int n) -> PyObject</autodoc>
+ <docstring>Returns the client data associated with the given item, (if any.)</docstring>
<paramlist>
<param name="n" type="int" default=""/>
</paramlist>
</method>
<method name="SetClientData" type="" overloaded="no">
<autodoc>SetClientData(int n, PyObject clientData)</autodoc>
+ <docstring>Associate the given client data with the item at position n.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
<param name="clientData" type="PyObject" default=""/>
#---------------------------------------------------------------------------
</pythoncode>
<class name="ControlWithItems" oldname="wxControlWithItems" module="core">
+ <docstring>wx.ControlWithItems combines the wx.ItemContainer class with the
+wx.Control class, and is used for the base class of various
+controls that have items.</docstring>
<baseclass name="Control"/>
<baseclass name="ItemContainer"/>
</class>
</paramlist>
</method>
<method name="__eq__" type="bool" overloaded="no">
- <autodoc>__eq__(GBPosition p) -> bool</autodoc>
+ <autodoc>__eq__(GBPosition other) -> bool</autodoc>
<paramlist>
- <param name="p" type="GBPosition" default=""/>
+ <param name="other" type="GBPosition" default=""/>
</paramlist>
</method>
<method name="__ne__" type="bool" overloaded="no">
- <autodoc>__ne__(GBPosition p) -> bool</autodoc>
+ <autodoc>__ne__(GBPosition other) -> bool</autodoc>
<paramlist>
- <param name="p" type="GBPosition" default=""/>
+ <param name="other" type="GBPosition" default=""/>
</paramlist>
</method>
<method name="Set" type="" overloaded="no">
</paramlist>
</method>
<method name="__eq__" type="bool" overloaded="no">
- <autodoc>__eq__(GBSpan o) -> bool</autodoc>
+ <autodoc>__eq__(GBSpan other) -> bool</autodoc>
<paramlist>
- <param name="o" type="GBSpan" default=""/>
+ <param name="other" type="GBSpan" default=""/>
</paramlist>
</method>
<method name="__ne__" type="bool" overloaded="no">
- <autodoc>__ne__(GBSpan o) -> bool</autodoc>
+ <autodoc>__ne__(GBSpan other) -> bool</autodoc>
<paramlist>
- <param name="o" type="GBSpan" default=""/>
+ <param name="other" type="GBSpan" default=""/>
</paramlist>
</method>
<method name="Set" type="" overloaded="no">
#---------------------------------------------------------------------------
</pythoncode>
<class name="IndividualLayoutConstraint" oldname="wxIndividualLayoutConstraint" module="core">
+ <docstring>Objects of this class are stored in the wx.LayoutConstraint class as one of
+eight possible constraints that a window can be involved in. You will never
+need to create an instance of wx.IndividualLayoutConstraint, rather you should
+use create a wx.LayoutContstraints instance and use the individual contstraints
+that it contains.
+
+Constraints are initially set to have the relationship wx.Unconstrained, which
+means that their values should be calculated by looking at known constraints.
+
+The Edge specifies the type of edge or dimension of a window.
+
+ Edges
+
+ wx.Left The left edge.
+ wx.Top The top edge.
+ wx.Right The right edge.
+ wx.Bottom The bottom edge.
+ wx.CentreX The x-coordinate of the centre of the window.
+ wx.CentreY The y-coordinate of the centre of the window.
+
+
+The Relationship specifies the relationship that this edge or dimension has
+with another specified edge or dimension. Normally, the user doesn't use these
+directly because functions such as Below and RightOf are a convenience for
+using the more general Set function.
+
+ Relationships
+
+ wx.Unconstrained The edge or dimension is unconstrained
+ (the default for edges.)
+ wx.AsIs The edge or dimension is to be taken from the current
+ window position or size (the default for dimensions.)
+ wx.Above The edge should be above another edge.
+ wx.Below The edge should be below another edge.
+ wx.LeftOf The edge should be to the left of another edge.
+ wx.RightOf The edge should be to the right of another edge.
+ wx.SameAs The edge or dimension should be the same as another edge
+ or dimension.
+ wx.PercentOf The edge or dimension should be a percentage of another
+ edge or dimension.
+ wx.Absolute The edge or dimension should be a given absolute value.
+
+</docstring>
<baseclass name="Object"/>
<method name="Set" type="" overloaded="no">
<autodoc>Set(int rel, Window otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN)</autodoc>
</method>
<method name="LeftOf" type="" overloaded="no">
<autodoc>LeftOf(Window sibling, int marg=0)</autodoc>
+ <docstring>Sibling relationship</docstring>
<paramlist>
<param name="sibling" type="Window" default=""/>
<param name="marg" type="int" default="0"/>
</method>
<method name="RightOf" type="" overloaded="no">
<autodoc>RightOf(Window sibling, int marg=0)</autodoc>
+ <docstring>Sibling relationship</docstring>
<paramlist>
<param name="sibling" type="Window" default=""/>
<param name="marg" type="int" default="0"/>
</method>
<method name="Above" type="" overloaded="no">
<autodoc>Above(Window sibling, int marg=0)</autodoc>
+ <docstring>Sibling relationship</docstring>
<paramlist>
<param name="sibling" type="Window" default=""/>
<param name="marg" type="int" default="0"/>
</method>
<method name="Below" type="" overloaded="no">
<autodoc>Below(Window sibling, int marg=0)</autodoc>
+ <docstring>Sibling relationship</docstring>
<paramlist>
<param name="sibling" type="Window" default=""/>
<param name="marg" type="int" default="0"/>
</method>
<method name="SameAs" type="" overloaded="no">
<autodoc>SameAs(Window otherW, int edge, int marg=0)</autodoc>
+ <docstring>'Same edge' alignment</docstring>
<paramlist>
<param name="otherW" type="Window" default=""/>
<param name="edge" type="wxEdge" default=""/>
</method>
<method name="PercentOf" type="" overloaded="no">
<autodoc>PercentOf(Window otherW, int wh, int per)</autodoc>
+ <docstring>The edge is a percentage of the other window's edge</docstring>
<paramlist>
<param name="otherW" type="Window" default=""/>
<param name="wh" type="wxEdge" default=""/>
</method>
<method name="Absolute" type="" overloaded="no">
<autodoc>Absolute(int val)</autodoc>
+ <docstring>Edge has absolute value</docstring>
<paramlist>
<param name="val" type="int" default=""/>
</paramlist>
</method>
<method name="Unconstrained" type="" overloaded="no">
<autodoc>Unconstrained()</autodoc>
+ <docstring>Dimension is unconstrained</docstring>
</method>
<method name="AsIs" type="" overloaded="no">
<autodoc>AsIs()</autodoc>
+ <docstring>Dimension is 'as is' (use current size settings)</docstring>
</method>
<method name="GetOtherWindow" type="Window" overloaded="no">
<autodoc>GetOtherWindow() -> Window</autodoc>
</method>
<method name="ResetIfWin" type="bool" overloaded="no">
<autodoc>ResetIfWin(Window otherW) -> bool</autodoc>
+ <docstring>Reset constraint if it mentions otherWin</docstring>
<paramlist>
<param name="otherW" type="Window" default=""/>
</paramlist>
</method>
<method name="SatisfyConstraint" type="bool" overloaded="no">
<autodoc>SatisfyConstraint(LayoutConstraints constraints, Window win) -> bool</autodoc>
+ <docstring>Try to satisfy constraint</docstring>
<paramlist>
<param name="constraints" type="wxLayoutConstraints" default=""/>
<param name="win" type="Window" default=""/>
</method>
<method name="GetEdge" type="int" overloaded="no">
<autodoc>GetEdge(int which, Window thisWin, Window other) -> int</autodoc>
+ <docstring>Get the value of this edge or dimension, or if this
+is not determinable, -1.</docstring>
<paramlist>
<param name="which" type="wxEdge" default=""/>
<param name="thisWin" type="Window" default=""/>
</method>
</class>
<class name="LayoutConstraints" oldname="wxLayoutConstraints" module="core">
+ <docstring>Note: constraints are now deprecated and you should use sizers instead.
+
+Objects of this class can be associated with a window to define its layout
+constraints, with respect to siblings or its parent.
+
+The class consists of the following eight constraints of class
+wx.IndividualLayoutConstraint, some or all of which should be accessed
+directly to set the appropriate constraints.
+
+ * left: represents the left hand edge of the window
+ * right: represents the right hand edge of the window
+ * top: represents the top edge of the window
+ * bottom: represents the bottom edge of the window
+ * width: represents the width of the window
+ * height: represents the height of the window
+ * centreX: represents the horizontal centre point of the window
+ * centreY: represents the vertical centre point of the window
+
+Most constraints are initially set to have the relationship wxUnconstrained,
+which means that their values should be calculated by looking at known
+constraints. The exceptions are width and height, which are set to wxAsIs to
+ensure that if the user does not specify a constraint, the existing width and
+height will be used, to be compatible with panel items which often have take a
+default size. If the constraint is wxAsIs, the dimension will not be changed.
+</docstring>
<baseclass name="Object"/>
<constructor name="LayoutConstraints" overloaded="no">
<autodoc>__init__() -> LayoutConstraints</autodoc>
#---------------------------------------------------------------------------
</pythoncode>
<class name="Colour" oldname="wxColour" module="gdi">
+ <docstring>A colour is an object representing a combination of Red, Green, and Blue (RGB)
+intensity values, and is used to determine drawing colours, window colours,
+etc. Valid RGB values are in the range 0 to 255.
+
+In wxPython there are typemaps that will automatically convert from a colour
+name, or from a "#RRGGBB" colour hex value string to a wx.Colour object when
+calling C++ methods that expect a wxColour. This means that the following are
+all equivallent:
+
+ win.SetBackgroundColour(wxColour(0,0,255))
+ win.SetBackgroundColour("BLUE")
+ win.SetBackgroundColour("#0000FF")
+
+You can retrieve the various current system colour settings with
+wx.SystemSettings.GetColour.</docstring>
<baseclass name="Object"/>
<constructor name="Colour" overloaded="no">
<autodoc>__init__(unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour</autodoc>
+ <docstring>Constructs a colour from red, green and blue values.</docstring>
<paramlist>
<param name="red" type="unsigned char" default="0"/>
<param name="green" type="unsigned char" default="0"/>
</constructor>
<constructor name="NamedColour" overloaded="no">
<autodoc>NamedColour(String colorName) -> Colour</autodoc>
+ <docstring>Constructs a colour object using a colour name listed in wx.TheColourDatabase.</docstring>
<paramlist>
<param name="colorName" type="String" default=""/>
</paramlist>
</constructor>
<constructor name="ColourRGB" overloaded="no">
<autodoc>ColourRGB(unsigned long colRGB) -> Colour</autodoc>
+ <docstring>Constructs a colour from a packed RGB value.</docstring>
<paramlist>
<param name="colRGB" type="unsigned long" default=""/>
</paramlist>
</destructor>
<method name="Red" type="unsigned char" overloaded="no">
<autodoc>Red() -> unsigned char</autodoc>
+ <docstring>Returns the red intensity.</docstring>
</method>
<method name="Green" type="unsigned char" overloaded="no">
<autodoc>Green() -> unsigned char</autodoc>
+ <docstring>Returns the green intensity.</docstring>
</method>
<method name="Blue" type="unsigned char" overloaded="no">
<autodoc>Blue() -> unsigned char</autodoc>
+ <docstring>Returns the blue intensity.</docstring>
</method>
<method name="Ok" type="bool" overloaded="no">
<autodoc>Ok() -> bool</autodoc>
+ <docstring>Returns True if the colour object is valid (the colour has been
+initialised with RGB values).</docstring>
</method>
<method name="Set" type="" overloaded="no">
<autodoc>Set(unsigned char red, unsigned char green, unsigned char blue)</autodoc>
+ <docstring>Sets the RGB intensity values.</docstring>
<paramlist>
<param name="red" type="unsigned char" default=""/>
<param name="green" type="unsigned char" default=""/>
</method>
<method name="SetRGB" type="" overloaded="no">
<autodoc>SetRGB(unsigned long colRGB)</autodoc>
+ <docstring>Sets the RGB intensity values from a packed RGB value.</docstring>
<paramlist>
<param name="colRGB" type="unsigned long" default=""/>
</paramlist>
</method>
+ <method name="SetFromName" type="" overloaded="no">
+ <autodoc>SetFromName(String colourName)</autodoc>
+ <docstring>Sets the RGB intensity values using a colour name listed in wx.TheColourDatabase.</docstring>
+ <paramlist>
+ <param name="colourName" type="String" default=""/>
+ </paramlist>
+ </method>
+ <method name="GetPixel" type="long" overloaded="no">
+ <autodoc>GetPixel() -> long</autodoc>
+ <docstring>Returns a pixel value which is platform-dependent. On Windows, a
+COLORREF is returned. On X, an allocated pixel value is returned.
+-1 is returned if the pixel is invalid (on X, unallocated).</docstring>
+ </method>
<method name="__eq__" type="bool" overloaded="no">
<autodoc>__eq__(Colour colour) -> bool</autodoc>
+ <docstring>Compare colours for equality</docstring>
<paramlist>
<param name="colour" type="Colour" default=""/>
</paramlist>
</method>
<method name="__ne__" type="bool" overloaded="no">
<autodoc>__ne__(Colour colour) -> bool</autodoc>
+ <docstring>Compare colours for inequality</docstring>
<paramlist>
<param name="colour" type="Colour" default=""/>
</paramlist>
</method>
- <method name="InitFromName" type="" overloaded="no">
- <autodoc>InitFromName(String colourName)</autodoc>
- <paramlist>
- <param name="colourName" type="String" default=""/>
- </paramlist>
- </method>
<method name="Get" type="PyObject" overloaded="no">
- <autodoc>Get() -> PyObject</autodoc>
+ <autodoc>Get() -> (r, g, b)</autodoc>
+ <docstring>Returns the RGB intensity values as a tuple.</docstring>
+ </method>
+ <method name="GetRGB" type="unsigned long" overloaded="no">
+ <autodoc>GetRGB() -> unsigned long</autodoc>
+ <docstring>Return the colour as a packed RGB value</docstring>
</method>
</class>
+ <pythoncode>
+ Color = Colour
+ NamedColor = NamedColour
+ ColorRGB = ColourRGB
+</pythoncode>
<class name="Palette" oldname="wxPalette" module="gdi">
<baseclass name="GDIObject"/>
<constructor name="Palette" overloaded="no">
<method name="GetDashes" type="PyObject" overloaded="no">
<autodoc>GetDashes() -> PyObject</autodoc>
</method>
+ <method name="__eq__" type="bool" overloaded="no">
+ <autodoc>__eq__(Pen other) -> bool</autodoc>
+ <paramlist>
+ <param name="other" type="Pen" default=""/>
+ </paramlist>
+ </method>
+ <method name="__ne__" type="bool" overloaded="no">
+ <autodoc>__ne__(Pen other) -> bool</autodoc>
+ <paramlist>
+ <param name="other" type="Pen" default=""/>
+ </paramlist>
+ </method>
<method name="GetDashCount" type="int" overloaded="no">
<autodoc>GetDashCount() -> int</autodoc>
</method>
masked area will not be drawn.</docstring>
<baseclass name="Object"/>
<constructor name="Mask" overloaded="no">
- <autodoc>__init__(Bitmap bitmap) -> Mask</autodoc>
- <docstring>Constructs a mask from a monochrome bitmap.</docstring>
+ <autodoc>__init__(Bitmap bitmap, Colour colour=NullColour) -> Mask</autodoc>
+ <docstring>Constructs a mask from a bitmap and a colour in that bitmap that indicates
+the transparent portions of the mask, by default BLACK is used.</docstring>
<paramlist>
<param name="bitmap" type="Bitmap" default=""/>
- </paramlist>
- </constructor>
- <constructor name="MaskColour" overloaded="no">
- <autodoc>MaskColour(Bitmap bitmap, Colour colour) -> Mask</autodoc>
- <docstring>Constructs a mask from a bitmap and a colour in that bitmap that indicates the
-background.</docstring>
- <paramlist>
- <param name="bitmap" type="Bitmap" default=""/>
- <param name="colour" type="Colour" default=""/>
+ <param name="colour" type="Colour" default="wxNullColour"/>
</paramlist>
</constructor>
</class>
+ <pythoncode> MaskColour = Mask </pythoncode>
<class name="Icon" oldname="wxIcon" module="gdi">
<baseclass name="GDIObject"/>
<constructor name="Icon" overloaded="no">
- <autodoc>__init__(String name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon</autodoc>
+ <autodoc>__init__(String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
- <param name="flags" type="long" default=""/>
+ <param name="type" type="wxBitmapType" default=""/>
<param name="desiredWidth" type="int" default="-1"/>
<param name="desiredHeight" type="int" default="-1"/>
</paramlist>
<autodoc>__del__()</autodoc>
</destructor>
<method name="LoadFile" type="bool" overloaded="no">
- <autodoc>LoadFile(String name, long flags) -> bool</autodoc>
+ <autodoc>LoadFile(String name, int type) -> bool</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
- <param name="flags" type="long" default=""/>
+ <param name="type" type="wxBitmapType" default=""/>
</paramlist>
</method>
<method name="Ok" type="bool" overloaded="no">
</method>
</class>
<class name="Cursor" oldname="wxCursor" module="gdi">
+ <docstring>A cursor is a small bitmap usually used for denoting where the
+mouse pointer is, with a picture that might indicate the
+interpretation of a mouse click.
+
+A single cursor object may be used in many windows (any subwindow
+type). The wxWindows convention is to set the cursor for a
+window, as in X, rather than to set it globally as in MS Windows,
+although a global wx.SetCursor function is also available for use
+on MS Windows.</docstring>
<baseclass name="GDIObject"/>
<constructor name="Cursor" overloaded="no">
- <autodoc>__init__(String cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor</autodoc>
+ <autodoc>__init__(String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor</autodoc>
+ <docstring>Construct a Cursor from a file. Specify the type of file using
+wx.BITAMP_TYPE* constants, and specify the hotspot if not using a
+.cur file.
+
+This cursor is not available on wxGTK, use wx.StockCursor,
+wx.CursorFromImage, or wx.CursorFromBits instead.</docstring>
<paramlist>
<param name="cursorName" type="String" default=""/>
- <param name="flags" type="long" default=""/>
+ <param name="type" type="long" default=""/>
<param name="hotSpotX" type="int" default="0"/>
<param name="hotSpotY" type="int" default="0"/>
</paramlist>
</constructor>
<constructor name="StockCursor" overloaded="no">
<autodoc>StockCursor(int id) -> Cursor</autodoc>
+ <docstring>Create a cursor using one of the stock cursors. Note that not
+all cursors are available on all platforms.</docstring>
+ <refdoc>
+ Stock Cursor IDs
+
+ wx.CURSOR_ARROW A standard arrow cursor.
+ wx.CURSOR_RIGHT_ARROW A standard arrow cursor pointing to the right.
+ wx.CURSOR_BLANK Transparent cursor.
+ wx.CURSOR_BULLSEYE Bullseye cursor.
+ wx.CURSOR_CHAR Rectangular character cursor.
+ wx.CURSOR_CROSS A cross cursor.
+ wx.CURSOR_HAND A hand cursor.
+ wx.CURSOR_IBEAM An I-beam cursor (vertical line).
+ wx.CURSOR_LEFT_BUTTON Represents a mouse with the left button depressed.
+ wx.CURSOR_MAGNIFIER A magnifier icon.
+ wx.CURSOR_MIDDLE_BUTTON Represents a mouse with the middle button depressed.
+ wx.CURSOR_NO_ENTRY A no-entry sign cursor.
+ wx.CURSOR_PAINT_BRUSH A paintbrush cursor.
+ wx.CURSOR_PENCIL A pencil cursor.
+ wx.CURSOR_POINT_LEFT A cursor that points left.
+ wx.CURSOR_POINT_RIGHT A cursor that points right.
+ wx.CURSOR_QUESTION_ARROW An arrow and question mark.
+ wx.CURSOR_RIGHT_BUTTON Represents a mouse with the right button depressed.
+ wx.CURSOR_SIZENESW A sizing cursor pointing NE-SW.
+ wx.CURSOR_SIZENS A sizing cursor pointing N-S.
+ wx.CURSOR_SIZENWSE A sizing cursor pointing NW-SE.
+ wx.CURSOR_SIZEWE A sizing cursor pointing W-E.
+ wx.CURSOR_SIZING A general sizing cursor.
+ wx.CURSOR_SPRAYCAN A spraycan cursor.
+ wx.CURSOR_WAIT A wait cursor.
+ wx.CURSOR_WATCH A watch cursor.
+ wx.CURSOR_ARROWWAIT A cursor with both an arrow and an hourglass, (windows.)
+
+</refdoc>
<paramlist>
<param name="id" type="int" default=""/>
</paramlist>
</constructor>
<constructor name="CursorFromImage" overloaded="no">
<autodoc>CursorFromImage(Image image) -> Cursor</autodoc>
+ <docstring>Constructs a cursor from a wxImage. The cursor is monochrome,
+colors with the RGB elements all greater than 127 will be
+foreground, colors less than this background. The mask (if any)
+will be used as transparent.
+
+In MSW the foreground will be white and the background black. The
+cursor is resized to 32x32 In GTK, the two most frequent colors
+will be used for foreground and background. The cursor will be
+displayed at the size of the image. On MacOS the cursor is
+resized to 16x16 and currently only shown as black/white (mask
+respected).</docstring>
<paramlist>
<param name="image" type="Image" default=""/>
</paramlist>
</constructor>
- <constructor name="CursorFromBits" overloaded="no">
- <autodoc>CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
- int hotSpotY=-1, PyObject maskBits=0) -> Cursor</autodoc>
- <paramlist>
- <param name="bits" type="PyObject" default=""/>
- <param name="width" type="int" default=""/>
- <param name="height" type="int" default=""/>
- <param name="hotSpotX" type="int" default="-1"/>
- <param name="hotSpotY" type="int" default="-1"/>
- <param name="maskBits" type="PyObject" default="0"/>
- </paramlist>
- </constructor>
<destructor name="~wxCursor" overloaded="no">
<autodoc>__del__()</autodoc>
</destructor>
<autodoc>__del__()</autodoc>
</destructor>
<staticmethod name="Get" type="FontMapper" overloaded="no">
- <autodoc>FontMapper.Get() -> FontMapper</autodoc>
+ <autodoc>Get() -> FontMapper</autodoc>
</staticmethod>
<staticmethod name="Set" type="FontMapper" overloaded="no">
- <autodoc>FontMapper.Set(FontMapper mapper) -> FontMapper</autodoc>
+ <autodoc>Set(FontMapper mapper) -> FontMapper</autodoc>
<paramlist>
<param name="mapper" type="FontMapper" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="GetSupportedEncodingsCount" type="size_t" overloaded="no">
- <autodoc>FontMapper.GetSupportedEncodingsCount() -> size_t</autodoc>
+ <autodoc>GetSupportedEncodingsCount() -> size_t</autodoc>
</staticmethod>
<staticmethod name="GetEncoding" type="wxFontEncoding" overloaded="no">
- <autodoc>FontMapper.GetEncoding(size_t n) -> int</autodoc>
+ <autodoc>GetEncoding(size_t n) -> int</autodoc>
<paramlist>
<param name="n" type="size_t" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetEncodingName" type="String" overloaded="no">
- <autodoc>FontMapper.GetEncodingName(int encoding) -> String</autodoc>
+ <autodoc>GetEncodingName(int encoding) -> String</autodoc>
<paramlist>
<param name="encoding" type="wxFontEncoding" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetEncodingDescription" type="String" overloaded="no">
- <autodoc>FontMapper.GetEncodingDescription(int encoding) -> String</autodoc>
+ <autodoc>GetEncodingDescription(int encoding) -> String</autodoc>
<paramlist>
<param name="encoding" type="wxFontEncoding" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="GetDefaultConfigPath" type="String" overloaded="no">
- <autodoc>FontMapper.GetDefaultConfigPath() -> String</autodoc>
+ <autodoc>GetDefaultConfigPath() -> String</autodoc>
</staticmethod>
<method name="GetAltForEncoding" type="PyObject" overloaded="no">
<autodoc>GetAltForEncoding(int encoding, String facename=EmptyString, bool interactive=True) -> PyObject</autodoc>
<autodoc>Ok() -> bool</autodoc>
</method>
<method name="__eq__" type="bool" overloaded="no">
- <autodoc>__eq__(Font font) -> bool</autodoc>
+ <autodoc>__eq__(Font other) -> bool</autodoc>
<paramlist>
- <param name="font" type="Font" default=""/>
+ <param name="other" type="Font" default=""/>
</paramlist>
</method>
<method name="__ne__" type="bool" overloaded="no">
- <autodoc>__ne__(Font font) -> bool</autodoc>
+ <autodoc>__ne__(Font other) -> bool</autodoc>
<paramlist>
- <param name="font" type="Font" default=""/>
+ <param name="other" type="Font" default=""/>
</paramlist>
</method>
<method name="GetPointSize" type="int" overloaded="no">
<autodoc>GetNoAntiAliasing() -> bool</autodoc>
</method>
<staticmethod name="GetDefaultEncoding" type="wxFontEncoding" overloaded="no">
- <autodoc>Font.GetDefaultEncoding() -> int</autodoc>
+ <autodoc>GetDefaultEncoding() -> int</autodoc>
</staticmethod>
<staticmethod name="SetDefaultEncoding" type="" overloaded="no">
- <autodoc>Font.SetDefaultEncoding(int encoding)</autodoc>
+ <autodoc>SetDefaultEncoding(int encoding)</autodoc>
<paramlist>
<param name="encoding" type="wxFontEncoding" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="GetSystemLanguage" type="int" overloaded="no">
- <autodoc>Locale.GetSystemLanguage() -> int</autodoc>
+ <autodoc>GetSystemLanguage() -> int</autodoc>
</staticmethod>
<staticmethod name="GetSystemEncoding" type="wxFontEncoding" overloaded="no">
- <autodoc>Locale.GetSystemEncoding() -> int</autodoc>
+ <autodoc>GetSystemEncoding() -> int</autodoc>
</staticmethod>
<staticmethod name="GetSystemEncodingName" type="String" overloaded="no">
- <autodoc>Locale.GetSystemEncodingName() -> String</autodoc>
+ <autodoc>GetSystemEncodingName() -> String</autodoc>
</staticmethod>
<method name="IsOk" type="bool" overloaded="no">
<autodoc>IsOk() -> bool</autodoc>
<autodoc>GetCanonicalName() -> String</autodoc>
</method>
<staticmethod name="AddCatalogLookupPathPrefix" type="" overloaded="no">
- <autodoc>Locale.AddCatalogLookupPathPrefix(String prefix)</autodoc>
+ <autodoc>AddCatalogLookupPathPrefix(String prefix)</autodoc>
<paramlist>
<param name="prefix" type="String" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="GetLanguageInfo" type="LanguageInfo" overloaded="no">
- <autodoc>Locale.GetLanguageInfo(int lang) -> LanguageInfo</autodoc>
+ <autodoc>GetLanguageInfo(int lang) -> LanguageInfo</autodoc>
<paramlist>
<param name="lang" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetLanguageName" type="String" overloaded="no">
- <autodoc>Locale.GetLanguageName(int lang) -> String</autodoc>
+ <autodoc>GetLanguageName(int lang) -> String</autodoc>
<paramlist>
<param name="lang" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="FindLanguageInfo" type="LanguageInfo" overloaded="no">
- <autodoc>Locale.FindLanguageInfo(String locale) -> LanguageInfo</autodoc>
+ <autodoc>FindLanguageInfo(String locale) -> LanguageInfo</autodoc>
<paramlist>
<param name="locale" type="String" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="AddLanguage" type="" overloaded="no">
- <autodoc>Locale.AddLanguage(LanguageInfo info)</autodoc>
+ <autodoc>AddLanguage(LanguageInfo info)</autodoc>
<paramlist>
<param name="info" type="LanguageInfo" default=""/>
</paramlist>
</method>
<method name="GetTranslation" oldname="wxGetTranslation" type="String" overloaded="yes">
<paramlist>
- <param name="sz" type="String" default=""/>
+ <param name="str" type="String" default=""/>
</paramlist>
</method>
<method name="GetTranslation" oldname="wxGetTranslation" type="String" overloaded="yes">
- <autodoc>GetTranslation(String sz) -> String
-GetTranslation(String sz1, String sz2, size_t n) -> String</autodoc>
+ <autodoc>GetTranslation(String str) -> String
+GetTranslation(String str, String strPlural, size_t n) -> String</autodoc>
<paramlist>
- <param name="sz1" type="String" default=""/>
- <param name="sz2" type="String" default=""/>
+ <param name="str" type="String" default=""/>
+ <param name="strPlural" type="String" default=""/>
<param name="n" type="size_t" default=""/>
</paramlist>
</method>
</paramlist>
</method>
<staticmethod name="GetPlatformEquivalents" type="wxFontEncodingArray" overloaded="no">
- <autodoc>EncodingConverter.GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray</autodoc>
+ <autodoc>GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray</autodoc>
<paramlist>
<param name="enc" type="wxFontEncoding" default=""/>
<param name="platform" type="int" default="wxPLATFORM_CURRENT"/>
</paramlist>
</staticmethod>
<staticmethod name="GetAllEquivalents" type="wxFontEncodingArray" overloaded="no">
- <autodoc>EncodingConverter.GetAllEquivalents(int enc) -> wxFontEncodingArray</autodoc>
+ <autodoc>GetAllEquivalents(int enc) -> wxFontEncodingArray</autodoc>
<paramlist>
<param name="enc" type="wxFontEncoding" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="CanConvert" type="bool" overloaded="no">
- <autodoc>EncodingConverter.CanConvert(int encIn, int encOut) -> bool</autodoc>
+ <autodoc>CanConvert(int encIn, int encOut) -> bool</autodoc>
<paramlist>
<param name="encIn" type="wxFontEncoding" default=""/>
<param name="encOut" type="wxFontEncoding" default=""/>
<param name="font" type="Font" default="NULL"/>
</paramlist>
</method>
+ <method name="GetPartialTextExtents" type="wxArrayInt" overloaded="no">
+ <autodoc>GetPartialTextExtents(String text) -> wxArrayInt</autodoc>
+ <paramlist>
+ <param name="text" type="String" default=""/>
+ </paramlist>
+ </method>
<method name="GetSize" type="Size" overloaded="no">
<autodoc>GetSize() -> Size</autodoc>
<docstring>Get the DC size in device units.</docstring>
</pythoncode>
<class name="BufferedDC" oldname="wxBufferedDC" module="gdi">
<baseclass name="MemoryDC"/>
- <constructor name="BufferedDC" overloaded="no">
- <autodoc>__init__(DC dc, Bitmap buffer) -> BufferedDC</autodoc>
+ <constructor name="BufferedDC" overloaded="yes">
<paramlist>
<param name="dc" type="DC" default=""/>
<param name="buffer" type="Bitmap" default=""/>
</paramlist>
</constructor>
+ <constructor name="BufferedDC" overloaded="yes">
+ <autodoc>__init__(DC dc, Bitmap buffer) -> BufferedDC
+__init__(DC dc, Size area) -> BufferedDC</autodoc>
+ <paramlist>
+ <param name="dc" type="DC" default=""/>
+ <param name="area" type="Size" default=""/>
+ </paramlist>
+ </constructor>
<constructor name="BufferedDCInternalBuffer" overloaded="no">
<autodoc>BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC</autodoc>
<paramlist>
<param name="area" type="Size" default=""/>
</paramlist>
</constructor>
+ <destructor name="~wxBufferedDC" overloaded="no">
+ <autodoc>__del__()</autodoc>
+ </destructor>
<method name="UnMask" type="" overloaded="no">
<autodoc>UnMask()</autodoc>
</method>
</paramlist>
</method>
<staticmethod name="SetResolution" type="" overloaded="no">
- <autodoc>PostScriptDC.SetResolution(int ppi)</autodoc>
+ <autodoc>SetResolution(int ppi)</autodoc>
<paramlist>
<param name="ppi" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetResolution" type="int" overloaded="no">
- <autodoc>PostScriptDC.GetResolution() -> int</autodoc>
+ <autodoc>GetResolution() -> int</autodoc>
</staticmethod>
</class>
<pythoncode>
</constructor>
</class>
<pythoncode>
+ class DC_old(DC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = DC.FloodFillXY
+ GetPixel = DC.GetPixelXY
+ DrawLine = DC.DrawLineXY
+ CrossHair = DC.CrossHairXY
+ DrawArc = DC.DrawArcXY
+ DrawCheckMark = DC.DrawCheckMarkXY
+ DrawEllipticArc = DC.DrawEllipticArcXY
+ DrawPoint = DC.DrawPointXY
+ DrawRectangle = DC.DrawRectangleXY
+ DrawRoundedRectangle = DC.DrawRoundedRectangleXY
+ DrawCircle = DC.DrawCircleXY
+ DrawEllipse = DC.DrawEllipseXY
+ DrawIcon = DC.DrawIconXY
+ DrawBitmap = DC.DrawBitmapXY
+ DrawText = DC.DrawTextXY
+ DrawRotatedText = DC.DrawRotatedTextXY
+ Blit = DC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class MemoryDC_old(MemoryDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = MemoryDC.FloodFillXY
+ GetPixel = MemoryDC.GetPixelXY
+ DrawLine = MemoryDC.DrawLineXY
+ CrossHair = MemoryDC.CrossHairXY
+ DrawArc = MemoryDC.DrawArcXY
+ DrawCheckMark = MemoryDC.DrawCheckMarkXY
+ DrawEllipticArc = MemoryDC.DrawEllipticArcXY
+ DrawPoint = MemoryDC.DrawPointXY
+ DrawRectangle = MemoryDC.DrawRectangleXY
+ DrawRoundedRectangle = MemoryDC.DrawRoundedRectangleXY
+ DrawCircle = MemoryDC.DrawCircleXY
+ DrawEllipse = MemoryDC.DrawEllipseXY
+ DrawIcon = MemoryDC.DrawIconXY
+ DrawBitmap = MemoryDC.DrawBitmapXY
+ DrawText = MemoryDC.DrawTextXY
+ DrawRotatedText = MemoryDC.DrawRotatedTextXY
+ Blit = MemoryDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class BufferedDC_old(BufferedDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = BufferedDC.FloodFillXY
+ GetPixel = BufferedDC.GetPixelXY
+ DrawLine = BufferedDC.DrawLineXY
+ CrossHair = BufferedDC.CrossHairXY
+ DrawArc = BufferedDC.DrawArcXY
+ DrawCheckMark = BufferedDC.DrawCheckMarkXY
+ DrawEllipticArc = BufferedDC.DrawEllipticArcXY
+ DrawPoint = BufferedDC.DrawPointXY
+ DrawRectangle = BufferedDC.DrawRectangleXY
+ DrawRoundedRectangle = BufferedDC.DrawRoundedRectangleXY
+ DrawCircle = BufferedDC.DrawCircleXY
+ DrawEllipse = BufferedDC.DrawEllipseXY
+ DrawIcon = BufferedDC.DrawIconXY
+ DrawBitmap = BufferedDC.DrawBitmapXY
+ DrawText = BufferedDC.DrawTextXY
+ DrawRotatedText = BufferedDC.DrawRotatedTextXY
+ Blit = BufferedDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class BufferedPaintDC_old(BufferedPaintDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = BufferedPaintDC.FloodFillXY
+ GetPixel = BufferedPaintDC.GetPixelXY
+ DrawLine = BufferedPaintDC.DrawLineXY
+ CrossHair = BufferedPaintDC.CrossHairXY
+ DrawArc = BufferedPaintDC.DrawArcXY
+ DrawCheckMark = BufferedPaintDC.DrawCheckMarkXY
+ DrawEllipticArc = BufferedPaintDC.DrawEllipticArcXY
+ DrawPoint = BufferedPaintDC.DrawPointXY
+ DrawRectangle = BufferedPaintDC.DrawRectangleXY
+ DrawRoundedRectangle = BufferedPaintDC.DrawRoundedRectangleXY
+ DrawCircle = BufferedPaintDC.DrawCircleXY
+ DrawEllipse = BufferedPaintDC.DrawEllipseXY
+ DrawIcon = BufferedPaintDC.DrawIconXY
+ DrawBitmap = BufferedPaintDC.DrawBitmapXY
+ DrawText = BufferedPaintDC.DrawTextXY
+ DrawRotatedText = BufferedPaintDC.DrawRotatedTextXY
+ Blit = BufferedPaintDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class ScreenDC_old(ScreenDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = ScreenDC.FloodFillXY
+ GetPixel = ScreenDC.GetPixelXY
+ DrawLine = ScreenDC.DrawLineXY
+ CrossHair = ScreenDC.CrossHairXY
+ DrawArc = ScreenDC.DrawArcXY
+ DrawCheckMark = ScreenDC.DrawCheckMarkXY
+ DrawEllipticArc = ScreenDC.DrawEllipticArcXY
+ DrawPoint = ScreenDC.DrawPointXY
+ DrawRectangle = ScreenDC.DrawRectangleXY
+ DrawRoundedRectangle = ScreenDC.DrawRoundedRectangleXY
+ DrawCircle = ScreenDC.DrawCircleXY
+ DrawEllipse = ScreenDC.DrawEllipseXY
+ DrawIcon = ScreenDC.DrawIconXY
+ DrawBitmap = ScreenDC.DrawBitmapXY
+ DrawText = ScreenDC.DrawTextXY
+ DrawRotatedText = ScreenDC.DrawRotatedTextXY
+ Blit = ScreenDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class ClientDC_old(ClientDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = ClientDC.FloodFillXY
+ GetPixel = ClientDC.GetPixelXY
+ DrawLine = ClientDC.DrawLineXY
+ CrossHair = ClientDC.CrossHairXY
+ DrawArc = ClientDC.DrawArcXY
+ DrawCheckMark = ClientDC.DrawCheckMarkXY
+ DrawEllipticArc = ClientDC.DrawEllipticArcXY
+ DrawPoint = ClientDC.DrawPointXY
+ DrawRectangle = ClientDC.DrawRectangleXY
+ DrawRoundedRectangle = ClientDC.DrawRoundedRectangleXY
+ DrawCircle = ClientDC.DrawCircleXY
+ DrawEllipse = ClientDC.DrawEllipseXY
+ DrawIcon = ClientDC.DrawIconXY
+ DrawBitmap = ClientDC.DrawBitmapXY
+ DrawText = ClientDC.DrawTextXY
+ DrawRotatedText = ClientDC.DrawRotatedTextXY
+ Blit = ClientDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class PaintDC_old(PaintDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = PaintDC.FloodFillXY
+ GetPixel = PaintDC.GetPixelXY
+ DrawLine = PaintDC.DrawLineXY
+ CrossHair = PaintDC.CrossHairXY
+ DrawArc = PaintDC.DrawArcXY
+ DrawCheckMark = PaintDC.DrawCheckMarkXY
+ DrawEllipticArc = PaintDC.DrawEllipticArcXY
+ DrawPoint = PaintDC.DrawPointXY
+ DrawRectangle = PaintDC.DrawRectangleXY
+ DrawRoundedRectangle = PaintDC.DrawRoundedRectangleXY
+ DrawCircle = PaintDC.DrawCircleXY
+ DrawEllipse = PaintDC.DrawEllipseXY
+ DrawIcon = PaintDC.DrawIconXY
+ DrawBitmap = PaintDC.DrawBitmapXY
+ DrawText = PaintDC.DrawTextXY
+ DrawRotatedText = PaintDC.DrawRotatedTextXY
+ Blit = PaintDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class WindowDC_old(WindowDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = WindowDC.FloodFillXY
+ GetPixel = WindowDC.GetPixelXY
+ DrawLine = WindowDC.DrawLineXY
+ CrossHair = WindowDC.CrossHairXY
+ DrawArc = WindowDC.DrawArcXY
+ DrawCheckMark = WindowDC.DrawCheckMarkXY
+ DrawEllipticArc = WindowDC.DrawEllipticArcXY
+ DrawPoint = WindowDC.DrawPointXY
+ DrawRectangle = WindowDC.DrawRectangleXY
+ DrawRoundedRectangle = WindowDC.DrawRoundedRectangleXY
+ DrawCircle = WindowDC.DrawCircleXY
+ DrawEllipse = WindowDC.DrawEllipseXY
+ DrawIcon = WindowDC.DrawIconXY
+ DrawBitmap = WindowDC.DrawBitmapXY
+ DrawText = WindowDC.DrawTextXY
+ DrawRotatedText = WindowDC.DrawRotatedTextXY
+ Blit = WindowDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class MirrorDC_old(MirrorDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = MirrorDC.FloodFillXY
+ GetPixel = MirrorDC.GetPixelXY
+ DrawLine = MirrorDC.DrawLineXY
+ CrossHair = MirrorDC.CrossHairXY
+ DrawArc = MirrorDC.DrawArcXY
+ DrawCheckMark = MirrorDC.DrawCheckMarkXY
+ DrawEllipticArc = MirrorDC.DrawEllipticArcXY
+ DrawPoint = MirrorDC.DrawPointXY
+ DrawRectangle = MirrorDC.DrawRectangleXY
+ DrawRoundedRectangle = MirrorDC.DrawRoundedRectangleXY
+ DrawCircle = MirrorDC.DrawCircleXY
+ DrawEllipse = MirrorDC.DrawEllipseXY
+ DrawIcon = MirrorDC.DrawIconXY
+ DrawBitmap = MirrorDC.DrawBitmapXY
+ DrawText = MirrorDC.DrawTextXY
+ DrawRotatedText = MirrorDC.DrawRotatedTextXY
+ Blit = MirrorDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class PostScriptDC_old(PostScriptDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = PostScriptDC.FloodFillXY
+ GetPixel = PostScriptDC.GetPixelXY
+ DrawLine = PostScriptDC.DrawLineXY
+ CrossHair = PostScriptDC.CrossHairXY
+ DrawArc = PostScriptDC.DrawArcXY
+ DrawCheckMark = PostScriptDC.DrawCheckMarkXY
+ DrawEllipticArc = PostScriptDC.DrawEllipticArcXY
+ DrawPoint = PostScriptDC.DrawPointXY
+ DrawRectangle = PostScriptDC.DrawRectangleXY
+ DrawRoundedRectangle = PostScriptDC.DrawRoundedRectangleXY
+ DrawCircle = PostScriptDC.DrawCircleXY
+ DrawEllipse = PostScriptDC.DrawEllipseXY
+ DrawIcon = PostScriptDC.DrawIconXY
+ DrawBitmap = PostScriptDC.DrawBitmapXY
+ DrawText = PostScriptDC.DrawTextXY
+ DrawRotatedText = PostScriptDC.DrawRotatedTextXY
+ Blit = PostScriptDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class MetaFileDC_old(MetaFileDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = MetaFileDC.FloodFillXY
+ GetPixel = MetaFileDC.GetPixelXY
+ DrawLine = MetaFileDC.DrawLineXY
+ CrossHair = MetaFileDC.CrossHairXY
+ DrawArc = MetaFileDC.DrawArcXY
+ DrawCheckMark = MetaFileDC.DrawCheckMarkXY
+ DrawEllipticArc = MetaFileDC.DrawEllipticArcXY
+ DrawPoint = MetaFileDC.DrawPointXY
+ DrawRectangle = MetaFileDC.DrawRectangleXY
+ DrawRoundedRectangle = MetaFileDC.DrawRoundedRectangleXY
+ DrawCircle = MetaFileDC.DrawCircleXY
+ DrawEllipse = MetaFileDC.DrawEllipseXY
+ DrawIcon = MetaFileDC.DrawIconXY
+ DrawBitmap = MetaFileDC.DrawBitmapXY
+ DrawText = MetaFileDC.DrawTextXY
+ DrawRotatedText = MetaFileDC.DrawRotatedTextXY
+ Blit = MetaFileDC.BlitXY
+ </pythoncode>
+ <pythoncode>
+ class PrinterDC_old(PrinterDC):
+ """DC class that has methods with 2.4 compatible parameters."""
+ FloodFill = PrinterDC.FloodFillXY
+ GetPixel = PrinterDC.GetPixelXY
+ DrawLine = PrinterDC.DrawLineXY
+ CrossHair = PrinterDC.CrossHairXY
+ DrawArc = PrinterDC.DrawArcXY
+ DrawCheckMark = PrinterDC.DrawCheckMarkXY
+ DrawEllipticArc = PrinterDC.DrawEllipticArcXY
+ DrawPoint = PrinterDC.DrawPointXY
+ DrawRectangle = PrinterDC.DrawRectangleXY
+ DrawRoundedRectangle = PrinterDC.DrawRoundedRectangleXY
+ DrawCircle = PrinterDC.DrawCircleXY
+ DrawEllipse = PrinterDC.DrawEllipseXY
+ DrawIcon = PrinterDC.DrawIconXY
+ DrawBitmap = PrinterDC.DrawBitmapXY
+ DrawText = PrinterDC.DrawTextXY
+ DrawRotatedText = PrinterDC.DrawRotatedTextXY
+ Blit = PrinterDC.BlitXY
+ </pythoncode>
+ <pythoncode>
#---------------------------------------------------------------------------
</pythoncode>
<class name="ImageList" oldname="wxImageList" module="gdi">
<pythoncode>
#---------------------------------------------------------------------------
</pythoncode>
+ <pythoncode> NullColor = NullColour </pythoncode>
<pythoncode>
#---------------------------------------------------------------------------
</pythoncode>
<autodoc>Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=wxTAB_TRAVERSAL|wxNO_BORDER,
String name=PanelNameStr) -> bool</autodoc>
+ <docstring>Create the GUI part of the Window for 2-phase creation mode.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
<autodoc>Create(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
String name=PanelNameStr) -> bool</autodoc>
+ <docstring>Create the GUI part of the Window for 2-phase creation mode.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default="-1"/>
</method>
<method name="SetTitle" type="" overloaded="no">
<autodoc>SetTitle(String title)</autodoc>
+ <docstring>Sets the window's title. Applicable only to frames and dialogs.</docstring>
<paramlist>
<param name="title" type="String" default=""/>
</paramlist>
</method>
<method name="GetTitle" type="String" overloaded="no">
<autodoc>GetTitle() -> String</autodoc>
+ <docstring>Gets the window's title. Applicable only to frames and dialogs.</docstring>
</method>
<method name="SetShape" type="bool" overloaded="no">
<autodoc>SetShape(Region region) -> bool</autodoc>
</method>
<method name="GetClientAreaOrigin" type="Point" overloaded="no">
<autodoc>GetClientAreaOrigin() -> Point</autodoc>
+ <docstring>Get the origin of the client area of the window relative to the
+window's top left corner (the client area may be shifted because of
+the borders, scrollbars, other decorations...)</docstring>
</method>
<method name="SendSizeEvent" type="" overloaded="no">
<autodoc>SendSizeEvent()</autodoc>
<param name="flags" type="long" default=""/>
</paramlist>
</method>
- <method name="SetModal" type="" overloaded="no">
- <autodoc>SetModal(bool flag)</autodoc>
- <paramlist>
- <param name="flag" type="bool" default=""/>
- </paramlist>
- </method>
<method name="IsModal" type="bool" overloaded="no">
<autodoc>IsModal() -> bool</autodoc>
</method>
<class name="SplitterWindow" oldname="wxSplitterWindow" module="windows">
<baseclass name="Window"/>
<constructor name="SplitterWindow" overloaded="no">
- <autodoc>__init__(Window parent, int id, Point point=DefaultPosition,
- Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow</autodoc>
+ <autodoc>__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
+ long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow</autodoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
- <param name="point" type="Point" default="wxDefaultPosition"/>
+ <param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
<param name="style" type="long" default="wxSP_3D"/>
<param name="name" type="String" default="wxPySplitterNameStr"/>
<autodoc>PreSplitterWindow() -> SplitterWindow</autodoc>
</constructor>
<method name="Create" type="bool" overloaded="no">
- <autodoc>Create(Window parent, int id, Point point=DefaultPosition,
- Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool</autodoc>
+ <autodoc>Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
+ long style=SP_3D, String name=SplitterNameStr) -> bool</autodoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
- <param name="point" type="Point" default="wxDefaultPosition"/>
+ <param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
<param name="style" type="long" default="wxSP_3D"/>
<param name="name" type="String" default="wxPySplitterNameStr"/>
</method>
<method name="ScrollLines" type="bool" overloaded="no">
<autodoc>ScrollLines(int lines) -> bool</autodoc>
+ <docstring>If the platform and window class supports it, scrolls the window by
+the given number of lines down, if lines is positive, or up if lines
+is negative. Returns True if the window was scrolled, False if it was
+already on top/bottom and nothing was done.</docstring>
<paramlist>
<param name="lines" type="int" default=""/>
</paramlist>
</method>
<method name="ScrollPages" type="bool" overloaded="no">
<autodoc>ScrollPages(int pages) -> bool</autodoc>
+ <docstring>If the platform and window class supports it, scrolls the window by
+the given number of pages down, if pages is positive, or up if pages
+is negative. Returns True if the window was scrolled, False if it was
+already on top/bottom and nothing was done.</docstring>
<paramlist>
<param name="pages" type="int" default=""/>
</paramlist>
</method>
<method name="HitTestXT" type="int" overloaded="no">
<autodoc>HitTestXT(int x, int y) -> int</autodoc>
+ <docstring>Test where the given (in client coords) point lies</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
</method>
<method name="HitTest" type="int" overloaded="no">
<autodoc>HitTest(Point pt) -> int</autodoc>
+ <docstring>Test where the given (in client coords) point lies</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
</paramlist>
#---------------------------------------------------------------------------
</pythoncode>
<class name="ColourData" oldname="wxColourData" module="windows">
+ <docstring>This class holds a variety of information related to colour dialogs.</docstring>
<baseclass name="Object"/>
<constructor name="ColourData" overloaded="no">
<autodoc>__init__() -> ColourData</autodoc>
+ <docstring>Constructor, sets default values.</docstring>
</constructor>
<destructor name="~wxColourData" overloaded="no">
<autodoc>__del__()</autodoc>
</destructor>
<method name="GetChooseFull" type="bool" overloaded="no">
<autodoc>GetChooseFull() -> bool</autodoc>
+ <docstring>Under Windows, determines whether the Windows colour dialog will display
+the full dialog with custom colour selection controls. Has no meaning
+under other platforms. The default value is true.</docstring>
</method>
<method name="GetColour" type="Colour" overloaded="no">
<autodoc>GetColour() -> Colour</autodoc>
+ <docstring>Gets the colour (pre)selected by the dialog.</docstring>
</method>
<method name="GetCustomColour" type="Colour" overloaded="no">
<autodoc>GetCustomColour(int i) -> Colour</autodoc>
+ <docstring>Gets the i'th custom colour associated with the colour dialog. i should
+be an integer between 0 and 15. The default custom colours are all white.</docstring>
<paramlist>
<param name="i" type="int" default=""/>
</paramlist>
</method>
<method name="SetChooseFull" type="" overloaded="no">
<autodoc>SetChooseFull(int flag)</autodoc>
+ <docstring>Under Windows, tells the Windows colour dialog to display the full dialog
+with custom colour selection controls. Under other platforms, has no effect.
+The default value is true.</docstring>
<paramlist>
<param name="flag" type="int" default=""/>
</paramlist>
</method>
<method name="SetColour" type="" overloaded="no">
<autodoc>SetColour(Colour colour)</autodoc>
+ <docstring>Sets the default colour for the colour dialog. The default colour is black.</docstring>
<paramlist>
<param name="colour" type="Colour" default=""/>
</paramlist>
</method>
<method name="SetCustomColour" type="" overloaded="no">
<autodoc>SetCustomColour(int i, Colour colour)</autodoc>
+ <docstring>Sets the i'th custom colour for the colour dialog. i should be an integer
+between 0 and 15. The default custom colours are all white.</docstring>
<paramlist>
<param name="i" type="int" default=""/>
<param name="colour" type="Colour" default=""/>
</method>
</class>
<class name="ColourDialog" oldname="wxColourDialog" module="windows">
+ <docstring>This class represents the colour chooser dialog.</docstring>
<baseclass name="Dialog"/>
<constructor name="ColourDialog" overloaded="no">
<autodoc>__init__(Window parent, ColourData data=None) -> ColourDialog</autodoc>
+ <docstring>Constructor. Pass a parent window, and optionally a ColourData, which
+will be copied to the colour dialog's internal ColourData instance.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="data" type="ColourData" default="NULL"/>
</constructor>
<method name="GetColourData" type="ColourData" overloaded="no">
<autodoc>GetColourData() -> ColourData</autodoc>
- </method>
- <method name="ShowModal" type="int" overloaded="no">
- <autodoc>ShowModal() -> int</autodoc>
+ <docstring>Returns a reference to the ColourData used by the dialog.</docstring>
</method>
</class>
<class name="DirDialog" oldname="wxDirDialog" module="windows">
+ <docstring>This class represents the directory chooser dialog.</docstring>
+ <refdoc>
+ Styles
+ wxDD_NEW_DIR_BUTTON Add "Create new directory" button and allow
+ directory names to be editable. On Windows the new
+ directory button is only available with recent
+ versions of the common dialogs.</refdoc>
<baseclass name="Dialog"/>
<constructor name="DirDialog" overloaded="no">
<autodoc>__init__(Window parent, String message=DirSelectorPromptStr,
String defaultPath=EmptyString, long style=0,
Point pos=DefaultPosition, Size size=DefaultSize,
String name=DirDialogNameStr) -> DirDialog</autodoc>
+ <docstring>Constructor. Use ShowModal method to show the dialog.</docstring>
+ <refdoc>
+ Styles
+ wxDD_NEW_DIR_BUTTON Add "Create new directory" button and allow
+ directory names to be editable. On Windows the new
+ directory button is only available with recent
+ versions of the common dialogs.</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="message" type="String" default="wxPyDirSelectorPromptStr"/>
</constructor>
<method name="GetPath" type="String" overloaded="no">
<autodoc>GetPath() -> String</autodoc>
+ <docstring>Returns the default or user-selected path.</docstring>
</method>
<method name="GetMessage" type="String" overloaded="no">
<autodoc>GetMessage() -> String</autodoc>
+ <docstring>Returns the message that will be displayed on the dialog.</docstring>
</method>
<method name="GetStyle" type="long" overloaded="no">
<autodoc>GetStyle() -> long</autodoc>
+ <docstring>Returns the dialog style.</docstring>
</method>
<method name="SetMessage" type="" overloaded="no">
<autodoc>SetMessage(String message)</autodoc>
+ <docstring>Sets the message that will be displayed on the dialog.</docstring>
<paramlist>
<param name="message" type="String" default=""/>
</paramlist>
</method>
<method name="SetPath" type="" overloaded="no">
<autodoc>SetPath(String path)</autodoc>
+ <docstring>Sets the default path.</docstring>
<paramlist>
<param name="path" type="String" default=""/>
</paramlist>
</method>
- <method name="ShowModal" type="int" overloaded="no">
- <autodoc>ShowModal() -> int</autodoc>
- </method>
</class>
<class name="FileDialog" oldname="wxFileDialog" module="windows">
+ <docstring>This class represents the file chooser dialog.</docstring>
+ <refdoc>
+In Windows, this is the common file selector dialog. In X, this is a file
+selector box with somewhat less functionality. The path and filename are
+distinct elements of a full file pathname. If path is "", the current
+directory will be used. If filename is "", no default filename will be
+supplied. The wildcard determines what files are displayed in the file
+selector, and file extension supplies a type extension for the required
+filename.
+
+Both the X and Windows versions implement a wildcard filter. Typing a filename
+containing wildcards (*, ?) in the filename text item, and clicking on Ok,
+will result in only those files matching the pattern being displayed. The
+wildcard may be a specification for multiple types of file with a description
+for each, such as:
+
+ "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
+
+ Styles
+ wx.OPEN This is an open dialog.
+
+ wx.SAVE This is a save dialog.
+
+ wx.HIDE_READONLY For open dialog only: hide the checkbox allowing to
+ open the file in read-only mode.
+
+ wx.OVERWRITE_PROMPT For save dialog only: prompt for a confirmation if a
+ file will be overwritten.
+
+ wx.MULTIPLE For open dialog only: allows selecting multiple files.
+
+ wx.CHANGE_DIR Change the current working directory to the directory
+ where the file(s) chosen by the user are.
+</refdoc>
<baseclass name="Dialog"/>
<constructor name="FileDialog" overloaded="no">
<autodoc>__init__(Window parent, String message=FileSelectorPromptStr,
String defaultDir=EmptyString, String defaultFile=EmptyString,
String wildcard=FileSelectorDefaultWildcardStr,
long style=0, Point pos=DefaultPosition) -> FileDialog</autodoc>
+ <docstring>Constructor. Use ShowModal method to show the dialog.</docstring>
+ <refdoc>
+In Windows, this is the common file selector dialog. In X, this is a file
+selector box with somewhat less functionality. The path and filename are
+distinct elements of a full file pathname. If path is "", the current
+directory will be used. If filename is "", no default filename will be
+supplied. The wildcard determines what files are displayed in the file
+selector, and file extension supplies a type extension for the required
+filename.
+
+Both the X and Windows versions implement a wildcard filter. Typing a filename
+containing wildcards (*, ?) in the filename text item, and clicking on Ok,
+will result in only those files matching the pattern being displayed. The
+wildcard may be a specification for multiple types of file with a description
+for each, such as:
+
+ "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
+
+ Styles
+ wx.OPEN This is an open dialog.
+
+ wx.SAVE This is a save dialog.
+
+ wx.HIDE_READONLY For open dialog only: hide the checkbox allowing to
+ open the file in read-only mode.
+
+ wx.OVERWRITE_PROMPT For save dialog only: prompt for a confirmation if a
+ file will be overwritten.
+
+ wx.MULTIPLE For open dialog only: allows selecting multiple files.
+
+ wx.CHANGE_DIR Change the current working directory to the directory
+ where the file(s) chosen by the user are.
+</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="message" type="String" default="wxPyFileSelectorPromptStr"/>
</constructor>
<method name="SetMessage" type="" overloaded="no">
<autodoc>SetMessage(String message)</autodoc>
+ <docstring>Sets the message that will be displayed on the dialog.</docstring>
<paramlist>
<param name="message" type="String" default=""/>
</paramlist>
</method>
<method name="SetPath" type="" overloaded="no">
<autodoc>SetPath(String path)</autodoc>
+ <docstring>Sets the path (the combined directory and filename that will
+be returned when the dialog is dismissed).</docstring>
<paramlist>
<param name="path" type="String" default=""/>
</paramlist>
</method>
<method name="SetDirectory" type="" overloaded="no">
<autodoc>SetDirectory(String dir)</autodoc>
+ <docstring>Sets the default directory.</docstring>
<paramlist>
<param name="dir" type="String" default=""/>
</paramlist>
</method>
<method name="SetFilename" type="" overloaded="no">
<autodoc>SetFilename(String name)</autodoc>
+ <docstring>Sets the default filename.</docstring>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
</method>
<method name="SetWildcard" type="" overloaded="no">
<autodoc>SetWildcard(String wildCard)</autodoc>
+ <docstring>Sets the wildcard, which can contain multiple file types, for example:
+ "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"</docstring>
<paramlist>
<param name="wildCard" type="String" default=""/>
</paramlist>
</method>
<method name="SetStyle" type="" overloaded="no">
<autodoc>SetStyle(long style)</autodoc>
+ <docstring>Sets the dialog style.</docstring>
<paramlist>
<param name="style" type="long" default=""/>
</paramlist>
</method>
<method name="SetFilterIndex" type="" overloaded="no">
<autodoc>SetFilterIndex(int filterIndex)</autodoc>
+ <docstring>Sets the default filter index, starting from zero.</docstring>
<paramlist>
<param name="filterIndex" type="int" default=""/>
</paramlist>
</method>
<method name="GetMessage" type="String" overloaded="no">
<autodoc>GetMessage() -> String</autodoc>
+ <docstring>Returns the message that will be displayed on the dialog.</docstring>
</method>
<method name="GetPath" type="String" overloaded="no">
<autodoc>GetPath() -> String</autodoc>
+ <docstring>Returns the full path (directory and filename) of the selected file.</docstring>
</method>
<method name="GetDirectory" type="String" overloaded="no">
<autodoc>GetDirectory() -> String</autodoc>
+ <docstring>Returns the default directory.</docstring>
</method>
<method name="GetFilename" type="String" overloaded="no">
<autodoc>GetFilename() -> String</autodoc>
+ <docstring>Returns the default filename.</docstring>
</method>
<method name="GetWildcard" type="String" overloaded="no">
<autodoc>GetWildcard() -> String</autodoc>
+ <docstring>Returns the file dialog wildcard.</docstring>
</method>
<method name="GetStyle" type="long" overloaded="no">
<autodoc>GetStyle() -> long</autodoc>
+ <docstring>Returns the dialog style.</docstring>
</method>
<method name="GetFilterIndex" type="int" overloaded="no">
<autodoc>GetFilterIndex() -> int</autodoc>
+ <docstring>Returns the index into the list of filters supplied, optionally, in
+the wildcard parameter. Before the dialog is shown, this is the index
+which will be used when the dialog is first displayed. After the dialog
+is shown, this is the index selected by the user.</docstring>
</method>
<method name="GetFilenames" type="PyObject" overloaded="no">
<autodoc>GetFilenames() -> PyObject</autodoc>
+ <docstring>Returns a list of filenames chosen in the dialog. This function should
+only be used with the dialogs which have wx.MULTIPLE style, use
+GetFilename for the others.</docstring>
</method>
<method name="GetPaths" type="PyObject" overloaded="no">
<autodoc>GetPaths() -> PyObject</autodoc>
+ <docstring>Fills the array paths with the full paths of the files chosen. This
+function should only be used with the dialogs which have wx.MULTIPLE style,
+use GetPath for the others.</docstring>
</method>
</class>
<class name="MultiChoiceDialog" oldname="wxMultiChoiceDialog" module="windows">
+ <docstring>A simple dialog with a multi selection listbox.</docstring>
<baseclass name="Dialog"/>
<constructor name="MultiChoiceDialog" overloaded="no">
- <autodoc>__init__(Window parent, String message, String caption, int LCOUNT,
- String choices, long style=CHOICEDLG_STYLE,
+ <autodoc>__init__(Window parent, String message, String caption,
+ List choices=[], long style=CHOICEDLG_STYLE,
Point pos=DefaultPosition) -> MultiChoiceDialog</autodoc>
+ <docstring>Constructor. Use ShowModal method to show the dialog.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="message" type="String" default=""/>
<param name="caption" type="String" default=""/>
- <param name="LCOUNT" type="int" default=""/>
- <param name="choices" type="String" default=""/>
+ <param name="choices" type="int" default="0"/>
+ <param name="choices_array" type="String" default=""/>
<param name="style" type="long" default="wxCHOICEDLG_STYLE"/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
</paramlist>
</constructor>
<method name="SetSelections" type="" overloaded="no">
- <autodoc>SetSelections(wxArrayInt selections)</autodoc>
+ <autodoc>SetSelections(List selections)</autodoc>
+ <docstring>Specify the items in the list that shoudl be selected, using a list of integers.</docstring>
<paramlist>
<param name="selections" type="wxArrayInt" default=""/>
</paramlist>
</method>
<method name="GetSelections" type="PyObject" overloaded="no">
- <autodoc>GetSelections() -> PyObject</autodoc>
+ <autodoc>GetSelections() -> [selections]</autodoc>
+ <docstring>Returns a list of integers representing the items that are selected.</docstring>
</method>
</class>
<class name="SingleChoiceDialog" oldname="wxSingleChoiceDialog" module="windows">
+ <docstring>A simple dialog with a single selection listbox.</docstring>
<baseclass name="Dialog"/>
<constructor name="SingleChoiceDialog" overloaded="no">
- <autodoc>__init__(Window parent, String message, String caption, int choices,
- String choices_array, long style=CHOICEDLG_STYLE,
+ <autodoc>__init__(Window parent, String message, String caption,
+ List choices=[], long style=CHOICEDLG_STYLE,
Point pos=DefaultPosition) -> SingleChoiceDialog</autodoc>
+ <docstring>Constructor. Use ShowModal method to show the dialog.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="message" type="String" default=""/>
</constructor>
<method name="GetSelection" type="int" overloaded="no">
<autodoc>GetSelection() -> int</autodoc>
+ <docstring>Get the index of teh currently selected item.</docstring>
</method>
<method name="GetStringSelection" type="String" overloaded="no">
<autodoc>GetStringSelection() -> String</autodoc>
+ <docstring>Returns the string value of the currently selected item</docstring>
</method>
<method name="SetSelection" type="" overloaded="no">
<autodoc>SetSelection(int sel)</autodoc>
+ <docstring>Set the current selected item to sel</docstring>
<paramlist>
<param name="sel" type="int" default=""/>
</paramlist>
</method>
- <method name="ShowModal" type="int" overloaded="no">
- <autodoc>ShowModal() -> int</autodoc>
- </method>
</class>
<class name="TextEntryDialog" oldname="wxTextEntryDialog" module="windows">
+ <docstring>A dialog with text control, [ok] and [cancel] buttons</docstring>
<baseclass name="Dialog"/>
<constructor name="TextEntryDialog" overloaded="no">
<autodoc>__init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
String defaultValue=EmptyString,
long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog</autodoc>
+ <docstring>Constructor. Use ShowModal method to show the dialog.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="message" type="String" default=""/>
</constructor>
<method name="GetValue" type="String" overloaded="no">
<autodoc>GetValue() -> String</autodoc>
+ <docstring>Returns the text that the user has entered if the user has pressed OK,
+or the original value if the user has pressed Cancel.</docstring>
</method>
<method name="SetValue" type="" overloaded="no">
<autodoc>SetValue(String value)</autodoc>
+ <docstring>Sets the default text value.</docstring>
<paramlist>
<param name="value" type="String" default=""/>
</paramlist>
</method>
- <method name="ShowModal" type="int" overloaded="no">
- <autodoc>ShowModal() -> int</autodoc>
- </method>
</class>
<class name="FontData" oldname="wxFontData" module="windows">
+ <docstring>This class holds a variety of information related to font dialogs.</docstring>
<baseclass name="Object"/>
<constructor name="FontData" overloaded="no">
<autodoc>__init__() -> FontData</autodoc>
+ <docstring>This class holds a variety of information related to font dialogs.</docstring>
</constructor>
<destructor name="~wxFontData" overloaded="no">
<autodoc>__del__()</autodoc>
</destructor>
<method name="EnableEffects" type="" overloaded="no">
<autodoc>EnableEffects(bool enable)</autodoc>
+ <docstring>Enables or disables 'effects' under MS Windows only. This refers
+to the controls for manipulating colour, strikeout and underline
+properties. The default value is true.</docstring>
<paramlist>
<param name="enable" type="bool" default=""/>
</paramlist>
</method>
<method name="GetAllowSymbols" type="bool" overloaded="no">
<autodoc>GetAllowSymbols() -> bool</autodoc>
+ <docstring>Under MS Windows, returns a flag determining whether symbol fonts can be
+selected. Has no effect on other platforms. The default value is true.</docstring>
</method>
<method name="GetColour" type="Colour" overloaded="no">
<autodoc>GetColour() -> Colour</autodoc>
+ <docstring>Gets the colour associated with the font dialog. The default value is black.</docstring>
</method>
<method name="GetChosenFont" type="Font" overloaded="no">
<autodoc>GetChosenFont() -> Font</autodoc>
+ <docstring>Gets the font chosen by the user.</docstring>
</method>
<method name="GetEnableEffects" type="bool" overloaded="no">
<autodoc>GetEnableEffects() -> bool</autodoc>
+ <docstring>Determines whether 'effects' are enabled under Windows.</docstring>
</method>
<method name="GetInitialFont" type="Font" overloaded="no">
<autodoc>GetInitialFont() -> Font</autodoc>
+ <docstring>Gets the font that will be initially used by the font dialog. This should have
+previously been set by the application.</docstring>
</method>
<method name="GetShowHelp" type="bool" overloaded="no">
<autodoc>GetShowHelp() -> bool</autodoc>
+ <docstring>Returns true if the Help button will be shown (Windows only). The default
+value is false.</docstring>
</method>
<method name="SetAllowSymbols" type="" overloaded="no">
<autodoc>SetAllowSymbols(bool allowSymbols)</autodoc>
+ <docstring>Under MS Windows, determines whether symbol fonts can be selected. Has no
+effect on other platforms. The default value is true.</docstring>
<paramlist>
<param name="allowSymbols" type="bool" default=""/>
</paramlist>
</method>
<method name="SetChosenFont" type="" overloaded="no">
<autodoc>SetChosenFont(Font font)</autodoc>
+ <docstring>Sets the font that will be returned to the user (for internal use only).</docstring>
<paramlist>
<param name="font" type="Font" default=""/>
</paramlist>
</method>
<method name="SetColour" type="" overloaded="no">
<autodoc>SetColour(Colour colour)</autodoc>
+ <docstring>Sets the colour that will be used for the font foreground colour. The default
+colour is black.</docstring>
<paramlist>
<param name="colour" type="Colour" default=""/>
</paramlist>
</method>
<method name="SetInitialFont" type="" overloaded="no">
<autodoc>SetInitialFont(Font font)</autodoc>
+ <docstring>Sets the font that will be initially used by the font dialog.</docstring>
<paramlist>
<param name="font" type="Font" default=""/>
</paramlist>
</method>
<method name="SetRange" type="" overloaded="no">
<autodoc>SetRange(int min, int max)</autodoc>
+ <docstring>Sets the valid range for the font point size (Windows only). The default is
+0, 0 (unrestricted range).</docstring>
<paramlist>
<param name="min" type="int" default=""/>
<param name="max" type="int" default=""/>
</method>
<method name="SetShowHelp" type="" overloaded="no">
<autodoc>SetShowHelp(bool showHelp)</autodoc>
+ <docstring>Determines whether the Help button will be displayed in the font dialog
+(Windows only). The default value is false.</docstring>
<paramlist>
<param name="showHelp" type="bool" default=""/>
</paramlist>
</method>
</class>
<class name="FontDialog" oldname="wxFontDialog" module="windows">
+ <docstring>This class represents the font chooser dialog.</docstring>
<baseclass name="Dialog"/>
<constructor name="FontDialog" overloaded="no">
<autodoc>__init__(Window parent, FontData data) -> FontDialog</autodoc>
+ <docstring>Constructor. Pass a parent window and the FontData object to be
+used to initialize the dialog controls.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="data" type="FontData" default=""/>
</constructor>
<method name="GetFontData" type="FontData" overloaded="no">
<autodoc>GetFontData() -> FontData</autodoc>
- </method>
- <method name="ShowModal" type="int" overloaded="no">
- <autodoc>ShowModal() -> int</autodoc>
+ <docstring>Returns a reference to the internal FontData used by the FontDialog.</docstring>
</method>
</class>
<class name="MessageDialog" oldname="wxMessageDialog" module="windows">
+ <docstring>This class provides a dialog that shows a single or multi-line message, with
+a choice of OK, Yes, No and Cancel buttons.</docstring>
+ <refdoc>
+ Styles
+ wx.OK: Show an OK button.
+
+ wx.CANCEL: Show a Cancel button.
+
+ wx.YES_NO: Show Yes and No buttons.
+
+ wx.YES_DEFAULT: Used with wxYES_NO, makes Yes button the default - which is the default behaviour.
+
+ wx.NO_DEFAULT: Used with wxYES_NO, makes No button the default.
+
+ wx.ICON_EXCLAMATION: Shows an exclamation mark icon.
+
+ wx.ICON_HAND: Shows an error icon.
+
+ wx.ICON_ERROR: Shows an error icon - the same as wxICON_HAND.
+
+ wx.ICON_QUESTION: Shows a question mark icon.
+
+ wx.ICON_INFORMATION: Shows an information (i) icon.
+
+ wx.STAY_ON_TOP: The message box stays on top of all other window, even those of the other applications (Windows only).
+</refdoc>
<baseclass name="Dialog"/>
<constructor name="MessageDialog" overloaded="no">
<autodoc>__init__(Window parent, String message, String caption=MessageBoxCaptionStr,
long style=wxOK|wxCANCEL|wxCENTRE,
Point pos=DefaultPosition) -> MessageDialog</autodoc>
+ <docstring>This class provides a dialog that shows a single or multi-line message, with
+a choice of OK, Yes, No and Cancel buttons.</docstring>
+ <refdoc>
+ Styles
+ wx.OK: Show an OK button.
+
+ wx.CANCEL: Show a Cancel button.
+
+ wx.YES_NO: Show Yes and No buttons.
+
+ wx.YES_DEFAULT: Used with wxYES_NO, makes Yes button the default - which is the default behaviour.
+
+ wx.NO_DEFAULT: Used with wxYES_NO, makes No button the default.
+
+ wx.ICON_EXCLAMATION: Shows an exclamation mark icon.
+
+ wx.ICON_HAND: Shows an error icon.
+
+ wx.ICON_ERROR: Shows an error icon - the same as wxICON_HAND.
+
+ wx.ICON_QUESTION: Shows a question mark icon.
+
+ wx.ICON_INFORMATION: Shows an information (i) icon.
+
+ wx.STAY_ON_TOP: The message box stays on top of all other window, even those of the other applications (Windows only).
+</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="message" type="String" default=""/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
</paramlist>
</constructor>
- <method name="ShowModal" type="int" overloaded="no">
- <autodoc>ShowModal() -> int</autodoc>
- </method>
</class>
<class name="ProgressDialog" oldname="wxProgressDialog" module="windows">
+ <docstring>A dialog that shows a short message and a progress bar. Optionally, it can
+display an ABORT button.</docstring>
+ <refdoc>
+ Styles
+
+ wx.PD_APP_MODAL: Make the progress dialog modal. If this flag is
+ not given, it is only "locally" modal - that is
+ the input to the parent window is disabled,
+ but not to the other ones.
+
+ wx.PD_AUTO_HIDE: Causes the progress dialog to disappear from screen
+ as soon as the maximum value of the progress
+ meter has been reached.
+
+ wx.PD_CAN_ABORT: This flag tells the dialog that it should have
+ a "Cancel" button which the user may press. If
+ this happens, the next call to Update() will
+ return false.
+
+ wx.PD_ELAPSED_TIME: This flag tells the dialog that it should show
+ elapsed time (since creating the dialog).
+
+ wx.PD_ESTIMATED_TIME: This flag tells the dialog that it should show
+ estimated time.
+
+ wx.PD_REMAINING_TIME: This flag tells the dialog that it should show
+ remaining time.
+</refdoc>
<baseclass name="Frame"/>
<constructor name="ProgressDialog" overloaded="no">
<autodoc>__init__(String title, String message, int maximum=100, Window parent=None,
int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog</autodoc>
+ <docstring>Constructor. Creates the dialog, displays it and disables user input for other
+windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.</docstring>
+ <refdoc>
+ Styles
+
+ wx.PD_APP_MODAL: Make the progress dialog modal. If this flag is
+ not given, it is only "locally" modal - that is
+ the input to the parent window is disabled,
+ but not to the other ones.
+
+ wx.PD_AUTO_HIDE: Causes the progress dialog to disappear from screen
+ as soon as the maximum value of the progress
+ meter has been reached.
+
+ wx.PD_CAN_ABORT: This flag tells the dialog that it should have
+ a "Cancel" button which the user may press. If
+ this happens, the next call to Update() will
+ return false.
+
+ wx.PD_ELAPSED_TIME: This flag tells the dialog that it should show
+ elapsed time (since creating the dialog).
+
+ wx.PD_ESTIMATED_TIME: This flag tells the dialog that it should show
+ estimated time.
+
+ wx.PD_REMAINING_TIME: This flag tells the dialog that it should show
+ remaining time.
+</refdoc>
<paramlist>
<param name="title" type="String" default=""/>
<param name="message" type="String" default=""/>
</constructor>
<method name="Update" type="bool" overloaded="no">
<autodoc>Update(int value, String newmsg=EmptyString) -> bool</autodoc>
+ <docstring>Updates the dialog, setting the progress bar to the new value and, if given
+changes the message above it. Returns true unless the Cancel button has been
+pressed.
+
+If false is returned, the application can either immediately destroy the
+dialog or ask the user for the confirmation and if the abort is not confirmed
+the dialog may be resumed with Resume function.</docstring>
<paramlist>
<param name="value" type="int" default=""/>
<param name="newmsg" type="String" default="wxPyEmptyString"/>
</method>
<method name="Resume" type="" overloaded="no">
<autodoc>Resume()</autodoc>
+ <docstring>Can be used to continue with the dialog, after the user had chosen to abort.</docstring>
</method>
</class>
<pythoncode>
EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
</pythoncode>
<class name="FindDialogEvent" oldname="wxFindDialogEvent" module="windows">
+ <docstring>Events for the FindReplaceDialog</docstring>
<baseclass name="CommandEvent"/>
<constructor name="FindDialogEvent" overloaded="no">
<autodoc>__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent</autodoc>
+ <docstring>Events for the FindReplaceDialog</docstring>
<paramlist>
<param name="commandType" type="wxEventType" default="wxEVT_NULL"/>
<param name="id" type="int" default="0"/>
</constructor>
<method name="GetFlags" type="int" overloaded="no">
<autodoc>GetFlags() -> int</autodoc>
+ <docstring>Get the currently selected flags: this is the combination of
+wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.</docstring>
</method>
<method name="GetFindString" type="String" overloaded="no">
<autodoc>GetFindString() -> String</autodoc>
+ <docstring>Return the string to find (never empty).</docstring>
</method>
<method name="GetReplaceString" type="String" overloaded="no">
<autodoc>GetReplaceString() -> String</autodoc>
+ <docstring>Return the string to replace the search string with (only
+for replace and replace all events).</docstring>
</method>
<method name="GetDialog" type="wxFindReplaceDialog" overloaded="no">
<autodoc>GetDialog() -> FindReplaceDialog</autodoc>
+ <docstring>Return the pointer to the dialog which generated this event.</docstring>
</method>
<method name="SetFlags" type="" overloaded="no">
<autodoc>SetFlags(int flags)</autodoc>
</method>
</class>
<class name="FindReplaceData" oldname="wxFindReplaceData" module="windows">
+ <docstring>FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
+the dialog with the default values and will keep the last values from the
+dialog when it is closed. It is also updated each time a wxFindDialogEvent is
+generated so instead of using the wxFindDialogEvent methods you can also
+directly query this object.
+
+Note that all SetXXX() methods may only be called before showing the dialog
+and calling them has no effect later.
+
+ Flags
+ wxFR_DOWN: downward search/replace selected (otherwise, upwards)
+
+ wxFR_WHOLEWORD: whole word search/replace selected
+
+ wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
+ case insensitive)
+</docstring>
<baseclass name="Object"/>
<constructor name="FindReplaceData" overloaded="no">
<autodoc>__init__(int flags=0) -> FindReplaceData</autodoc>
+ <docstring>Constuctor initializes the flags to default value (0).</docstring>
<paramlist>
<param name="flags" type="int" default="0"/>
</paramlist>
</destructor>
<method name="GetFindString" type="String" overloaded="no">
<autodoc>GetFindString() -> String</autodoc>
+ <docstring>Get the string to find.</docstring>
</method>
<method name="GetReplaceString" type="String" overloaded="no">
<autodoc>GetReplaceString() -> String</autodoc>
+ <docstring>Get the replacement string.</docstring>
</method>
<method name="GetFlags" type="int" overloaded="no">
<autodoc>GetFlags() -> int</autodoc>
+ <docstring>Get the combination of flag values.</docstring>
</method>
<method name="SetFlags" type="" overloaded="no">
<autodoc>SetFlags(int flags)</autodoc>
+ <docstring>Set the flags to use to initialize the controls of the dialog.</docstring>
<paramlist>
<param name="flags" type="int" default=""/>
</paramlist>
</method>
<method name="SetFindString" type="" overloaded="no">
<autodoc>SetFindString(String str)</autodoc>
+ <docstring>Set the string to find (used as initial value by the dialog).</docstring>
<paramlist>
<param name="str" type="String" default=""/>
</paramlist>
</method>
<method name="SetReplaceString" type="" overloaded="no">
<autodoc>SetReplaceString(String str)</autodoc>
+ <docstring>Set the replacement string (used as initial value by the dialog).</docstring>
<paramlist>
<param name="str" type="String" default=""/>
</paramlist>
</method>
</class>
<class name="FindReplaceDialog" oldname="wxFindReplaceDialog" module="windows">
+ <docstring>FindReplaceDialog is a standard modeless dialog which is used to allow the
+user to search for some text (and possibly replace it with something
+else). The actual searching is supposed to be done in the owner window which
+is the parent of this dialog. Note that it means that unlike for the other
+standard dialogs this one must have a parent window. Also note that there is
+no way to use this dialog in a modal way; it is always, by design and
+implementation, modeless.</docstring>
+ <refdoc>
+ Styles
+ wx.FR_REPLACEDIALOG: replace dialog (otherwise find dialog)
+
+ wx.FR_NOUPDOWN: don't allow changing the search direction
+
+ wx.FR_NOMATCHCASE: don't allow case sensitive searching
+
+ wx.FR_NOWHOLEWORD: don't allow whole word searching
+</refdoc>
<baseclass name="Dialog"/>
<constructor name="FindReplaceDialog" overloaded="no">
<autodoc>__init__(Window parent, FindReplaceData data, String title,
int style=0) -> FindReplaceDialog</autodoc>
+ <docstring>Create a FindReplaceDialog. The parent and data parameters must be
+non-None. Use Show to display the dialog.</docstring>
+ <refdoc>
+ Styles
+ wx.FR_REPLACEDIALOG: replace dialog (otherwise find dialog)
+
+ wx.FR_NOUPDOWN: don't allow changing the search direction
+
+ wx.FR_NOMATCHCASE: don't allow case sensitive searching
+
+ wx.FR_NOWHOLEWORD: don't allow whole word searching
+</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="data" type="FindReplaceData" default=""/>
</constructor>
<constructor name="PreFindReplaceDialog" overloaded="no">
<autodoc>PreFindReplaceDialog() -> FindReplaceDialog</autodoc>
+ <docstring>Precreate a FindReplaceDialog for 2-phase creation</docstring>
+ <refdoc>
+ Styles
+ wx.FR_REPLACEDIALOG: replace dialog (otherwise find dialog)
+
+ wx.FR_NOUPDOWN: don't allow changing the search direction
+
+ wx.FR_NOMATCHCASE: don't allow case sensitive searching
+
+ wx.FR_NOWHOLEWORD: don't allow whole word searching
+</refdoc>
</constructor>
<method name="Create" type="bool" overloaded="no">
<autodoc>Create(Window parent, FindReplaceData data, String title,
int style=0) -> bool</autodoc>
+ <docstring>Create the dialog, for 2-phase create.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="data" type="FindReplaceData" default=""/>
</method>
<method name="GetData" type="FindReplaceData" overloaded="no">
<autodoc>GetData() -> FindReplaceData</autodoc>
+ <docstring>Get the FindReplaceData object used by this dialog.</docstring>
</method>
<method name="SetData" type="" overloaded="no">
<autodoc>SetData(FindReplaceData data)</autodoc>
+ <docstring>Set the FindReplaceData object used by this dialog.</docstring>
<paramlist>
<param name="data" type="FindReplaceData" default=""/>
</paramlist>
<param name="printMode" type="wxPrintMode" default=""/>
</paramlist>
</method>
+ <method name="GetOutputStream" type="OutputStream" overloaded="no">
+ <autodoc>GetOutputStream() -> OutputStream</autodoc>
+ </method>
+ <method name="SetOutputStream" type="" overloaded="no">
+ <autodoc>SetOutputStream(OutputStream outputstream)</autodoc>
+ <paramlist>
+ <param name="outputstream" type="OutputStream" default=""/>
+ </paramlist>
+ </method>
</class>
<class name="PageSetupDialogData" oldname="wxPageSetupDialogData" module="windows">
<baseclass name="Object"/>
<autodoc>GetAbort() -> bool</autodoc>
</method>
<staticmethod name="GetLastError" type="wxPrinterError" overloaded="no">
- <autodoc>Printer.GetLastError() -> int</autodoc>
+ <autodoc>GetLastError() -> int</autodoc>
</staticmethod>
</class>
<class name="Printout" oldname="wxPyPrintout" module="windows">
<docstring>This sets the button to be the default item for the panel or dialog box.</docstring>
</method>
<staticmethod name="GetDefaultSize" type="Size" overloaded="no">
- <autodoc>Button.GetDefaultSize() -> Size</autodoc>
+ <autodoc>GetDefaultSize() -> Size</autodoc>
</staticmethod>
</class>
<class name="BitmapButton" oldname="wxBitmapButton" module="controls">
- <docstring>A Buttont that contains a bitmap.</docstring>
+ <docstring>A Button that contains a bitmap. A bitmap button can be supplied with a
+single bitmap, and wxWindows will draw all button states using this bitmap. If
+the application needs more control, additional bitmaps for the selected state,
+unpressed focused state, and greyed-out state may be supplied.
+</docstring>
<baseclass name="Button"/>
<constructor name="BitmapButton" overloaded="no">
<autodoc>__init__(Window parent, int id, Bitmap bitmap, Point pos=DefaultPosition,
Size size=DefaultSize, long style=BU_AUTODRAW,
Validator validator=DefaultValidator,
String name=ButtonNameStr) -> BitmapButton</autodoc>
- <docstring>Create and show a button.</docstring>
+ <docstring>Create and show a button with a bitmap for the label.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
#---------------------------------------------------------------------------
</pythoncode>
<class name="CheckBox" oldname="wxCheckBox" module="controls">
+ <docstring>A checkbox is a labelled box which by default is either on (checkmark is
+visible) or off (no checkmark). Optionally (When the wxCHK_3STATE style flag
+is set) it can have a third state, called the mixed or undetermined
+state. Often this is used as a "Does Not Apply" state.</docstring>
+ <refdoc>
+ Styles
+ wx.CHK_2STATE: Create a 2-state checkbox. This is the default.
+ wx.CHK_3STATE: Create a 3-state checkbox.
+ wx.CHK_ALLOW_3RD_STATE_FOR_USER: By default a user can't set a 3-state
+ checkbox to the third state. It can only
+ be done from code. Using this flags
+ allows the user to set the checkbox to
+ the third state by clicking.
+ wx.ALIGN_RIGHT: Makes the text appear on the left of the checkbox.
+
+ Events
+ EVT_CHECKBOX: Sent when checkbox is clicked.
+</refdoc>
<baseclass name="Control"/>
<constructor name="CheckBox" overloaded="no">
<autodoc>__init__(Window parent, int id, String label, Point pos=DefaultPosition,
Size size=DefaultSize, long style=0,
Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> CheckBox</autodoc>
+ <docstring>Creates and shows a CheckBox control</docstring>
+ <refdoc>
+ Styles
+ wx.CHK_2STATE: Create a 2-state checkbox. This is the default.
+ wx.CHK_3STATE: Create a 3-state checkbox.
+ wx.CHK_ALLOW_3RD_STATE_FOR_USER: By default a user can't set a 3-state
+ checkbox to the third state. It can only
+ be done from code. Using this flags
+ allows the user to set the checkbox to
+ the third state by clicking.
+ wx.ALIGN_RIGHT: Makes the text appear on the left of the checkbox.
+
+ Events
+ EVT_CHECKBOX: Sent when checkbox is clicked.
+</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
</constructor>
<constructor name="PreCheckBox" overloaded="no">
<autodoc>PreCheckBox() -> CheckBox</autodoc>
+ <docstring>Precreate a CheckBox for 2-phase creation.</docstring>
+ <refdoc>
+ Styles
+ wx.CHK_2STATE: Create a 2-state checkbox. This is the default.
+ wx.CHK_3STATE: Create a 3-state checkbox.
+ wx.CHK_ALLOW_3RD_STATE_FOR_USER: By default a user can't set a 3-state
+ checkbox to the third state. It can only
+ be done from code. Using this flags
+ allows the user to set the checkbox to
+ the third state by clicking.
+ wx.ALIGN_RIGHT: Makes the text appear on the left of the checkbox.
+
+ Events
+ EVT_CHECKBOX: Sent when checkbox is clicked.
+</refdoc>
</constructor>
<method name="Create" type="bool" overloaded="no">
<autodoc>Create(Window parent, int id, String label, Point pos=DefaultPosition,
Size size=DefaultSize, long style=0,
Validator validator=DefaultValidator, String name=CheckBoxNameStr) -> bool</autodoc>
+ <docstring>Actually create the GUI CheckBox for 2-phase creation.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
</method>
<method name="GetValue" type="bool" overloaded="no">
<autodoc>GetValue() -> bool</autodoc>
+ <docstring>Gets the state of a 2-state CheckBox. Returns True if it is checked,
+False otherwise.</docstring>
</method>
<method name="IsChecked" type="bool" overloaded="no">
<autodoc>IsChecked() -> bool</autodoc>
+ <docstring>Similar to GetValue, but raises an exception if it is not a 2-state CheckBox.</docstring>
</method>
<method name="SetValue" type="" overloaded="no">
<autodoc>SetValue(bool state)</autodoc>
+ <docstring>Set the state of a 2-state CheckBox. Pass True for checked,
+False for unchecked.</docstring>
<paramlist>
<param name="state" type="bool" default=""/>
</paramlist>
</method>
<method name="Get3StateValue" type="wxCheckBoxState" overloaded="no">
<autodoc>Get3StateValue() -> int</autodoc>
+ <docstring>Returns wx.CHK_UNCHECKED when the CheckBox is unchecked, wx.CHK_CHECKED when
+it is checked and wx.CHK_UNDETERMINED when it's in the undetermined state.
+Raises an exceptiion when the function is used with a 2-state CheckBox.</docstring>
</method>
<method name="Set3StateValue" type="" overloaded="no">
<autodoc>Set3StateValue(int state)</autodoc>
+ <docstring>Sets the CheckBox to the given state. The state parameter can be
+one of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED
+(Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
+exception when the CheckBox is a 2-state checkbox and setting the state
+to wx.CHK_UNDETERMINED.</docstring>
<paramlist>
<param name="state" type="wxCheckBoxState" default=""/>
</paramlist>
</method>
<method name="Is3State" type="bool" overloaded="no">
<autodoc>Is3State() -> bool</autodoc>
+ <docstring>Returns whether or not the CheckBox is a 3-state CheckBox.</docstring>
</method>
<method name="Is3rdStateAllowedForUser" type="bool" overloaded="no">
<autodoc>Is3rdStateAllowedForUser() -> bool</autodoc>
+ <docstring>Returns whether or not the user can set the CheckBox to the third state.</docstring>
</method>
</class>
<pythoncode>
#---------------------------------------------------------------------------
</pythoncode>
<class name="Choice" oldname="wxChoice" module="controls">
+ <docstring>A Choice control is used to select one of a list of strings. Unlike a ListBox,
+only the selection is visible until the user pulls down the menu of choices.</docstring>
+ <refdoc>
+ Events
+ EVT_CHOICE: Sent when an item in the list is selected.
+</refdoc>
<baseclass name="ControlWithItems"/>
<constructor name="Choice" overloaded="no">
- <autodoc>__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
- long style=0, Validator validator=DefaultValidator,
+ <autodoc>__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
+ List choices=[], long style=0, Validator validator=DefaultValidator,
String name=ChoiceNameStr) -> Choice</autodoc>
+ <docstring>Create and show a Choice control</docstring>
+ <refdoc>
+ Events
+ EVT_CHOICE: Sent when an item in the list is selected.
+</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="style" type="long" default="0"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<param name="name" type="String" default="wxPyChoiceNameStr"/>
</constructor>
<constructor name="PreChoice" overloaded="no">
<autodoc>PreChoice() -> Choice</autodoc>
+ <docstring>Precreate a Choice control for 2-phase creation.</docstring>
+ <refdoc>
+ Events
+ EVT_CHOICE: Sent when an item in the list is selected.
+</refdoc>
</constructor>
<method name="Create" type="bool" overloaded="no">
- <autodoc>Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
- long style=0, Validator validator=DefaultValidator,
+ <autodoc>Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
+ List choices=[], long style=0, Validator validator=DefaultValidator,
String name=ChoiceNameStr) -> bool</autodoc>
+ <docstring>Actually create the GUI Choice control for 2-phase creation</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="style" type="long" default="0"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<param name="name" type="String" default="wxPyChoiceNameStr"/>
</paramlist>
</method>
- <method name="GetColumns" type="int" overloaded="no">
- <autodoc>GetColumns() -> int</autodoc>
- </method>
- <method name="SetColumns" type="" overloaded="no">
- <autodoc>SetColumns(int n=1)</autodoc>
- <paramlist>
- <param name="n" type="int" default="1"/>
- </paramlist>
- </method>
<method name="SetSelection" type="" overloaded="no">
<autodoc>SetSelection(int n)</autodoc>
+ <docstring>Select the n'th item (zero based) in the list.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
</paramlist>
</method>
<method name="SetStringSelection" type="" overloaded="no">
<autodoc>SetStringSelection(String string)</autodoc>
+ <docstring>Select the item with the specifed string</docstring>
<paramlist>
<param name="string" type="String" default=""/>
</paramlist>
</method>
<method name="SetString" type="" overloaded="no">
- <autodoc>SetString(int n, String s)</autodoc>
+ <autodoc>SetString(int n, String string)</autodoc>
+ <docstring>Set the label for the n'th item (zero based) in the list.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
- <param name="s" type="String" default=""/>
+ <param name="string" type="String" default=""/>
</paramlist>
</method>
</class>
#---------------------------------------------------------------------------
</pythoncode>
<class name="ComboBox" oldname="wxComboBox" module="controls">
+ <docstring>A combobox is like a combination of an edit control and a listbox. It can be
+displayed as static list with editable or read-only text field; or a drop-down
+list with text field.</docstring>
+ <refdoc>
+ Styles
+ wx.CB_SIMPLE: Creates a combobox with a permanently displayed list.
+ Windows only.
+
+ wx.CB_DROPDOWN: Creates a combobox with a drop-down list.
+
+ wx.CB_READONLY: Same as wxCB_DROPDOWN but only the strings specified as
+ the combobox choices can be selected, it is impossible
+ to select (even from a program) a string which is not in
+ the choices list.
+
+ wx.CB_SORT: Sorts the entries in the list alphabetically.
+
+ Events
+
+ EVT_COMBOBOX: Sent when an item on the list is selected.
+ EVT_TEXT: Sent when the combobox text changes.
+</refdoc>
<baseclass name="Control"/>
<baseclass name="ItemContainer"/>
<constructor name="ComboBox" overloaded="no">
- <autodoc>__init__(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
- Size size=DefaultSize,
- int choices=0, String choices_array=None,
- long style=0, Validator validator=DefaultValidator,
- String name=ComboBoxNameStr) -> ComboBox</autodoc>
+ <autodoc>__init__(Window parent, int id, String value=EmptyString,
+ Point pos=DefaultPosition, Size size=DefaultSize,
+ List choices=[], long style=0, Validator validator=DefaultValidator,
+ String name=ComboBoxNameStr) -> ComboBox</autodoc>
+ <docstring>Constructor, creates and shows a ComboBox control.</docstring>
+ <refdoc>
+ Styles
+ wx.CB_SIMPLE: Creates a combobox with a permanently displayed list.
+ Windows only.
+
+ wx.CB_DROPDOWN: Creates a combobox with a drop-down list.
+
+ wx.CB_READONLY: Same as wxCB_DROPDOWN but only the strings specified as
+ the combobox choices can be selected, it is impossible
+ to select (even from a program) a string which is not in
+ the choices list.
+
+ wx.CB_SORT: Sorts the entries in the list alphabetically.
+
+ Events
+
+ EVT_COMBOBOX: Sent when an item on the list is selected.
+ EVT_TEXT: Sent when the combobox text changes.
+</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
<param name="value" type="String" default="wxPyEmptyString"/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="style" type="long" default="0"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<param name="name" type="String" default="wxPyComboBoxNameStr"/>
</constructor>
<constructor name="PreComboBox" overloaded="no">
<autodoc>PreComboBox() -> ComboBox</autodoc>
+ <docstring>Precreate a ComboBox control for 2-phase creation.</docstring>
+ <refdoc>
+ Styles
+ wx.CB_SIMPLE: Creates a combobox with a permanently displayed list.
+ Windows only.
+
+ wx.CB_DROPDOWN: Creates a combobox with a drop-down list.
+
+ wx.CB_READONLY: Same as wxCB_DROPDOWN but only the strings specified as
+ the combobox choices can be selected, it is impossible
+ to select (even from a program) a string which is not in
+ the choices list.
+
+ wx.CB_SORT: Sorts the entries in the list alphabetically.
+
+ Events
+
+ EVT_COMBOBOX: Sent when an item on the list is selected.
+ EVT_TEXT: Sent when the combobox text changes.
+</refdoc>
</constructor>
<method name="Create" type="bool" overloaded="no">
- <autodoc>Create(Window parent, int id, String value=EmptyString, Point pos=DefaultPosition,
- Size size=DefaultSize,
- int choices=0, String choices_array=None,
- long style=0, Validator validator=DefaultValidator,
- String name=ComboBoxNameStr) -> bool</autodoc>
+ <autodoc>Create(Window parent, int id, String value=EmptyString,
+ Point pos=DefaultPosition, Size size=DefaultSize,
+ List choices=[], long style=0, Validator validator=DefaultValidator,
+ String name=ChoiceNameStr) -> bool</autodoc>
+ <docstring>Actually create the GUI wxComboBox control for 2-phase creation</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
<param name="value" type="String" default="wxPyEmptyString"/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="style" type="long" default="0"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
- <param name="name" type="String" default="wxPyComboBoxNameStr"/>
+ <param name="name" type="String" default="wxPyChoiceNameStr"/>
</paramlist>
</method>
<method name="GetValue" type="String" overloaded="no">
<autodoc>GetValue() -> String</autodoc>
+ <docstring>Returns the current value in the combobox text field.</docstring>
</method>
<method name="SetValue" type="" overloaded="no">
<autodoc>SetValue(String value)</autodoc>
</method>
<method name="Copy" type="" overloaded="no">
<autodoc>Copy()</autodoc>
+ <docstring>Copies the selected text to the clipboard.</docstring>
</method>
<method name="Cut" type="" overloaded="no">
<autodoc>Cut()</autodoc>
+ <docstring>Copies the selected text to the clipboard and removes the selection.</docstring>
</method>
<method name="Paste" type="" overloaded="no">
<autodoc>Paste()</autodoc>
+ <docstring>Pastes text from the clipboard to the text field.</docstring>
</method>
<method name="SetInsertionPoint" type="" overloaded="no">
<autodoc>SetInsertionPoint(long pos)</autodoc>
+ <docstring>Sets the insertion point in the combobox text field.</docstring>
<paramlist>
<param name="pos" type="long" default=""/>
</paramlist>
</method>
<method name="GetInsertionPoint" type="long" overloaded="no">
<autodoc>GetInsertionPoint() -> long</autodoc>
+ <docstring>Returns the insertion point for the combobox's text field.</docstring>
</method>
<method name="GetLastPosition" type="long" overloaded="no">
<autodoc>GetLastPosition() -> long</autodoc>
+ <docstring>Returns the last position in the combobox text field.</docstring>
</method>
<method name="Replace" type="" overloaded="no">
<autodoc>Replace(long from, long to, String value)</autodoc>
+ <docstring>Replaces the text between two positions with the given text, in the
+combobox text field.</docstring>
<paramlist>
<param name="from" type="long" default=""/>
<param name="to" type="long" default=""/>
</method>
<method name="SetSelection" type="" overloaded="no">
<autodoc>SetSelection(int n)</autodoc>
+ <docstring>Selects the text between the two positions, in the combobox text field.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
</paramlist>
</method>
<method name="SetInsertionPointEnd" type="" overloaded="no">
<autodoc>SetInsertionPointEnd()</autodoc>
+ <docstring>Sets the insertion point at the end of the combobox text field.</docstring>
</method>
<method name="Remove" type="" overloaded="no">
<autodoc>Remove(long from, long to)</autodoc>
+ <docstring>Removes the text between the two positions in the combobox text field.</docstring>
<paramlist>
<param name="from" type="long" default=""/>
<param name="to" type="long" default=""/>
<autodoc>IsVertical() -> bool</autodoc>
</method>
<staticmethod name="GetDefaultSize" type="int" overloaded="no">
- <autodoc>StaticLine.GetDefaultSize() -> int</autodoc>
+ <autodoc>GetDefaultSize() -> int</autodoc>
</staticmethod>
</class>
<pythoncode>
<baseclass name="ControlWithItems"/>
<constructor name="ListBox" overloaded="no">
<autodoc>__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ListBoxNameStr) -> ListBox</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="style" type="long" default="0"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<param name="name" type="String" default="wxPyListBoxNameStr"/>
</constructor>
<method name="Create" type="bool" overloaded="no">
<autodoc>Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ListBoxNameStr) -> bool</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="style" type="long" default="0"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<param name="name" type="String" default="wxPyListBoxNameStr"/>
</method>
<method name="Insert" type="" overloaded="no">
<autodoc>Insert(String item, int pos, PyObject clientData=None)</autodoc>
+ <docstring>Insert an item into the control before the item at the pos index,
+optionally associating some data object with the item.</docstring>
<paramlist>
<param name="item" type="String" default=""/>
<param name="pos" type="int" default=""/>
</method>
<method name="Select" type="" overloaded="no">
<autodoc>Select(int n)</autodoc>
+ <docstring>Sets the item at index 'n' to be the selected item.</docstring>
<paramlist>
<param name="n" type="int" default=""/>
</paramlist>
<method name="IsSorted" type="bool" overloaded="no">
<autodoc>IsSorted() -> bool</autodoc>
</method>
+ <method name="SetItemForegroundColour" type="" overloaded="no">
+ <autodoc>SetItemForegroundColour(int item, Colour c)</autodoc>
+ <paramlist>
+ <param name="item" type="int" default=""/>
+ <param name="c" type="Colour" default=""/>
+ </paramlist>
+ </method>
+ <method name="SetItemBackgroundColour" type="" overloaded="no">
+ <autodoc>SetItemBackgroundColour(int item, Colour c)</autodoc>
+ <paramlist>
+ <param name="item" type="int" default=""/>
+ <param name="c" type="Colour" default=""/>
+ </paramlist>
+ </method>
+ <method name="SetItemFont" type="" overloaded="no">
+ <autodoc>SetItemFont(int item, Font f)</autodoc>
+ <paramlist>
+ <param name="item" type="int" default=""/>
+ <param name="f" type="Font" default=""/>
+ </paramlist>
+ </method>
</class>
<pythoncode>
#---------------------------------------------------------------------------
<baseclass name="ListBox"/>
<constructor name="CheckListBox" overloaded="no">
<autodoc>__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ListBoxNameStr) -> CheckListBox</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="style" type="long" default="0"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<param name="name" type="String" default="wxPyListBoxNameStr"/>
</constructor>
<method name="Create" type="bool" overloaded="no">
<autodoc>Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
- int choices=0, String choices_array=None,
+ wxArrayString choices=wxPyEmptyStringArray,
long style=0, Validator validator=DefaultValidator,
String name=ListBoxNameStr) -> bool</autodoc>
<paramlist>
<param name="id" type="int" default=""/>
<param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="style" type="long" default="0"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<param name="name" type="String" default="wxPyListBoxNameStr"/>
</method>
<method name="HitTest" type="int" overloaded="no">
<autodoc>HitTest(Point pt) -> int</autodoc>
+ <docstring>Test where the given (in client coords) point lies</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
</paramlist>
</method>
<method name="HitTestXY" type="int" overloaded="no">
<autodoc>HitTestXY(int x, int y) -> int</autodoc>
+ <docstring>Test where the given (in client coords) point lies</docstring>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
<param name="alignment" type="wxTextAttrAlignment" default="wxTEXT_ALIGNMENT_DEFAULT"/>
</paramlist>
</constructor>
+ <destructor name="~wxTextAttr" overloaded="no">
+ <autodoc>__del__()</autodoc>
+ </destructor>
<method name="Init" type="" overloaded="no">
<autodoc>Init()</autodoc>
</method>
<autodoc>IsDefault() -> bool</autodoc>
</method>
<staticmethod name="Combine" type="TextAttr" overloaded="no">
- <autodoc>TextAttr.Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr</autodoc>
+ <autodoc>Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr</autodoc>
<paramlist>
<param name="attr" type="TextAttr" default=""/>
<param name="attrDef" type="TextAttr" default=""/>
<param name="pos" type="long" default=""/>
</paramlist>
</method>
+ <method name="HitTest" type="wxTextCtrlHitTestResult" overloaded="no">
+ <autodoc>HitTest(Point pt) -> (result, row, col)</autodoc>
+ <docstring>Find the character at position given in pixels.
+NB: pt is in device coords (not adjusted for the client area
+origin nor scrolling)</docstring>
+ <paramlist>
+ <param name="pt" type="Point" default=""/>
+ <param name="OUTPUT" type="long" default=""/>
+ <param name="OUTPUT" type="long" default=""/>
+ </paramlist>
+ </method>
<method name="Copy" type="" overloaded="no">
<autodoc>Copy()</autodoc>
</method>
<autodoc>Create(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=SB_HORIZONTAL,
Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool</autodoc>
+ <docstring>Do the 2nd phase and create the GUI control.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default="-1"/>
<method name="SetScrollbar" type="" overloaded="no">
<autodoc>SetScrollbar(int position, int thumbSize, int range, int pageSize,
bool refresh=True)</autodoc>
+ <docstring>Sets the scrollbar properties of a built-in scrollbar.
+
+ orientation: Determines the scrollbar whose page size is to be
+ set. May be wx.HORIZONTAL or wx.VERTICAL.
+
+ position: The position of the scrollbar in scroll units.
+
+ thumbSize: The size of the thumb, or visible portion of the
+ scrollbar, in scroll units.
+
+ range: The maximum position of the scrollbar.
+
+ refresh: True to redraw the scrollbar, false otherwise.</docstring>
<paramlist>
<param name="position" type="int" default=""/>
<param name="thumbSize" type="int" default=""/>
</paramlist>
</method>
</class>
+ <class name="SpinEvent" oldname="wxSpinEvent" module="controls">
+ <baseclass name="NotifyEvent"/>
+ <constructor name="SpinEvent" overloaded="no">
+ <autodoc>__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent</autodoc>
+ <paramlist>
+ <param name="commandType" type="wxEventType" default="wxEVT_NULL"/>
+ <param name="winid" type="int" default="0"/>
+ </paramlist>
+ </constructor>
+ <method name="GetPosition" type="int" overloaded="no">
+ <autodoc>GetPosition() -> int</autodoc>
+ </method>
+ <method name="SetPosition" type="" overloaded="no">
+ <autodoc>SetPosition(int pos)</autodoc>
+ <paramlist>
+ <param name="pos" type="int" default=""/>
+ </paramlist>
+ </method>
+ </class>
<pythoncode>
-EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1)
+EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1)
+EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1)
+EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1)
+EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1)
</pythoncode>
<pythoncode>
#---------------------------------------------------------------------------
<class name="RadioBox" oldname="wxRadioBox" module="controls">
<baseclass name="Control"/>
<constructor name="RadioBox" overloaded="no">
- <autodoc>__init__(Window parent, int id, String label, Point point=DefaultPosition,
- Size size=DefaultSize, int choices=0,
- String choices_array=None, int majorDimension=0,
+ <autodoc>__init__(Window parent, int id, String label, Point pos=DefaultPosition,
+ Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
+ int majorDimension=0,
long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
String name=RadioBoxNameStr) -> RadioBox</autodoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
<param name="label" type="String" default=""/>
- <param name="point" type="Point" default="wxDefaultPosition"/>
+ <param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="majorDimension" type="int" default="0"/>
<param name="style" type="long" default="wxRA_HORIZONTAL"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<autodoc>PreRadioBox() -> RadioBox</autodoc>
</constructor>
<method name="Create" type="bool" overloaded="no">
- <autodoc>Create(Window parent, int id, String label, Point point=DefaultPosition,
- Size size=DefaultSize, int choices=0,
- String choices_array=None, int majorDimension=0,
+ <autodoc>Create(Window parent, int id, String label, Point pos=DefaultPosition,
+ Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
+ int majorDimension=0,
long style=RA_HORIZONTAL, Validator validator=DefaultValidator,
String name=RadioBoxNameStr) -> bool</autodoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
<param name="label" type="String" default=""/>
- <param name="point" type="Point" default="wxDefaultPosition"/>
+ <param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
- <param name="choices" type="int" default="0"/>
- <param name="choices_array" type="String" default="NULL"/>
+ <param name="choices" type="wxArrayString" default="wxPyEmptyStringArray"/>
<param name="majorDimension" type="int" default="0"/>
<param name="style" type="long" default="wxRA_HORIZONTAL"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<baseclass name="Control"/>
<constructor name="Slider" overloaded="no">
<autodoc>__init__(Window parent, int id, int value, int minValue, int maxValue,
- Point point=DefaultPosition, Size size=DefaultSize,
+ Point pos=DefaultPosition, Size size=DefaultSize,
long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
String name=SliderNameStr) -> Slider</autodoc>
<paramlist>
<param name="value" type="int" default=""/>
<param name="minValue" type="int" default=""/>
<param name="maxValue" type="int" default=""/>
- <param name="point" type="Point" default="wxDefaultPosition"/>
+ <param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
<param name="style" type="long" default="wxSL_HORIZONTAL"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
</constructor>
<method name="Create" type="bool" overloaded="no">
<autodoc>Create(Window parent, int id, int value, int minValue, int maxValue,
- Point point=DefaultPosition, Size size=DefaultSize,
+ Point pos=DefaultPosition, Size size=DefaultSize,
long style=SL_HORIZONTAL, Validator validator=DefaultValidator,
String name=SliderNameStr) -> bool</autodoc>
<paramlist>
<param name="value" type="int" default=""/>
<param name="minValue" type="int" default=""/>
<param name="maxValue" type="int" default=""/>
- <param name="point" type="Point" default="wxDefaultPosition"/>
+ <param name="pos" type="Point" default="wxDefaultPosition"/>
<param name="size" type="Size" default="wxDefaultSize"/>
<param name="style" type="long" default="wxSL_HORIZONTAL"/>
<param name="validator" type="Validator" default="wxDefaultValidator"/>
<autodoc>GetThumbLength() -> int</autodoc>
</method>
<method name="SetTickFreq" type="" overloaded="no">
- <autodoc>SetTickFreq(int n, int pos)</autodoc>
+ <autodoc>SetTickFreq(int n, int pos=1)</autodoc>
<paramlist>
<param name="n" type="int" default=""/>
- <param name="pos" type="int" default=""/>
+ <param name="pos" type="int" default="1"/>
</paramlist>
</method>
<method name="GetTickFreq" type="int" overloaded="no">
</method>
<method name="SetLabel" type="" overloaded="no">
<autodoc>SetLabel(String label)</autodoc>
+ <docstring>Sets the item's text.</docstring>
<paramlist>
<param name="label" type="String" default=""/>
</paramlist>
</method>
<method name="HitTest" type="int" overloaded="no">
<autodoc>HitTest(Point pt) -> (tab, where)</autodoc>
- <docstring>Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags.</docstring>
+ <docstring>Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.</docstring>
<paramlist>
<param name="pt" type="Point" default=""/>
<param name="OUTPUT" type="long" default=""/>
<autodoc>Create(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=LC_ICON,
Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool</autodoc>
+ <docstring>Do the 2nd phase and create the GUI control.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default="-1"/>
</method>
<method name="SetForegroundColour" type="bool" overloaded="no">
<autodoc>SetForegroundColour(Colour col) -> bool</autodoc>
+ <docstring>Sets the foreground colour of the window. Returns True is the colour
+was changed. The interpretation of foreground colour is dependent on
+the window class; it may be the text colour or other colour, or it may
+not be used at all.</docstring>
<paramlist>
<param name="col" type="Colour" default=""/>
</paramlist>
</method>
<method name="SetBackgroundColour" type="bool" overloaded="no">
<autodoc>SetBackgroundColour(Colour col) -> bool</autodoc>
+ <docstring>Sets the background colour of the window. Returns True if the colour
+was changed. The background colour is usually painted by the default
+EVT_ERASE_BACKGROUND event handler function under Windows and
+automatically under GTK.
+
+Note that setting the background colour does not cause an immediate
+refresh, so you may wish to call ClearBackground or Refresh after
+calling this function.
+
+Use this function with care under GTK+ as the new appearance of the
+window might not look equally well when used with themes, i.e GTK+'s
+ability to change its look as the user wishes with run-time loadable
+modules.</docstring>
<paramlist>
<param name="col" type="Colour" default=""/>
</paramlist>
</method>
<method name="SetWindowStyleFlag" type="" overloaded="no">
<autodoc>SetWindowStyleFlag(long style)</autodoc>
+ <docstring>Sets the style of the window. Please note that some styles cannot be
+changed after the window creation and that Refresh() might be called
+after changing the others for the change to take place immediately.</docstring>
<paramlist>
<param name="style" type="long" default=""/>
</paramlist>
<autodoc>Create(Window parent, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize, long style=LC_REPORT,
Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool</autodoc>
+ <docstring>Do the 2nd phase and create the GUI control.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default="-1"/>
<param name="other" type="TreeItemId" default=""/>
</paramlist>
</method>
- <property name="m_pItem" type="wxTreeItemIdValue" readonly="no"/>
+ <property name="m_pItem" type="" readonly="no"/>
</class>
<class name="TreeItemData" oldname="wxPyTreeItemData" module="controls">
<constructor name="wxPyTreeItemData" overloaded="no">
Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
Validator validator=DefaultValidator,
String name=TreeCtrlNameStr) -> bool</autodoc>
+ <docstring>Do the 2nd phase and create the GUI control.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default="-1"/>
</paramlist>
</method>
<method name="GetNextChild" type="PyObject" overloaded="no">
- <autodoc>GetNextChild(TreeItemId item, wxTreeItemIdValue cookie) -> PyObject</autodoc>
+ <autodoc>GetNextChild(TreeItemId item, void cookie) -> PyObject</autodoc>
<paramlist>
<param name="item" type="TreeItemId" default=""/>
- <param name="cookie" type="wxTreeItemIdValue" default=""/>
+ <param name="cookie" type="" default=""/>
</paramlist>
</method>
<method name="GetLastChild" type="TreeItemId" overloaded="no">
<method name="Unselect" type="" overloaded="no">
<autodoc>Unselect()</autodoc>
</method>
+ <method name="UnselectItem" type="" overloaded="no">
+ <autodoc>UnselectItem(TreeItemId item)</autodoc>
+ <paramlist>
+ <param name="item" type="TreeItemId" default=""/>
+ </paramlist>
+ </method>
<method name="UnselectAll" type="" overloaded="no">
<autodoc>UnselectAll()</autodoc>
</method>
<method name="SelectItem" type="" overloaded="no">
- <autodoc>SelectItem(TreeItemId item)</autodoc>
+ <autodoc>SelectItem(TreeItemId item, bool select=True)</autodoc>
+ <paramlist>
+ <param name="item" type="TreeItemId" default=""/>
+ <param name="select" type="bool" default="True"/>
+ </paramlist>
+ </method>
+ <method name="ToggleItemSelection" type="" overloaded="no">
+ <autodoc>ToggleItemSelection(TreeItemId item)</autodoc>
<paramlist>
<param name="item" type="TreeItemId" default=""/>
</paramlist>
EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2)
</pythoncode>
<class name="HelpEvent" oldname="wxHelpEvent" module="controls">
+ <docstring>A help event is sent when the user has requested
+context-sensitive help. This can either be caused by the
+application requesting context-sensitive help mode via
+wx.ContextHelp, or (on MS Windows) by the system generating a
+WM_HELP message when the user pressed F1 or clicked on the query
+button in a dialog caption.
+
+A help event is sent to the window that the user clicked on, and
+is propagated up the window hierarchy until the event is
+processed or there are no more event handlers. The application
+should call event.GetId to check the identity of the clicked-on
+window, and then either show some suitable help or call
+event.Skip if the identifier is unrecognised. Calling Skip is
+important because it allows wxWindows to generate further events
+for ancestors of the clicked-on window. Otherwise it would be
+impossible to show help for container windows, since processing
+would stop after the first window found.
+
+ Events
+ EVT_HELP Sent when the user has requested context-
+ sensitive help.
+ EVT_HELP_RANGE Allows to catch EVT_HELP for a range of IDs
+</docstring>
<baseclass name="CommandEvent"/>
<constructor name="HelpEvent" overloaded="no">
<autodoc>__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent</autodoc>
</constructor>
<method name="GetPosition" type="Point" overloaded="no">
<autodoc>GetPosition() -> Point</autodoc>
+ <docstring>Returns the left-click position of the mouse, in screen
+coordinates. This allows the application to position the help
+appropriately.</docstring>
</method>
<method name="SetPosition" type="" overloaded="no">
<autodoc>SetPosition(Point pos)</autodoc>
+ <docstring>Sets the left-click position of the mouse, in screen coordinates.</docstring>
<paramlist>
<param name="pos" type="Point" default=""/>
</paramlist>
</method>
<method name="GetLink" type="String" overloaded="no">
<autodoc>GetLink() -> String</autodoc>
+ <docstring>Get an optional link to further help</docstring>
</method>
<method name="SetLink" type="" overloaded="no">
<autodoc>SetLink(String link)</autodoc>
+ <docstring>Set an optional link to further help</docstring>
<paramlist>
<param name="link" type="String" default=""/>
</paramlist>
</method>
<method name="GetTarget" type="String" overloaded="no">
<autodoc>GetTarget() -> String</autodoc>
+ <docstring>Get an optional target to display help in. E.g. a window specification</docstring>
</method>
<method name="SetTarget" type="" overloaded="no">
<autodoc>SetTarget(String target)</autodoc>
+ <docstring>Set an optional target to display help in. E.g. a window specification</docstring>
<paramlist>
<param name="target" type="String" default=""/>
</paramlist>
</method>
</class>
<class name="ContextHelp" oldname="wxContextHelp" module="controls">
+ <docstring>This class changes the cursor to a query and puts the application
+into a 'context-sensitive help mode'. When the user left-clicks
+on a window within the specified window, a EVT_HELP event is sent
+to that control, and the application may respond to it by popping
+up some help.
+
+There are a couple of ways to invoke this behaviour implicitly:
+
+ * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a
+ dialog (Windows only). This will put a question mark in the
+ titlebar, and Windows will put the application into
+ context-sensitive help mode automatically, with further
+ programming.
+
+ * Create a wx.ContextHelpButton, whose predefined behaviour
+ is to create a context help object. Normally you will write
+ your application so that this button is only added to a
+ dialog for non-Windows platforms (use
+ wx.DIALOG_EX_CONTEXTHELP on Windows).
+</docstring>
<baseclass name="Object"/>
<constructor name="ContextHelp" overloaded="no">
<autodoc>__init__(Window window=None, bool doNow=True) -> ContextHelp</autodoc>
+ <docstring>Constructs a context help object, calling BeginContextHelp if
+doNow is true (the default).
+
+If window is None, the top window is used.</docstring>
<paramlist>
<param name="window" type="Window" default="NULL"/>
<param name="doNow" type="bool" default="True"/>
</destructor>
<method name="BeginContextHelp" type="bool" overloaded="no">
<autodoc>BeginContextHelp(Window window=None) -> bool</autodoc>
+ <docstring>Puts the application into context-sensitive help mode. window is
+the window which will be used to catch events; if NULL, the top
+window will be used.
+
+Returns true if the application was successfully put into
+context-sensitive help mode. This function only returns when the
+event loop has finished.</docstring>
<paramlist>
<param name="window" type="Window" default="NULL"/>
</paramlist>
</method>
<method name="EndContextHelp" type="bool" overloaded="no">
<autodoc>EndContextHelp() -> bool</autodoc>
+ <docstring>Ends context-sensitive help mode. Not normally called by the
+application.</docstring>
</method>
</class>
<class name="ContextHelpButton" oldname="wxContextHelpButton" module="controls">
+ <docstring>Instances of this class may be used to add a question mark button
+that when pressed, puts the application into context-help
+mode. It does this by creating a wx.ContextHelp object which
+itself generates a EVT_HELP event when the user clicks on a
+window.
+
+On Windows, you may add a question-mark icon to a dialog by use
+of the wx.DIALOG_EX_CONTEXTHELP extra style, but on other
+platforms you will have to add a button explicitly, usually next
+to OK, Cancel or similar buttons.
+</docstring>
<baseclass name="BitmapButton"/>
<constructor name="ContextHelpButton" overloaded="no">
<autodoc>__init__(Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton</autodoc>
+ <docstring>Constructor, creating and showing a context help button.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default="wxID_CONTEXT_HELP"/>
</constructor>
</class>
<class name="HelpProvider" oldname="wxHelpProvider" module="controls">
+ <docstring>wx.HelpProvider is an abstract class used by a program
+implementing context-sensitive help to show the help text for the
+given window.
+
+The current help provider must be explicitly set by the
+application using wx.HelpProvider.Set().</docstring>
<staticmethod name="Set" type="HelpProvider" overloaded="no">
- <autodoc>HelpProvider.Set(HelpProvider helpProvider) -> HelpProvider</autodoc>
+ <autodoc>Set(HelpProvider helpProvider) -> HelpProvider</autodoc>
+ <docstring>Sset the current, application-wide help provider. Returns the
+previous one. Unlike some other classes, the help provider is
+not created on demand. This must be explicitly done by the
+application.</docstring>
<paramlist>
<param name="helpProvider" type="HelpProvider" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Get" type="HelpProvider" overloaded="no">
- <autodoc>HelpProvider.Get() -> HelpProvider</autodoc>
+ <autodoc>Get() -> HelpProvider</autodoc>
+ <docstring>Return the current application-wide help provider.</docstring>
</staticmethod>
<method name="GetHelp" type="String" overloaded="no">
<autodoc>GetHelp(Window window) -> String</autodoc>
+ <docstring>Gets the help string for this window. Its interpretation is
+dependent on the help provider except that empty string always
+means that no help is associated with the window.</docstring>
<paramlist>
<param name="window" type="Window" default=""/>
</paramlist>
</method>
<method name="ShowHelp" type="bool" overloaded="no">
<autodoc>ShowHelp(Window window) -> bool</autodoc>
+ <docstring>Shows help for the given window. Uses GetHelp internally if
+applicable.
+
+Returns true if it was done, or false if no help was available
+for this window.</docstring>
<paramlist>
<param name="window" type="Window" default=""/>
</paramlist>
</method>
<method name="AddHelp" type="" overloaded="no">
<autodoc>AddHelp(Window window, String text)</autodoc>
+ <docstring>Associates the text with the given window.</docstring>
<paramlist>
<param name="window" type="Window" default=""/>
<param name="text" type="String" default=""/>
</method>
<method name="AddHelpById" type="" overloaded="no">
<autodoc>AddHelpById(int id, String text)</autodoc>
+ <docstring>This version associates the given text with all windows with this
+id. May be used to set the same help string for all Cancel
+buttons in the application, for example.</docstring>
<paramlist>
<param name="id" type="int" default=""/>
<param name="text" type="String" default=""/>
</paramlist>
</method>
+ <method name="RemoveHelp" type="" overloaded="no">
+ <autodoc>RemoveHelp(Window window)</autodoc>
+ <docstring>Removes the association between the window pointer and the help
+text. This is called by the wx.Window destructor. Without this,
+the table of help strings will fill up and when window pointers
+are reused, the wrong help string will be found.</docstring>
+ <paramlist>
+ <param name="window" type="Window" default=""/>
+ </paramlist>
+ </method>
<method name="Destroy" type="" overloaded="no">
<autodoc>Destroy()</autodoc>
</method>
</class>
<class name="SimpleHelpProvider" oldname="wxSimpleHelpProvider" module="controls">
+ <docstring>wx.SimpleHelpProvider is an implementation of wx.HelpProvider
+which supports only plain text help strings, and shows the string
+associated with the control (if any) in a tooltip.</docstring>
<baseclass name="HelpProvider"/>
<constructor name="SimpleHelpProvider" overloaded="no">
<autodoc>__init__() -> SimpleHelpProvider</autodoc>
+ <docstring>wx.SimpleHelpProvider is an implementation of wx.HelpProvider
+which supports only plain text help strings, and shows the string
+associated with the control (if any) in a tooltip.</docstring>
</constructor>
</class>
<pythoncode>
</pythoncode>
<class name="SystemSettings" oldname="wxSystemSettings" module="misc">
<staticmethod name="GetColour" type="Colour" overloaded="no">
- <autodoc>SystemSettings.GetColour(int index) -> Colour</autodoc>
+ <autodoc>GetColour(int index) -> Colour</autodoc>
<paramlist>
<param name="index" type="wxSystemColour" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetFont" type="Font" overloaded="no">
- <autodoc>SystemSettings.GetFont(int index) -> Font</autodoc>
+ <autodoc>GetFont(int index) -> Font</autodoc>
<paramlist>
<param name="index" type="wxSystemFont" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetMetric" type="int" overloaded="no">
- <autodoc>SystemSettings.GetMetric(int index) -> int</autodoc>
+ <autodoc>GetMetric(int index) -> int</autodoc>
<paramlist>
<param name="index" type="wxSystemMetric" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="HasFeature" type="bool" overloaded="no">
- <autodoc>SystemSettings.HasFeature(int index) -> bool</autodoc>
+ <autodoc>HasFeature(int index) -> bool</autodoc>
<paramlist>
<param name="index" type="wxSystemFeature" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetScreenType" type="wxSystemScreenType" overloaded="no">
- <autodoc>SystemSettings.GetScreenType() -> int</autodoc>
+ <autodoc>GetScreenType() -> int</autodoc>
</staticmethod>
<staticmethod name="SetScreenType" type="" overloaded="no">
- <autodoc>SystemSettings.SetScreenType(int screen)</autodoc>
+ <autodoc>SetScreenType(int screen)</autodoc>
<paramlist>
<param name="screen" type="wxSystemScreenType" default=""/>
</paramlist>
<autodoc>__init__() -> SystemOptions</autodoc>
</constructor>
<staticmethod name="SetOption" type="" overloaded="no">
- <autodoc>SystemOptions.SetOption(String name, String value)</autodoc>
+ <autodoc>SetOption(String name, String value)</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
<param name="value" type="String" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="SetOptionInt" type="" overloaded="no">
- <autodoc>SystemOptions.SetOptionInt(String name, int value)</autodoc>
+ <autodoc>SetOptionInt(String name, int value)</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
<param name="value" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetOption" type="String" overloaded="no">
- <autodoc>SystemOptions.GetOption(String name) -> String</autodoc>
+ <autodoc>GetOption(String name) -> String</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetOptionInt" type="int" overloaded="no">
- <autodoc>SystemOptions.GetOptionInt(String name) -> int</autodoc>
+ <autodoc>GetOptionInt(String name) -> int</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="HasOption" type="bool" overloaded="no">
- <autodoc>SystemOptions.HasOption(String name) -> bool</autodoc>
+ <autodoc>HasOption(String name) -> bool</autodoc>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
<autodoc>GetWindow() -> Window</autodoc>
</method>
<staticmethod name="Enable" type="" overloaded="no">
- <autodoc>ToolTip.Enable(bool flag)</autodoc>
+ <autodoc>Enable(bool flag)</autodoc>
<paramlist>
<param name="flag" type="bool" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="SetDelay" type="" overloaded="no">
- <autodoc>ToolTip.SetDelay(long milliseconds)</autodoc>
+ <autodoc>SetDelay(long milliseconds)</autodoc>
<paramlist>
<param name="milliseconds" type="long" default=""/>
</paramlist>
<autodoc>__init__() -> Log</autodoc>
</constructor>
<staticmethod name="IsEnabled" type="bool" overloaded="no">
- <autodoc>Log.IsEnabled() -> bool</autodoc>
+ <autodoc>IsEnabled() -> bool</autodoc>
</staticmethod>
<staticmethod name="EnableLogging" type="bool" overloaded="no">
- <autodoc>Log.EnableLogging(bool doIt=True) -> bool</autodoc>
+ <autodoc>EnableLogging(bool doIt=True) -> bool</autodoc>
<paramlist>
<param name="doIt" type="bool" default="True"/>
</paramlist>
</staticmethod>
<staticmethod name="OnLog" type="" overloaded="no">
- <autodoc>Log.OnLog(wxLogLevel level, wxChar szString, time_t t)</autodoc>
+ <autodoc>OnLog(wxLogLevel level, wxChar szString, time_t t)</autodoc>
<paramlist>
<param name="level" type="wxLogLevel" default=""/>
<param name="szString" type="wxChar" default=""/>
<autodoc>Flush()</autodoc>
</method>
<staticmethod name="FlushActive" type="" overloaded="no">
- <autodoc>Log.FlushActive()</autodoc>
+ <autodoc>FlushActive()</autodoc>
</staticmethod>
<staticmethod name="GetActiveTarget" type="Log" overloaded="no">
- <autodoc>Log.GetActiveTarget() -> Log</autodoc>
+ <autodoc>GetActiveTarget() -> Log</autodoc>
</staticmethod>
<staticmethod name="SetActiveTarget" type="Log" overloaded="no">
- <autodoc>Log.SetActiveTarget(Log pLogger) -> Log</autodoc>
+ <autodoc>SetActiveTarget(Log pLogger) -> Log</autodoc>
<paramlist>
<param name="pLogger" type="Log" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Suspend" type="" overloaded="no">
- <autodoc>Log.Suspend()</autodoc>
+ <autodoc>Suspend()</autodoc>
</staticmethod>
<staticmethod name="Resume" type="" overloaded="no">
- <autodoc>Log.Resume()</autodoc>
+ <autodoc>Resume()</autodoc>
</staticmethod>
<staticmethod name="SetVerbose" type="" overloaded="no">
- <autodoc>Log.SetVerbose(bool bVerbose=True)</autodoc>
+ <autodoc>SetVerbose(bool bVerbose=True)</autodoc>
<paramlist>
<param name="bVerbose" type="bool" default="True"/>
</paramlist>
</staticmethod>
<staticmethod name="SetLogLevel" type="" overloaded="no">
- <autodoc>Log.SetLogLevel(wxLogLevel logLevel)</autodoc>
+ <autodoc>SetLogLevel(wxLogLevel logLevel)</autodoc>
<paramlist>
<param name="logLevel" type="wxLogLevel" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="DontCreateOnDemand" type="" overloaded="no">
- <autodoc>Log.DontCreateOnDemand()</autodoc>
+ <autodoc>DontCreateOnDemand()</autodoc>
</staticmethod>
<staticmethod name="SetTraceMask" type="" overloaded="no">
- <autodoc>Log.SetTraceMask(wxTraceMask ulMask)</autodoc>
+ <autodoc>SetTraceMask(wxTraceMask ulMask)</autodoc>
<paramlist>
<param name="ulMask" type="wxTraceMask" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="AddTraceMask" type="" overloaded="no">
- <autodoc>Log.AddTraceMask(String str)</autodoc>
+ <autodoc>AddTraceMask(String str)</autodoc>
<paramlist>
<param name="str" type="String" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="RemoveTraceMask" type="" overloaded="no">
- <autodoc>Log.RemoveTraceMask(String str)</autodoc>
+ <autodoc>RemoveTraceMask(String str)</autodoc>
<paramlist>
<param name="str" type="String" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="ClearTraceMasks" type="" overloaded="no">
- <autodoc>Log.ClearTraceMasks()</autodoc>
+ <autodoc>ClearTraceMasks()</autodoc>
</staticmethod>
<staticmethod name="GetTraceMasks" type="wxArrayString" overloaded="no">
- <autodoc>Log.GetTraceMasks() -> wxArrayString</autodoc>
+ <autodoc>GetTraceMasks() -> wxArrayString</autodoc>
</staticmethod>
<staticmethod name="SetTimestamp" type="" overloaded="no">
- <autodoc>Log.SetTimestamp(wxChar ts)</autodoc>
+ <autodoc>SetTimestamp(wxChar ts)</autodoc>
<paramlist>
<param name="ts" type="wxChar" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetVerbose" type="bool" overloaded="no">
- <autodoc>Log.GetVerbose() -> bool</autodoc>
+ <autodoc>GetVerbose() -> bool</autodoc>
</staticmethod>
<staticmethod name="GetTraceMask" type="wxTraceMask" overloaded="no">
- <autodoc>Log.GetTraceMask() -> wxTraceMask</autodoc>
+ <autodoc>GetTraceMask() -> wxTraceMask</autodoc>
</staticmethod>
<staticmethod name="IsAllowedTraceMask" type="bool" overloaded="no">
- <autodoc>Log.IsAllowedTraceMask(wxChar mask) -> bool</autodoc>
+ <autodoc>IsAllowedTraceMask(wxChar mask) -> bool</autodoc>
<paramlist>
<param name="mask" type="wxChar" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetLogLevel" type="wxLogLevel" overloaded="no">
- <autodoc>Log.GetLogLevel() -> wxLogLevel</autodoc>
+ <autodoc>GetLogLevel() -> wxLogLevel</autodoc>
</staticmethod>
<staticmethod name="GetTimestamp" type="wxChar" overloaded="no">
- <autodoc>Log.GetTimestamp() -> wxChar</autodoc>
+ <autodoc>GetTimestamp() -> wxChar</autodoc>
</staticmethod>
<staticmethod name="TimeStamp" type="String" overloaded="no">
- <autodoc>Log.TimeStamp() -> String</autodoc>
+ <autodoc>TimeStamp() -> String</autodoc>
</staticmethod>
<method name="Destroy" type="" overloaded="no">
<autodoc>Destroy()</autodoc>
</paramlist>
</constructor>
<staticmethod name="Kill" type="wxKillError" overloaded="no">
- <autodoc>Process.Kill(int pid, int sig=SIGTERM) -> int</autodoc>
+ <autodoc>Kill(int pid, int sig=SIGTERM) -> int</autodoc>
<paramlist>
<param name="pid" type="int" default=""/>
<param name="sig" type="wxSignal" default="wxSIGTERM"/>
</paramlist>
</staticmethod>
<staticmethod name="Exists" type="bool" overloaded="no">
- <autodoc>Process.Exists(int pid) -> bool</autodoc>
+ <autodoc>Exists(int pid) -> bool</autodoc>
<paramlist>
<param name="pid" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Open" type="Process" overloaded="no">
- <autodoc>Process.Open(String cmd, int flags=EXEC_ASYNC) -> Process</autodoc>
+ <autodoc>Open(String cmd, int flags=EXEC_ASYNC) -> Process</autodoc>
<paramlist>
<param name="cmd" type="String" default=""/>
<param name="flags" type="int" default="wxEXEC_ASYNC"/>
<pythoncode>
#---------------------------------------------------------------------------
</pythoncode>
- <class name="Wave" oldname="wxWave" module="misc">
- <constructor name="Wave" overloaded="no">
- <autodoc>__init__(String fileName, bool isResource=False) -> Wave</autodoc>
+ <class name="Sound" oldname="wxSound" module="misc">
+ <constructor name="Sound" overloaded="yes"/>
+ <constructor name="Sound" overloaded="yes">
<paramlist>
<param name="fileName" type="String" default=""/>
- <param name="isResource" type="bool" default="False"/>
+ <param name="isResource" type="bool" default="false"/>
</paramlist>
</constructor>
- <constructor name="WaveData" overloaded="no">
- <autodoc>WaveData(String data) -> Wave</autodoc>
+ <constructor name="Sound" overloaded="yes">
+ <autodoc>__init__() -> Sound
+__init__(String fileName, bool isResource=false) -> Sound
+__init__(int size, wxByte data) -> Sound</autodoc>
<paramlist>
- <param name="data" type="String" default=""/>
+ <param name="size" type="int" default=""/>
+ <param name="data" type="wxByte" default=""/>
</paramlist>
</constructor>
- <destructor name="~wxWave" overloaded="no">
+ <destructor name="~wxSound" overloaded="no">
<autodoc>__del__()</autodoc>
</destructor>
+ <method name="Create" type="bool" overloaded="yes">
+ <paramlist>
+ <param name="fileName" type="String" default=""/>
+ <param name="isResource" type="bool" default="false"/>
+ </paramlist>
+ </method>
+ <method name="Create" type="bool" overloaded="yes">
+ <autodoc>Create(String fileName, bool isResource=false) -> bool
+Create(int size, wxByte data) -> bool</autodoc>
+ <paramlist>
+ <param name="size" type="int" default=""/>
+ <param name="data" type="wxByte" default=""/>
+ </paramlist>
+ </method>
<method name="IsOk" type="bool" overloaded="no">
<autodoc>IsOk() -> bool</autodoc>
</method>
<method name="Play" type="bool" overloaded="no">
- <autodoc>Play(bool async=True, bool looped=False) -> bool</autodoc>
+ <autodoc>Play(unsigned int flags=SOUND_ASYNC) -> bool</autodoc>
<paramlist>
- <param name="async" type="bool" default="True"/>
- <param name="looped" type="bool" default="False"/>
+ <param name="flags" type="unsigned int" default="wxSOUND_ASYNC"/>
</paramlist>
</method>
+ <staticmethod name="PlaySound" type="bool" overloaded="no">
+ <autodoc>PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool</autodoc>
+ <paramlist>
+ <param name="filename" type="String" default=""/>
+ <param name="flags" type="unsigned int" default="wxSOUND_ASYNC"/>
+ </paramlist>
+ </staticmethod>
+ <staticmethod name="Stop" type="" overloaded="no">
+ <autodoc>Stop()</autodoc>
+ </staticmethod>
</class>
<pythoncode>
#---------------------------------------------------------------------------
<autodoc>Unassociate() -> bool</autodoc>
</method>
<staticmethod name="ExpandCommand" type="String" overloaded="no">
- <autodoc>FileType.ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String</autodoc>
+ <autodoc>ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String</autodoc>
<paramlist>
<param name="command" type="String" default=""/>
<param name="filename" type="String" default=""/>
<autodoc>__del__()</autodoc>
</destructor>
<staticmethod name="IsOfType" type="bool" overloaded="no">
- <autodoc>MimeTypesManager.IsOfType(String mimeType, String wildcard) -> bool</autodoc>
+ <autodoc>IsOfType(String mimeType, String wildcard) -> bool</autodoc>
<paramlist>
<param name="mimeType" type="String" default=""/>
<param name="wildcard" type="String" default=""/>
</paramlist>
</method>
<staticmethod name="PushProvider" type="" overloaded="no">
- <autodoc>ArtProvider.PushProvider(ArtProvider provider)</autodoc>
+ <autodoc>PushProvider(ArtProvider provider)</autodoc>
<docstring>Add new provider to the top of providers stack.</docstring>
<paramlist>
<param name="provider" type="ArtProvider" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="PopProvider" type="bool" overloaded="no">
- <autodoc>ArtProvider.PopProvider() -> bool</autodoc>
+ <autodoc>PopProvider() -> bool</autodoc>
<docstring>Remove latest added provider and delete it.</docstring>
</staticmethod>
<staticmethod name="RemoveProvider" type="bool" overloaded="no">
- <autodoc>ArtProvider.RemoveProvider(ArtProvider provider) -> bool</autodoc>
+ <autodoc>RemoveProvider(ArtProvider provider) -> bool</autodoc>
<docstring>Remove provider. The provider must have been added previously!
The provider is _not_ deleted.</docstring>
<paramlist>
</paramlist>
</staticmethod>
<staticmethod name="GetBitmap" type="Bitmap" overloaded="no">
- <autodoc>ArtProvider.GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap</autodoc>
+ <autodoc>GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap</autodoc>
<docstring>Query the providers for bitmap with given ID and return it. Return
wx.NullBitmap if no provider provides it.</docstring>
<paramlist>
</paramlist>
</staticmethod>
<staticmethod name="GetIcon" type="Icon" overloaded="no">
- <autodoc>ArtProvider.GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon</autodoc>
+ <autodoc>GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon</autodoc>
<docstring>Query the providers for icon with given ID and return it. Return
wx.NullIcon if no provider provides it.</docstring>
<paramlist>
#---------------------------------------------------------------------------
</pythoncode>
<class name="ConfigBase" oldname="wxConfigBase" module="misc">
+ <docstring>wx.ConfigBase class defines the basic interface of all config
+classes. It can not be used by itself (it is an abstract base
+class) and you will always use one of its derivations: wx.Config
+or wx.FileConfig.
+
+wx.ConfigBase organizes the items in a tree-like structure
+(modeled after the Unix/Dos filesystem). There are groups
+(directories) and keys (files). There is always one current
+group given by the current path. As in the file system case, to
+specify a key in the config class you must use a path to it.
+Config classes also support the notion of the current group,
+which makes it possible to use relative paths.
+
+Keys are pairs "key_name = value" where value may be of string, integer
+floating point or boolean, you can not store binary data without first
+encoding it as a string. For performance reasons items should be kept small,
+no more than a couple kilobytes.
+</docstring>
<destructor name="~wxConfigBase" overloaded="no">
<autodoc>__del__()</autodoc>
</destructor>
<staticmethod name="Set" type="ConfigBase" overloaded="no">
- <autodoc>ConfigBase.Set(ConfigBase pConfig) -> ConfigBase</autodoc>
+ <autodoc>Set(ConfigBase config) -> ConfigBase</autodoc>
+ <docstring>Sets the global config object (the one returned by Get) and
+returns a reference to the previous global config object.</docstring>
<paramlist>
- <param name="pConfig" type="ConfigBase" default=""/>
+ <param name="config" type="ConfigBase" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Get" type="ConfigBase" overloaded="no">
- <autodoc>ConfigBase.Get(bool createOnDemand=True) -> ConfigBase</autodoc>
+ <autodoc>Get(bool createOnDemand=True) -> ConfigBase</autodoc>
+ <docstring>Returns the current global config object, creating one if neccessary.</docstring>
<paramlist>
<param name="createOnDemand" type="bool" default="True"/>
</paramlist>
</staticmethod>
<staticmethod name="Create" type="ConfigBase" overloaded="no">
- <autodoc>ConfigBase.Create() -> ConfigBase</autodoc>
+ <autodoc>Create() -> ConfigBase</autodoc>
+ <docstring>Create and return a new global config object. This function will
+create the "best" implementation of wx.Config available for the
+current platform.</docstring>
</staticmethod>
<staticmethod name="DontCreateOnDemand" type="" overloaded="no">
- <autodoc>ConfigBase.DontCreateOnDemand()</autodoc>
+ <autodoc>DontCreateOnDemand()</autodoc>
+ <docstring>Should Get() try to create a new log object if there isn't a current one?</docstring>
</staticmethod>
<method name="SetPath" type="" overloaded="no">
- <autodoc>SetPath(String strPath)</autodoc>
+ <autodoc>SetPath(String path)</autodoc>
+ <docstring>Set current path: if the first character is '/', it's the absolute path,
+otherwise it's a relative path. '..' is supported. If the strPath
+doesn't exist it is created.</docstring>
<paramlist>
- <param name="strPath" type="String" default=""/>
+ <param name="path" type="String" default=""/>
</paramlist>
</method>
<method name="GetPath" type="String" overloaded="no">
<autodoc>GetPath() -> String</autodoc>
+ <docstring>Retrieve the current path (always as absolute path)</docstring>
</method>
<method name="GetFirstGroup" type="PyObject" overloaded="no">
- <autodoc>GetFirstGroup() -> PyObject</autodoc>
+ <autodoc>GetFirstGroup() -> (more, value, index)</autodoc>
+ <docstring>Allows enumerating the subgroups in a config object. Returns
+a tuple containing a flag indicating there are more items, the
+name of the current item, and an index to pass to GetNextGroup to
+fetch the next item.</docstring>
</method>
<method name="GetNextGroup" type="PyObject" overloaded="no">
- <autodoc>GetNextGroup(long index) -> PyObject</autodoc>
+ <autodoc>GetNextGroup(long index) -> (more, value, index)</autodoc>
+ <docstring>Allows enumerating the subgroups in a config object. Returns
+a tuple containing a flag indicating there are more items, the
+name of the current item, and an index to pass to GetNextGroup to
+fetch the next item.</docstring>
<paramlist>
<param name="index" type="long" default=""/>
</paramlist>
</method>
<method name="GetFirstEntry" type="PyObject" overloaded="no">
- <autodoc>GetFirstEntry() -> PyObject</autodoc>
+ <autodoc>GetFirstEntry() -> (more, value, index)</autodoc>
+ <docstring>Allows enumerating the entries in the current group in a config
+object. Returns a tuple containing a flag indicating there are
+more items, the name of the current item, and an index to pass to
+GetNextGroup to fetch the next item.</docstring>
</method>
<method name="GetNextEntry" type="PyObject" overloaded="no">
- <autodoc>GetNextEntry(long index) -> PyObject</autodoc>
+ <autodoc>GetNextEntry(long index) -> (more, value, index)</autodoc>
+ <docstring>Allows enumerating the entries in the current group in a config
+object. Returns a tuple containing a flag indicating there are
+more items, the name of the current item, and an index to pass to
+GetNextGroup to fetch the next item.</docstring>
<paramlist>
<param name="index" type="long" default=""/>
</paramlist>
</method>
<method name="GetNumberOfEntries" type="size_t" overloaded="no">
- <autodoc>GetNumberOfEntries(bool bRecursive=False) -> size_t</autodoc>
+ <autodoc>GetNumberOfEntries(bool recursive=False) -> size_t</autodoc>
+ <docstring>Get the number of entries in the current group, with or
+without its subgroups.</docstring>
<paramlist>
- <param name="bRecursive" type="bool" default="False"/>
+ <param name="recursive" type="bool" default="False"/>
</paramlist>
</method>
<method name="GetNumberOfGroups" type="size_t" overloaded="no">
- <autodoc>GetNumberOfGroups(bool bRecursive=False) -> size_t</autodoc>
+ <autodoc>GetNumberOfGroups(bool recursive=False) -> size_t</autodoc>
+ <docstring>Get the number of subgroups in the current group, with or
+without its subgroups.</docstring>
<paramlist>
- <param name="bRecursive" type="bool" default="False"/>
+ <param name="recursive" type="bool" default="False"/>
</paramlist>
</method>
<method name="HasGroup" type="bool" overloaded="no">
- <autodoc>HasGroup(String strName) -> bool</autodoc>
+ <autodoc>HasGroup(String name) -> bool</autodoc>
+ <docstring>Returns True if the group by this name exists</docstring>
<paramlist>
- <param name="strName" type="String" default=""/>
+ <param name="name" type="String" default=""/>
</paramlist>
</method>
<method name="HasEntry" type="bool" overloaded="no">
- <autodoc>HasEntry(String strName) -> bool</autodoc>
+ <autodoc>HasEntry(String name) -> bool</autodoc>
+ <docstring>Returns True if the entry by this name exists</docstring>
<paramlist>
- <param name="strName" type="String" default=""/>
+ <param name="name" type="String" default=""/>
</paramlist>
</method>
<method name="Exists" type="bool" overloaded="no">
- <autodoc>Exists(String strName) -> bool</autodoc>
+ <autodoc>Exists(String name) -> bool</autodoc>
+ <docstring>Returns True if either a group or an entry with a given name exists</docstring>
<paramlist>
- <param name="strName" type="String" default=""/>
+ <param name="name" type="String" default=""/>
</paramlist>
</method>
<method name="GetEntryType" type="wxConfigBase::EntryType" overloaded="no">
<autodoc>GetEntryType(String name) -> int</autodoc>
+ <docstring>Get the type of the entry. Returns one of the wx.Config.Type_XXX values.</docstring>
<paramlist>
<param name="name" type="String" default=""/>
</paramlist>
</method>
<method name="Read" type="String" overloaded="no">
<autodoc>Read(String key, String defaultVal=EmptyString) -> String</autodoc>
+ <docstring>Returns the value of key if it exists, defaultVal otherwise.</docstring>
<paramlist>
<param name="key" type="String" default=""/>
<param name="defaultVal" type="String" default="wxPyEmptyString"/>
</method>
<method name="ReadInt" type="long" overloaded="no">
<autodoc>ReadInt(String key, long defaultVal=0) -> long</autodoc>
+ <docstring>Returns the value of key if it exists, defaultVal otherwise.</docstring>
<paramlist>
<param name="key" type="String" default=""/>
<param name="defaultVal" type="long" default="0"/>
</method>
<method name="ReadFloat" type="double" overloaded="no">
<autodoc>ReadFloat(String key, double defaultVal=0.0) -> double</autodoc>
+ <docstring>Returns the value of key if it exists, defaultVal otherwise.</docstring>
<paramlist>
<param name="key" type="String" default=""/>
<param name="defaultVal" type="double" default="0.0"/>
</method>
<method name="ReadBool" type="bool" overloaded="no">
<autodoc>ReadBool(String key, bool defaultVal=False) -> bool</autodoc>
+ <docstring>Returns the value of key if it exists, defaultVal otherwise.</docstring>
<paramlist>
<param name="key" type="String" default=""/>
<param name="defaultVal" type="bool" default="False"/>
</method>
<method name="Write" type="bool" overloaded="no">
<autodoc>Write(String key, String value) -> bool</autodoc>
+ <docstring>write the value (return True on success)</docstring>
<paramlist>
<param name="key" type="String" default=""/>
<param name="value" type="String" default=""/>
</method>
<method name="WriteInt" type="bool" overloaded="no">
<autodoc>WriteInt(String key, long value) -> bool</autodoc>
+ <docstring>write the value (return True on success)</docstring>
<paramlist>
<param name="key" type="String" default=""/>
<param name="value" type="long" default=""/>
</method>
<method name="WriteFloat" type="bool" overloaded="no">
<autodoc>WriteFloat(String key, double value) -> bool</autodoc>
+ <docstring>write the value (return True on success)</docstring>
<paramlist>
<param name="key" type="String" default=""/>
<param name="value" type="double" default=""/>
</method>
<method name="WriteBool" type="bool" overloaded="no">
<autodoc>WriteBool(String key, bool value) -> bool</autodoc>
+ <docstring>write the value (return True on success)</docstring>
<paramlist>
<param name="key" type="String" default=""/>
<param name="value" type="bool" default=""/>
</paramlist>
</method>
<method name="Flush" type="bool" overloaded="no">
- <autodoc>Flush(bool bCurrentOnly=False) -> bool</autodoc>
+ <autodoc>Flush(bool currentOnly=False) -> bool</autodoc>
+ <docstring>permanently writes all changes</docstring>
<paramlist>
- <param name="bCurrentOnly" type="bool" default="False"/>
+ <param name="currentOnly" type="bool" default="False"/>
</paramlist>
</method>
<method name="RenameEntry" type="bool" overloaded="no">
<autodoc>RenameEntry(String oldName, String newName) -> bool</autodoc>
+ <docstring>Rename an entry. Returns False on failure (probably because the new
+name is already taken by an existing entry)</docstring>
<paramlist>
<param name="oldName" type="String" default=""/>
<param name="newName" type="String" default=""/>
</method>
<method name="RenameGroup" type="bool" overloaded="no">
<autodoc>RenameGroup(String oldName, String newName) -> bool</autodoc>
+ <docstring>Rename aa group. Returns False on failure (probably because the new
+name is already taken by an existing entry)</docstring>
<paramlist>
<param name="oldName" type="String" default=""/>
<param name="newName" type="String" default=""/>
</paramlist>
</method>
<method name="DeleteEntry" type="bool" overloaded="no">
- <autodoc>DeleteEntry(String key, bool bDeleteGroupIfEmpty=True) -> bool</autodoc>
+ <autodoc>DeleteEntry(String key, bool deleteGroupIfEmpty=True) -> bool</autodoc>
+ <docstring>Deletes the specified entry and the group it belongs to if
+it was the last key in it and the second parameter is True</docstring>
<paramlist>
<param name="key" type="String" default=""/>
- <param name="bDeleteGroupIfEmpty" type="bool" default="True"/>
+ <param name="deleteGroupIfEmpty" type="bool" default="True"/>
</paramlist>
</method>
<method name="DeleteGroup" type="bool" overloaded="no">
<autodoc>DeleteGroup(String key) -> bool</autodoc>
+ <docstring>Delete the group (with all subgroups)</docstring>
<paramlist>
<param name="key" type="String" default=""/>
</paramlist>
</method>
<method name="DeleteAll" type="bool" overloaded="no">
<autodoc>DeleteAll() -> bool</autodoc>
- </method>
- <method name="IsExpandingEnvVars" type="bool" overloaded="no">
- <autodoc>IsExpandingEnvVars() -> bool</autodoc>
+ <docstring>Delete the whole underlying object (disk file, registry key, ...)
+primarly intended for use by desinstallation routine.</docstring>
</method>
<method name="SetExpandEnvVars" type="" overloaded="no">
- <autodoc>SetExpandEnvVars(bool bDoIt=True)</autodoc>
+ <autodoc>SetExpandEnvVars(bool doIt=True)</autodoc>
+ <docstring>We can automatically expand environment variables in the config entries
+(this option is on by default, you can turn it on/off at any time)</docstring>
<paramlist>
- <param name="bDoIt" type="bool" default="True"/>
+ <param name="doIt" type="bool" default="True"/>
</paramlist>
</method>
+ <method name="IsExpandingEnvVars" type="bool" overloaded="no">
+ <autodoc>IsExpandingEnvVars() -> bool</autodoc>
+ <docstring>Are we currently expanding environment variables?</docstring>
+ </method>
<method name="SetRecordDefaults" type="" overloaded="no">
- <autodoc>SetRecordDefaults(bool bDoIt=True)</autodoc>
+ <autodoc>SetRecordDefaults(bool doIt=True)</autodoc>
+ <docstring>Set whether the config objec should record default values.</docstring>
<paramlist>
- <param name="bDoIt" type="bool" default="True"/>
+ <param name="doIt" type="bool" default="True"/>
</paramlist>
</method>
<method name="IsRecordingDefaults" type="bool" overloaded="no">
<autodoc>IsRecordingDefaults() -> bool</autodoc>
+ <docstring>Are we currently recording default values?</docstring>
</method>
<method name="ExpandEnvVars" type="String" overloaded="no">
<autodoc>ExpandEnvVars(String str) -> String</autodoc>
+ <docstring>Expand any environment variables in str and return the result</docstring>
<paramlist>
<param name="str" type="String" default=""/>
</paramlist>
<autodoc>GetStyle() -> long</autodoc>
</method>
</class>
- <class name="ConfigPathChanger" oldname="wxConfigPathChanger" module="misc">
- <constructor name="ConfigPathChanger" overloaded="no">
- <autodoc>__init__(ConfigBase pContainer, String strEntry) -> ConfigPathChanger</autodoc>
- <paramlist>
- <param name="pContainer" type="ConfigBase" default=""/>
- <param name="strEntry" type="String" default=""/>
- </paramlist>
- </constructor>
- <destructor name="~wxConfigPathChanger" overloaded="no">
- <autodoc>__del__()</autodoc>
- </destructor>
- <method name="Name" type="String" overloaded="no">
- <autodoc>Name() -> String</autodoc>
- </method>
- </class>
<class name="Config" oldname="wxConfig" module="misc">
+ <docstring>This ConfigBase-derived class will use the registry on Windows,
+and will be a wx.FileConfig on other platforms.</docstring>
<baseclass name="ConfigBase"/>
<constructor name="Config" overloaded="no">
<autodoc>__init__(String appName=EmptyString, String vendorName=EmptyString,
</destructor>
</class>
<class name="FileConfig" oldname="wxFileConfig" module="misc">
+ <docstring>This config class will use a file for storage on all platforms.</docstring>
<baseclass name="ConfigBase"/>
<constructor name="FileConfig" overloaded="no">
<autodoc>__init__(String appName=EmptyString, String vendorName=EmptyString,
<autodoc>__del__()</autodoc>
</destructor>
</class>
+ <class name="ConfigPathChanger" oldname="wxConfigPathChanger" module="misc">
+ <docstring>A handy little class which changes current path to the path of
+given entry and restores it in the destructoir: so if you declare
+a local variable of this type, you work in the entry directory
+and the path is automatically restored when the function returns.</docstring>
+ <constructor name="ConfigPathChanger" overloaded="no">
+ <autodoc>__init__(ConfigBase config, String entry) -> ConfigPathChanger</autodoc>
+ <paramlist>
+ <param name="config" type="ConfigBase" default=""/>
+ <param name="entry" type="String" default=""/>
+ </paramlist>
+ </constructor>
+ <destructor name="~wxConfigPathChanger" overloaded="no">
+ <autodoc>__del__()</autodoc>
+ </destructor>
+ <method name="Name" type="String" overloaded="no">
+ <autodoc>Name() -> String</autodoc>
+ <docstring>Get the key name</docstring>
+ </method>
+ </class>
<method name="ExpandEnvVars" oldname="wxExpandEnvVars" type="String" overloaded="no">
<autodoc>ExpandEnvVars(String sz) -> String</autodoc>
+ <docstring>Replace environment variables ($SOMETHING) with their values. The
+format is $VARNAME or ${VARNAME} where VARNAME contains
+alphanumeric characters and '_' only. '$' must be escaped ('\\$')
+in order to be taken literally.</docstring>
<paramlist>
<param name="sz" type="String" default=""/>
</paramlist>
<autodoc>__del__()</autodoc>
</destructor>
<staticmethod name="SetCountry" type="" overloaded="no">
- <autodoc>DateTime.SetCountry(int country)</autodoc>
+ <autodoc>SetCountry(int country)</autodoc>
<paramlist>
<param name="country" type="wxDateTime::Country" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetCountry" type="wxDateTime::Country" overloaded="no">
- <autodoc>DateTime.GetCountry() -> int</autodoc>
+ <autodoc>GetCountry() -> int</autodoc>
</staticmethod>
<staticmethod name="IsWestEuropeanCountry" type="bool" overloaded="no">
- <autodoc>DateTime.IsWestEuropeanCountry(int country=Country_Default) -> bool</autodoc>
+ <autodoc>IsWestEuropeanCountry(int country=Country_Default) -> bool</autodoc>
<paramlist>
<param name="country" type="wxDateTime::Country" default="wxDateTime::Country_Default"/>
</paramlist>
</staticmethod>
<staticmethod name="GetCurrentYear" type="int" overloaded="no">
- <autodoc>DateTime.GetCurrentYear(int cal=Gregorian) -> int</autodoc>
+ <autodoc>GetCurrentYear(int cal=Gregorian) -> int</autodoc>
<paramlist>
<param name="cal" type="wxDateTime::Calendar" default="wxDateTime::Gregorian"/>
</paramlist>
</staticmethod>
<staticmethod name="ConvertYearToBC" type="int" overloaded="no">
- <autodoc>DateTime.ConvertYearToBC(int year) -> int</autodoc>
+ <autodoc>ConvertYearToBC(int year) -> int</autodoc>
<paramlist>
<param name="year" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="GetCurrentMonth" type="wxDateTime::Month" overloaded="no">
- <autodoc>DateTime.GetCurrentMonth(int cal=Gregorian) -> int</autodoc>
+ <autodoc>GetCurrentMonth(int cal=Gregorian) -> int</autodoc>
<paramlist>
<param name="cal" type="wxDateTime::Calendar" default="wxDateTime::Gregorian"/>
</paramlist>
</staticmethod>
<staticmethod name="IsLeapYear" type="bool" overloaded="no">
- <autodoc>DateTime.IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool</autodoc>
+ <autodoc>IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool</autodoc>
<paramlist>
<param name="year" type="int" default="wxDateTime::Inv_Year"/>
<param name="cal" type="wxDateTime::Calendar" default="wxDateTime::Gregorian"/>
</paramlist>
</staticmethod>
<staticmethod name="GetCentury" type="int" overloaded="no">
- <autodoc>DateTime.GetCentury(int year=Inv_Year) -> int</autodoc>
+ <autodoc>GetCentury(int year=Inv_Year) -> int</autodoc>
<paramlist>
<param name="year" type="int" default="wxDateTime::Inv_Year"/>
</paramlist>
</staticmethod>
<staticmethod name="GetNumberOfDaysinYear" type="int" overloaded="no">
- <autodoc>DateTime.GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int</autodoc>
+ <autodoc>GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int</autodoc>
<paramlist>
<param name="year" type="int" default=""/>
<param name="cal" type="wxDateTime::Calendar" default="wxDateTime::Gregorian"/>
</paramlist>
</staticmethod>
<staticmethod name="GetNumberOfDaysInMonth" type="int" overloaded="no">
- <autodoc>DateTime.GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int</autodoc>
+ <autodoc>GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int</autodoc>
<paramlist>
<param name="month" type="wxDateTime::Month" default=""/>
<param name="year" type="int" default="wxDateTime::Inv_Year"/>
</paramlist>
</staticmethod>
<staticmethod name="GetMonthName" type="String" overloaded="no">
- <autodoc>DateTime.GetMonthName(int month, int flags=Name_Full) -> String</autodoc>
+ <autodoc>GetMonthName(int month, int flags=Name_Full) -> String</autodoc>
<paramlist>
<param name="month" type="wxDateTime::Month" default=""/>
<param name="flags" type="wxDateTime::NameFlags" default="wxDateTime::Name_Full"/>
</paramlist>
</staticmethod>
<staticmethod name="GetWeekDayName" type="String" overloaded="no">
- <autodoc>DateTime.GetWeekDayName(int weekday, int flags=Name_Full) -> String</autodoc>
+ <autodoc>GetWeekDayName(int weekday, int flags=Name_Full) -> String</autodoc>
<paramlist>
<param name="weekday" type="wxDateTime::WeekDay" default=""/>
<param name="flags" type="wxDateTime::NameFlags" default="wxDateTime::Name_Full"/>
</paramlist>
</staticmethod>
<staticmethod name="IsDSTApplicable" type="bool" overloaded="no">
- <autodoc>DateTime.IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool</autodoc>
+ <autodoc>IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool</autodoc>
<paramlist>
<param name="year" type="int" default="wxDateTime::Inv_Year"/>
<param name="country" type="wxDateTime::Country" default="wxDateTime::Country_Default"/>
</paramlist>
</staticmethod>
<staticmethod name="GetBeginDST" type="DateTime" overloaded="no">
- <autodoc>DateTime.GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime</autodoc>
+ <autodoc>GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime</autodoc>
<paramlist>
<param name="year" type="int" default="wxDateTime::Inv_Year"/>
<param name="country" type="wxDateTime::Country" default="wxDateTime::Country_Default"/>
</paramlist>
</staticmethod>
<staticmethod name="GetEndDST" type="DateTime" overloaded="no">
- <autodoc>DateTime.GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime</autodoc>
+ <autodoc>GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime</autodoc>
<paramlist>
<param name="year" type="int" default="wxDateTime::Inv_Year"/>
<param name="country" type="wxDateTime::Country" default="wxDateTime::Country_Default"/>
</paramlist>
</staticmethod>
<staticmethod name="Now" type="DateTime" overloaded="no">
- <autodoc>DateTime.Now() -> DateTime</autodoc>
+ <autodoc>Now() -> DateTime</autodoc>
</staticmethod>
<staticmethod name="UNow" type="DateTime" overloaded="no">
- <autodoc>DateTime.UNow() -> DateTime</autodoc>
+ <autodoc>UNow() -> DateTime</autodoc>
</staticmethod>
<staticmethod name="Today" type="DateTime" overloaded="no">
- <autodoc>DateTime.Today() -> DateTime</autodoc>
+ <autodoc>Today() -> DateTime</autodoc>
</staticmethod>
<method name="SetToCurrent" type="DateTime" overloaded="no">
<autodoc>SetToCurrent() -> DateTime</autodoc>
</paramlist>
</method>
<method name="ParseFormat" type="int" overloaded="no">
- <autodoc>ParseFormat(String date, String format=DateFormatStr, DateTime dateDef=wxDefaultDateTime) -> int</autodoc>
+ <autodoc>ParseFormat(String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int</autodoc>
<paramlist>
<param name="date" type="String" default=""/>
<param name="format" type="String" default="wxPyDateFormatStr"/>
<autodoc>__del__()</autodoc>
</destructor>
<staticmethod name="Seconds" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Seconds(long sec) -> TimeSpan</autodoc>
+ <autodoc>Seconds(long sec) -> TimeSpan</autodoc>
<paramlist>
<param name="sec" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Second" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Second() -> TimeSpan</autodoc>
+ <autodoc>Second() -> TimeSpan</autodoc>
</staticmethod>
<staticmethod name="Minutes" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Minutes(long min) -> TimeSpan</autodoc>
+ <autodoc>Minutes(long min) -> TimeSpan</autodoc>
<paramlist>
<param name="min" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Minute" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Minute() -> TimeSpan</autodoc>
+ <autodoc>Minute() -> TimeSpan</autodoc>
</staticmethod>
<staticmethod name="Hours" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Hours(long hours) -> TimeSpan</autodoc>
+ <autodoc>Hours(long hours) -> TimeSpan</autodoc>
<paramlist>
<param name="hours" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Hour" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Hour() -> TimeSpan</autodoc>
+ <autodoc>Hour() -> TimeSpan</autodoc>
</staticmethod>
<staticmethod name="Days" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Days(long days) -> TimeSpan</autodoc>
+ <autodoc>Days(long days) -> TimeSpan</autodoc>
<paramlist>
<param name="days" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Day" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Day() -> TimeSpan</autodoc>
+ <autodoc>Day() -> TimeSpan</autodoc>
</staticmethod>
<staticmethod name="Weeks" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Weeks(long days) -> TimeSpan</autodoc>
+ <autodoc>Weeks(long days) -> TimeSpan</autodoc>
<paramlist>
<param name="days" type="long" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Week" type="TimeSpan" overloaded="no">
- <autodoc>TimeSpan.Week() -> TimeSpan</autodoc>
+ <autodoc>Week() -> TimeSpan</autodoc>
</staticmethod>
<method name="Add" type="TimeSpan" overloaded="no">
<autodoc>Add(TimeSpan diff) -> TimeSpan</autodoc>
<autodoc>__del__()</autodoc>
</destructor>
<staticmethod name="Days" type="DateSpan" overloaded="no">
- <autodoc>DateSpan.Days(int days) -> DateSpan</autodoc>
+ <autodoc>Days(int days) -> DateSpan</autodoc>
<paramlist>
<param name="days" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Day" type="DateSpan" overloaded="no">
- <autodoc>DateSpan.Day() -> DateSpan</autodoc>
+ <autodoc>Day() -> DateSpan</autodoc>
</staticmethod>
<staticmethod name="Weeks" type="DateSpan" overloaded="no">
- <autodoc>DateSpan.Weeks(int weeks) -> DateSpan</autodoc>
+ <autodoc>Weeks(int weeks) -> DateSpan</autodoc>
<paramlist>
<param name="weeks" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Week" type="DateSpan" overloaded="no">
- <autodoc>DateSpan.Week() -> DateSpan</autodoc>
+ <autodoc>Week() -> DateSpan</autodoc>
</staticmethod>
<staticmethod name="Months" type="DateSpan" overloaded="no">
- <autodoc>DateSpan.Months(int mon) -> DateSpan</autodoc>
+ <autodoc>Months(int mon) -> DateSpan</autodoc>
<paramlist>
<param name="mon" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Month" type="DateSpan" overloaded="no">
- <autodoc>DateSpan.Month() -> DateSpan</autodoc>
+ <autodoc>Month() -> DateSpan</autodoc>
</staticmethod>
<staticmethod name="Years" type="DateSpan" overloaded="no">
- <autodoc>DateSpan.Years(int years) -> DateSpan</autodoc>
+ <autodoc>Years(int years) -> DateSpan</autodoc>
<paramlist>
<param name="years" type="int" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="Year" type="DateSpan" overloaded="no">
- <autodoc>DateSpan.Year() -> DateSpan</autodoc>
+ <autodoc>Year() -> DateSpan</autodoc>
</staticmethod>
<method name="SetYears" type="DateSpan" overloaded="no">
<autodoc>SetYears(int n) -> DateSpan</autodoc>
#---------------------------------------------------------------------------
</pythoncode>
<class name="DataFormat" oldname="wxDataFormat" module="misc">
+ <docstring>A wx.DataFormat is an encapsulation of a platform-specific format
+handle which is used by the system for the clipboard and drag and
+drop operations. The applications are usually only interested in,
+for example, pasting data from the clipboard only if the data is
+in a format the program understands. A data format is is used to
+uniquely identify this format.
+
+On the system level, a data format is usually just a number
+(CLIPFORMAT under Windows or Atom under X11, for example).</docstring>
<constructor name="DataFormat" overloaded="no">
<autodoc>__init__(int type) -> DataFormat</autodoc>
+ <docstring>Constructs a data format object for one of the standard data
+formats or an empty data object (use SetType or SetId later in
+this case)</docstring>
<paramlist>
<param name="type" type="wxDataFormatId" default=""/>
</paramlist>
</constructor>
<constructor name="CustomDataFormat" overloaded="no">
<autodoc>CustomDataFormat(String format) -> DataFormat</autodoc>
+ <docstring>Constructs a data format object for a custom format identified by its name.</docstring>
<paramlist>
<param name="format" type="String" default=""/>
</paramlist>
</method>
<method name="SetType" type="" overloaded="no">
<autodoc>SetType(int format)</autodoc>
+ <docstring>Sets the format to the given value, which should be one of wx.DF_XXX constants.</docstring>
<paramlist>
<param name="format" type="wxDataFormatId" default=""/>
</paramlist>
</method>
<method name="GetType" type="wxDataFormatId" overloaded="no">
<autodoc>GetType() -> int</autodoc>
+ <docstring>Returns the platform-specific number identifying the format.</docstring>
</method>
<method name="GetId" type="String" overloaded="no">
<autodoc>GetId() -> String</autodoc>
+ <docstring>Returns the name of a custom format (this function will fail for a standard format).</docstring>
</method>
<method name="SetId" type="" overloaded="no">
<autodoc>SetId(String format)</autodoc>
+ <docstring>Sets the format to be the custom format identified by the given name.</docstring>
<paramlist>
<param name="format" type="String" default=""/>
</paramlist>
<method name="GetFilenames" type="wxArrayString" overloaded="no">
<autodoc>GetFilenames() -> wxArrayString</autodoc>
</method>
+ <method name="AddFile" type="" overloaded="no">
+ <autodoc>AddFile(String filename)</autodoc>
+ <paramlist>
+ <param name="filename" type="String" default=""/>
+ </paramlist>
+ </method>
</class>
<class name="CustomDataObject" oldname="wxCustomDataObject" module="misc">
<baseclass name="DataObjectSimple"/>
</method>
<class name="DropSource" oldname="wxPyDropSource" module="misc">
<constructor name="wxPyDropSource" overloaded="no">
- <autodoc>__init__(Window win=None, Icon copy=wxNullIcon, Icon move=wxNullIcon,
+ <autodoc>__init__(Window win, Icon copy=wxNullIcon, Icon move=wxNullIcon,
Icon none=wxNullIcon) -> DropSource</autodoc>
<paramlist>
- <param name="win" type="Window" default="NULL"/>
+ <param name="win" type="Window" default=""/>
<param name="copy" type="Icon" default="wxNullIcon"/>
<param name="move" type="Icon" default="wxNullIcon"/>
<param name="none" type="Icon" default="wxNullIcon"/>
</method>
</class>
<class name="DropTarget" oldname="wxPyDropTarget" module="misc">
- <constructor name="PyDropTarget" overloaded="no">
- <autodoc>PyDropTarget(DataObject dataObject=None) -> DropTarget</autodoc>
+ <constructor name="DropTarget" overloaded="no">
+ <autodoc>__init__(DataObject dataObject=None) -> DropTarget</autodoc>
<paramlist>
<param name="dataObject" type="DataObject" default="NULL"/>
</paramlist>
#---------------------------------------------------------------------------
</pythoncode>
<class name="Clipboard" oldname="wxClipboard" module="misc">
+ <docstring>wx.Clipboard represents the system clipboard and provides methods to copy data
+to or paste data from it. Normally, you should only use wx.TheClipboard which
+is a reference to a global wx.Clipboard instance.
+
+Call wx.TheClipboard.Open to get ownership of the clipboard. If this operation
+returns True, you now own the clipboard. Call wx.TheClipboard.SetData to put
+data on the clipboard, or wx.TheClipboard.GetData to retrieve data from the
+clipboard. Call wx.TheClipboard.Close to close the clipboard and relinquish
+ownership. You should keep the clipboard open only momentarily.
+</docstring>
<baseclass name="Object"/>
<constructor name="Clipboard" overloaded="no">
<autodoc>__init__() -> Clipboard</autodoc>
</destructor>
<method name="Open" type="bool" overloaded="no">
<autodoc>Open() -> bool</autodoc>
+ <docstring>Call this function to open the clipboard before calling SetData
+and GetData. Call Close when you have finished with the clipboard.
+You should keep the clipboard open for only a very short time.
+Returns true on success. </docstring>
</method>
<method name="Close" type="" overloaded="no">
<autodoc>Close()</autodoc>
+ <docstring>Closes the clipboard.</docstring>
</method>
<method name="IsOpened" type="bool" overloaded="no">
<autodoc>IsOpened() -> bool</autodoc>
+ <docstring>Query whether the clipboard is opened</docstring>
</method>
<method name="AddData" type="bool" overloaded="no">
<autodoc>AddData(DataObject data) -> bool</autodoc>
+ <docstring>Call this function to add the data object to the clipboard. You
+may call this function repeatedly after having cleared the clipboard.
+After this function has been called, the clipboard owns the data, so
+do not delete the data explicitly.</docstring>
<paramlist>
<param name="data" type="DataObject" default=""/>
</paramlist>
</method>
<method name="SetData" type="bool" overloaded="no">
<autodoc>SetData(DataObject data) -> bool</autodoc>
+ <docstring>Set the clipboard data, this is the same as Clear followed by AddData.</docstring>
<paramlist>
<param name="data" type="DataObject" default=""/>
</paramlist>
</method>
<method name="IsSupported" type="bool" overloaded="no">
<autodoc>IsSupported(DataFormat format) -> bool</autodoc>
+ <docstring>Returns True if the given format is available in the data object(s) on
+the clipboard.</docstring>
<paramlist>
<param name="format" type="DataFormat" default=""/>
</paramlist>
</method>
<method name="GetData" type="bool" overloaded="no">
<autodoc>GetData(DataObject data) -> bool</autodoc>
+ <docstring>Call this function to fill data with data on the clipboard, if available
+in the required format. Returns true on success.</docstring>
<paramlist>
<param name="data" type="DataObject" default=""/>
</paramlist>
</method>
<method name="Clear" type="" overloaded="no">
<autodoc>Clear()</autodoc>
+ <docstring>Clears data from the clipboard object and also the system's clipboard
+if possible.</docstring>
</method>
<method name="Flush" type="bool" overloaded="no">
<autodoc>Flush() -> bool</autodoc>
+ <docstring>Flushes the clipboard: this means that the data which is currently on
+clipboard will stay available even after the application exits (possibly
+eating memory), otherwise the clipboard will be emptied on exit.
+Returns False if the operation is unsuccesful for any reason.</docstring>
</method>
<method name="UsePrimarySelection" type="" overloaded="no">
- <autodoc>UsePrimarySelection(bool primary=False)</autodoc>
+ <autodoc>UsePrimarySelection(bool primary=True)</autodoc>
+ <docstring>On platforms supporting it (the X11 based platforms), selects the so
+called PRIMARY SELECTION as the clipboard as opposed to the normal
+clipboard, if primary is True.</docstring>
<paramlist>
- <param name="primary" type="bool" default="False"/>
+ <param name="primary" type="bool" default="True"/>
</paramlist>
</method>
</class>
<class name="ClipboardLocker" oldname="wxClipboardLocker" module="misc">
+ <docstring>A helpful class for opening the clipboard and automatically closing it when
+the locker is destroyed.</docstring>
<constructor name="ClipboardLocker" overloaded="no">
<autodoc>__init__(Clipboard clipboard=None) -> ClipboardLocker</autodoc>
+ <docstring>A helpful class for opening the clipboard and automatically closing it when
+the locker is destroyed.</docstring>
<paramlist>
<param name="clipboard" type="Clipboard" default="NULL"/>
</paramlist>
</destructor>
<method name="__nonzero__" type="bool" overloaded="no">
<autodoc>__nonzero__() -> bool</autodoc>
+ <docstring>A ClipboardLocker instance evaluates to True if the clipboard was
+successfully opened.</docstring>
</method>
</class>
</module>
<import name="misc"/>
<pythoncode> wx = core </pythoncode>
<class name="CalendarDateAttr" oldname="wxCalendarDateAttr" module="calendar">
+ <docstring>A set of customization attributes for a calendar date, which can be used to
+control the look of the Calendar object.</docstring>
<constructor name="CalendarDateAttr" overloaded="no">
- <autodoc>__init__(Colour colText, Colour colBack=wxNullColour, Colour colBorder=wxNullColour,
- Font font=wxNullFont,
+ <autodoc>__init__(Colour colText=wxNullColour, Colour colBack=wxNullColour,
+ Colour colBorder=wxNullColour, Font font=wxNullFont,
int border=CAL_BORDER_NONE) -> CalendarDateAttr</autodoc>
+ <docstring>Create a CalendarDateAttr.</docstring>
<paramlist>
- <param name="colText" type="Colour" default=""/>
+ <param name="colText" type="Colour" default="wxNullColour"/>
<param name="colBack" type="Colour" default="wxNullColour"/>
<param name="colBorder" type="Colour" default="wxNullColour"/>
<param name="font" type="Font" default="wxNullFont"/>
<param name="border" type="wxCalendarDateBorder" default="wxCAL_BORDER_NONE"/>
</paramlist>
</constructor>
- <constructor name="CalendarDateAttrBorder" overloaded="no">
- <autodoc>CalendarDateAttrBorder(int border, Colour colBorder=wxNullColour) -> CalendarDateAttr</autodoc>
- <paramlist>
- <param name="border" type="wxCalendarDateBorder" default=""/>
- <param name="colBorder" type="Colour" default="wxNullColour"/>
- </paramlist>
- </constructor>
<method name="SetTextColour" type="" overloaded="no">
<autodoc>SetTextColour(Colour colText)</autodoc>
<paramlist>
EVT_CALENDAR_WEEKDAY_CLICKED = wx.PyEventBinder( wxEVT_CALENDAR_WEEKDAY_CLICKED, 1)
</pythoncode>
<class name="CalendarCtrl" oldname="wxCalendarCtrl" module="calendar">
+ <docstring>The calendar control allows the user to pick a date interactively.</docstring>
+ <refdoc>The CalendarCtrl displays a window containing several parts: the control to
+pick the month and the year at the top (either or both of them may be
+disabled) and a month area below them which shows all the days in the
+month. The user can move the current selection using the keyboard and select
+the date (generating EVT_CALENDAR event) by pressing <Return> or double
+clicking it.
+
+It has advanced possibilities for the customization of its display. All global
+settings (such as colours and fonts used) can, of course, be changed. But
+also, the display style for each day in the month can be set independently
+using CalendarDateAttr class.
+
+An item without custom attributes is drawn with the default colours and font
+and without border, but setting custom attributes with SetAttr allows to
+modify its appearance. Just create a custom attribute object and set it for
+the day you want to be displayed specially A day may be marked as being a
+holiday, (even if it is not recognized as one by wx.DateTime) by using the
+SetHoliday method.
+
+As the attributes are specified for each day, they may change when the month
+is changed, so you will often want to update them in an EVT_CALENDAR_MONTH
+event handler.
+
+ Styles
+ CAL_SUNDAY_FIRST: Show Sunday as the first day in the week
+ CAL_MONDAY_FIRST: Show Monday as the first day in the week
+ CAL_SHOW_HOLIDAYS: Highlight holidays in the calendar
+ CAL_NO_YEAR_CHANGE: Disable the year changing
+ CAL_NO_MONTH_CHANGE: Disable the month (and, implicitly, the year) changing
+ CAL_SHOW_SURROUNDING_WEEKS: Show the neighbouring weeks in the previous and next months
+ CAL_SEQUENTIAL_MONTH_SELECTION: Use alternative, more compact, style for the month and year selection controls.
+
+The default calendar style is wxCAL_SHOW_HOLIDAYS.
+
+ Events
+ EVT_CALENDAR: A day was double clicked in the calendar.
+ EVT_CALENDAR_SEL_CHANGED: The selected date changed.
+ EVT_CALENDAR_DAY: The selected day changed.
+ EVT_CALENDAR_MONTH: The selected month changed.
+ EVT_CALENDAR_YEAR: The selected year changed.
+ EVT_CALENDAR_WEEKDAY_CLICKED: User clicked on the week day header
+
+Note that changing the selected date will result in either of
+EVT_CALENDAR_DAY, MONTH or YEAR events and an EVT_CALENDAR_SEL_CHANGED event.
+
+</refdoc>
<baseclass name="Control"/>
<constructor name="CalendarCtrl" overloaded="no">
- <autodoc>__init__(Window parent, int id, DateTime date=wxDefaultDateTime,
+ <autodoc>__init__(Window parent, int id, DateTime date=DefaultDateTime,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS,
String name=CalendarNameStr) -> CalendarCtrl</autodoc>
+ <docstring>Create and show a calendar control.</docstring>
+ <refdoc>The CalendarCtrl displays a window containing several parts: the control to
+pick the month and the year at the top (either or both of them may be
+disabled) and a month area below them which shows all the days in the
+month. The user can move the current selection using the keyboard and select
+the date (generating EVT_CALENDAR event) by pressing <Return> or double
+clicking it.
+
+It has advanced possibilities for the customization of its display. All global
+settings (such as colours and fonts used) can, of course, be changed. But
+also, the display style for each day in the month can be set independently
+using CalendarDateAttr class.
+
+An item without custom attributes is drawn with the default colours and font
+and without border, but setting custom attributes with SetAttr allows to
+modify its appearance. Just create a custom attribute object and set it for
+the day you want to be displayed specially A day may be marked as being a
+holiday, (even if it is not recognized as one by wx.DateTime) by using the
+SetHoliday method.
+
+As the attributes are specified for each day, they may change when the month
+is changed, so you will often want to update them in an EVT_CALENDAR_MONTH
+event handler.
+
+ Styles
+ CAL_SUNDAY_FIRST: Show Sunday as the first day in the week
+ CAL_MONDAY_FIRST: Show Monday as the first day in the week
+ CAL_SHOW_HOLIDAYS: Highlight holidays in the calendar
+ CAL_NO_YEAR_CHANGE: Disable the year changing
+ CAL_NO_MONTH_CHANGE: Disable the month (and, implicitly, the year) changing
+ CAL_SHOW_SURROUNDING_WEEKS: Show the neighbouring weeks in the previous and next months
+ CAL_SEQUENTIAL_MONTH_SELECTION: Use alternative, more compact, style for the month and year selection controls.
+
+The default calendar style is wxCAL_SHOW_HOLIDAYS.
+
+ Events
+ EVT_CALENDAR: A day was double clicked in the calendar.
+ EVT_CALENDAR_SEL_CHANGED: The selected date changed.
+ EVT_CALENDAR_DAY: The selected day changed.
+ EVT_CALENDAR_MONTH: The selected month changed.
+ EVT_CALENDAR_YEAR: The selected year changed.
+ EVT_CALENDAR_WEEKDAY_CLICKED: User clicked on the week day header
+
+Note that changing the selected date will result in either of
+EVT_CALENDAR_DAY, MONTH or YEAR events and an EVT_CALENDAR_SEL_CHANGED event.
+
+</refdoc>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
</constructor>
<constructor name="PreCalendarCtrl" overloaded="no">
<autodoc>PreCalendarCtrl() -> CalendarCtrl</autodoc>
+ <docstring>Precreate a CalendarCtrl for 2-phase creation.</docstring>
+ <refdoc>The CalendarCtrl displays a window containing several parts: the control to
+pick the month and the year at the top (either or both of them may be
+disabled) and a month area below them which shows all the days in the
+month. The user can move the current selection using the keyboard and select
+the date (generating EVT_CALENDAR event) by pressing <Return> or double
+clicking it.
+
+It has advanced possibilities for the customization of its display. All global
+settings (such as colours and fonts used) can, of course, be changed. But
+also, the display style for each day in the month can be set independently
+using CalendarDateAttr class.
+
+An item without custom attributes is drawn with the default colours and font
+and without border, but setting custom attributes with SetAttr allows to
+modify its appearance. Just create a custom attribute object and set it for
+the day you want to be displayed specially A day may be marked as being a
+holiday, (even if it is not recognized as one by wx.DateTime) by using the
+SetHoliday method.
+
+As the attributes are specified for each day, they may change when the month
+is changed, so you will often want to update them in an EVT_CALENDAR_MONTH
+event handler.
+
+ Styles
+ CAL_SUNDAY_FIRST: Show Sunday as the first day in the week
+ CAL_MONDAY_FIRST: Show Monday as the first day in the week
+ CAL_SHOW_HOLIDAYS: Highlight holidays in the calendar
+ CAL_NO_YEAR_CHANGE: Disable the year changing
+ CAL_NO_MONTH_CHANGE: Disable the month (and, implicitly, the year) changing
+ CAL_SHOW_SURROUNDING_WEEKS: Show the neighbouring weeks in the previous and next months
+ CAL_SEQUENTIAL_MONTH_SELECTION: Use alternative, more compact, style for the month and year selection controls.
+
+The default calendar style is wxCAL_SHOW_HOLIDAYS.
+
+ Events
+ EVT_CALENDAR: A day was double clicked in the calendar.
+ EVT_CALENDAR_SEL_CHANGED: The selected date changed.
+ EVT_CALENDAR_DAY: The selected day changed.
+ EVT_CALENDAR_MONTH: The selected month changed.
+ EVT_CALENDAR_YEAR: The selected year changed.
+ EVT_CALENDAR_WEEKDAY_CLICKED: User clicked on the week day header
+
+Note that changing the selected date will result in either of
+EVT_CALENDAR_DAY, MONTH or YEAR events and an EVT_CALENDAR_SEL_CHANGED event.
+
+</refdoc>
</constructor>
<method name="Create" type="bool" overloaded="no">
- <autodoc>Create(Window parent, int id, DateTime date=wxDefaultDateTime,
+ <autodoc>Create(Window parent, int id, DateTime date=DefaultDateTime,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS,
String name=CalendarNameStr) -> bool</autodoc>
+ <docstring>Acutally create the GUI portion of the CalendarCtrl for 2-phase creation.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default=""/>
</method>
<method name="SetDate" type="" overloaded="no">
<autodoc>SetDate(DateTime date)</autodoc>
+ <docstring>Sets the current date.</docstring>
<paramlist>
<param name="date" type="DateTime" default=""/>
</paramlist>
</method>
<method name="GetDate" type="DateTime" overloaded="no">
<autodoc>GetDate() -> DateTime</autodoc>
+ <docstring>Gets the currently selected date.</docstring>
</method>
<method name="SetLowerDateLimit" type="bool" overloaded="no">
- <autodoc>SetLowerDateLimit(DateTime date=wxDefaultDateTime) -> bool</autodoc>
+ <autodoc>SetLowerDateLimit(DateTime date=DefaultDateTime) -> bool</autodoc>
+ <docstring>set the range in which selection can occur</docstring>
<paramlist>
<param name="date" type="DateTime" default="wxDefaultDateTime"/>
</paramlist>
</method>
- <method name="GetLowerDateLimit" type="DateTime" overloaded="no">
- <autodoc>GetLowerDateLimit() -> DateTime</autodoc>
- </method>
<method name="SetUpperDateLimit" type="bool" overloaded="no">
- <autodoc>SetUpperDateLimit(DateTime date=wxDefaultDateTime) -> bool</autodoc>
+ <autodoc>SetUpperDateLimit(DateTime date=DefaultDateTime) -> bool</autodoc>
+ <docstring>set the range in which selection can occur</docstring>
<paramlist>
<param name="date" type="DateTime" default="wxDefaultDateTime"/>
</paramlist>
</method>
+ <method name="GetLowerDateLimit" type="DateTime" overloaded="no">
+ <autodoc>GetLowerDateLimit() -> DateTime</autodoc>
+ <docstring>get the range in which selection can occur</docstring>
+ </method>
<method name="GetUpperDateLimit" type="DateTime" overloaded="no">
<autodoc>GetUpperDateLimit() -> DateTime</autodoc>
+ <docstring>get the range in which selection can occur</docstring>
</method>
<method name="SetDateRange" type="bool" overloaded="no">
- <autodoc>SetDateRange(DateTime lowerdate=wxDefaultDateTime, DateTime upperdate=wxDefaultDateTime) -> bool</autodoc>
+ <autodoc>SetDateRange(DateTime lowerdate=DefaultDateTime, DateTime upperdate=DefaultDateTime) -> bool</autodoc>
+ <docstring>set the range in which selection can occur</docstring>
<paramlist>
<param name="lowerdate" type="DateTime" default="wxDefaultDateTime"/>
<param name="upperdate" type="DateTime" default="wxDefaultDateTime"/>
</method>
<method name="EnableYearChange" type="" overloaded="no">
<autodoc>EnableYearChange(bool enable=True)</autodoc>
+ <docstring>This function should be used instead of changing CAL_NO_YEAR_CHANGE
+style bit directly. It allows or disallows the user to change the year
+interactively.</docstring>
<paramlist>
<param name="enable" type="bool" default="True"/>
</paramlist>
</method>
<method name="EnableMonthChange" type="" overloaded="no">
<autodoc>EnableMonthChange(bool enable=True)</autodoc>
+ <docstring>This function should be used instead of changing CAL_NO_MONTH_CHANGE style
+bit. It allows or disallows the user to change the month interactively. Note
+that if the month can not be changed, the year can not be changed either.</docstring>
<paramlist>
<param name="enable" type="bool" default="True"/>
</paramlist>
</method>
<method name="EnableHolidayDisplay" type="" overloaded="no">
<autodoc>EnableHolidayDisplay(bool display=True)</autodoc>
+ <docstring>This function should be used instead of changing CAL_SHOW_HOLIDAYS style
+bit directly. It enables or disables the special highlighting of the holidays.</docstring>
<paramlist>
<param name="display" type="bool" default="True"/>
</paramlist>
</method>
<method name="SetHeaderColours" type="" overloaded="no">
<autodoc>SetHeaderColours(Colour colFg, Colour colBg)</autodoc>
+ <docstring>header colours are used for painting the weekdays at the top</docstring>
<paramlist>
<param name="colFg" type="Colour" default=""/>
<param name="colBg" type="Colour" default=""/>
</method>
<method name="GetHeaderColourFg" type="Colour" overloaded="no">
<autodoc>GetHeaderColourFg() -> Colour</autodoc>
+ <docstring>header colours are used for painting the weekdays at the top</docstring>
</method>
<method name="GetHeaderColourBg" type="Colour" overloaded="no">
<autodoc>GetHeaderColourBg() -> Colour</autodoc>
+ <docstring>header colours are used for painting the weekdays at the top</docstring>
</method>
<method name="SetHighlightColours" type="" overloaded="no">
<autodoc>SetHighlightColours(Colour colFg, Colour colBg)</autodoc>
+ <docstring>highlight colour is used for the currently selected date</docstring>
<paramlist>
<param name="colFg" type="Colour" default=""/>
<param name="colBg" type="Colour" default=""/>
</method>
<method name="GetHighlightColourFg" type="Colour" overloaded="no">
<autodoc>GetHighlightColourFg() -> Colour</autodoc>
+ <docstring>highlight colour is used for the currently selected date</docstring>
</method>
<method name="GetHighlightColourBg" type="Colour" overloaded="no">
<autodoc>GetHighlightColourBg() -> Colour</autodoc>
+ <docstring>highlight colour is used for the currently selected date</docstring>
</method>
<method name="SetHolidayColours" type="" overloaded="no">
<autodoc>SetHolidayColours(Colour colFg, Colour colBg)</autodoc>
+ <docstring>holiday colour is used for the holidays (if CAL_SHOW_HOLIDAYS style is used)</docstring>
<paramlist>
<param name="colFg" type="Colour" default=""/>
<param name="colBg" type="Colour" default=""/>
</method>
<method name="GetHolidayColourFg" type="Colour" overloaded="no">
<autodoc>GetHolidayColourFg() -> Colour</autodoc>
+ <docstring>holiday colour is used for the holidays (if CAL_SHOW_HOLIDAYS style is used)</docstring>
</method>
<method name="GetHolidayColourBg" type="Colour" overloaded="no">
<autodoc>GetHolidayColourBg() -> Colour</autodoc>
+ <docstring>holiday colour is used for the holidays (if CAL_SHOW_HOLIDAYS style is used)</docstring>
</method>
<method name="GetAttr" type="CalendarDateAttr" overloaded="no">
<autodoc>GetAttr(size_t day) -> CalendarDateAttr</autodoc>
+ <docstring>Returns the attribute for the given date (should be in the range 1...31).
+The returned value may be None</docstring>
<paramlist>
<param name="day" type="size_t" default=""/>
</paramlist>
</method>
<method name="SetAttr" type="" overloaded="no">
<autodoc>SetAttr(size_t day, CalendarDateAttr attr)</autodoc>
+ <docstring>Associates the attribute with the specified date (in the range 1...31).
+If the attribute passed is None, the items attribute is cleared.</docstring>
<paramlist>
<param name="day" type="size_t" default=""/>
<param name="attr" type="CalendarDateAttr" default=""/>
</method>
<method name="SetHoliday" type="" overloaded="no">
<autodoc>SetHoliday(size_t day)</autodoc>
+ <docstring>Marks the specified day as being a holiday in the current month.</docstring>
<paramlist>
<param name="day" type="size_t" default=""/>
</paramlist>
</method>
<method name="ResetAttr" type="" overloaded="no">
<autodoc>ResetAttr(size_t day)</autodoc>
+ <docstring>Clears any attributes associated with the given day (in the range 1...31).</docstring>
<paramlist>
<param name="day" type="size_t" default=""/>
</paramlist>
</method>
- <method name="HitTest" type="wxCalendarHitTestResult" overloaded="no">
- <autodoc>HitTest(Point pos, DateTime date=None, int wd=None) -> int</autodoc>
+ <method name="HitTest" type="PyObject" overloaded="no">
+ <autodoc>HitTest(Point pos) -> (result, date, weekday)</autodoc>
+ <docstring>Returns 3-tuple with information about the given position on the calendar
+control. The first value of the tuple is a result code and determines the
+validity of the remaining two values. The result codes are:
+
+ CAL_HITTEST_NOWHERE: hit outside of anything
+ CAL_HITTEST_HEADER: hit on the header, weekday is valid
+ CAL_HITTEST_DAY: hit on a day in the calendar, date is set.
+</docstring>
<paramlist>
<param name="pos" type="Point" default=""/>
- <param name="date" type="DateTime" default="NULL"/>
- <param name="wd" type="wxDateTime::WeekDay" default="NULL"/>
- </paramlist>
- </method>
- <method name="Enable" type="bool" overloaded="no">
- <autodoc>Enable(bool enable=True) -> bool</autodoc>
- <paramlist>
- <param name="enable" type="bool" default="True"/>
- </paramlist>
- </method>
- <method name="Show" type="bool" overloaded="no">
- <autodoc>Show(bool show=True) -> bool</autodoc>
- <paramlist>
- <param name="show" type="bool" default="True"/>
</paramlist>
</method>
<method name="GetMonthControl" type="Control" overloaded="no">
<autodoc>GetMonthControl() -> Control</autodoc>
+ <docstring>get the currently shown control for month</docstring>
</method>
<method name="GetYearControl" type="Control" overloaded="no">
<autodoc>GetYearControl() -> Control</autodoc>
+ <docstring>get the currently shown control for year</docstring>
</method>
</class>
</module>
</method>
<method name="Refresh" type="" overloaded="no">
<autodoc>Refresh(bool eraseb=True, Rect rect=None)</autodoc>
+ <docstring>Mark the specified rectangle (or the whole window) as "dirty" so it
+will be repainted. Causes an EVT_PAINT event to be generated and sent
+to the window.</docstring>
<paramlist>
<param name="eraseb" type="bool" default="True"/>
<param name="rect" type="Rect" default="NULL"/>
</method>
<method name="SetTitle" type="" overloaded="no">
<autodoc>SetTitle(String title)</autodoc>
+ <docstring>Sets the window's title. Applicable only to frames and dialogs.</docstring>
<paramlist>
<param name="title" type="String" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="AddFilter" type="" overloaded="no">
- <autodoc>HtmlWindow.AddFilter(HtmlFilter filter)</autodoc>
+ <autodoc>AddFilter(HtmlFilter filter)</autodoc>
<paramlist>
<param name="filter" type="HtmlFilter" default=""/>
</paramlist>
</staticmethod>
+ <method name="SelectWord" type="" overloaded="no">
+ <autodoc>SelectWord(Point pos)</autodoc>
+ <paramlist>
+ <param name="pos" type="Point" default=""/>
+ </paramlist>
+ </method>
+ <method name="SelectLine" type="" overloaded="no">
+ <autodoc>SelectLine(Point pos)</autodoc>
+ <paramlist>
+ <param name="pos" type="Point" default=""/>
+ </paramlist>
+ </method>
+ <method name="SelectAll" type="" overloaded="no">
+ <autodoc>SelectAll()</autodoc>
+ </method>
<method name="base_OnLinkClicked" type="" overloaded="no">
<autodoc>base_OnLinkClicked(HtmlLinkInfo link)</autodoc>
<paramlist>
</paramlist>
</method>
<staticmethod name="AddFilter" type="" overloaded="no">
- <autodoc>HtmlPrintout.AddFilter(wxHtmlFilter filter)</autodoc>
+ <autodoc>AddFilter(wxHtmlFilter filter)</autodoc>
<paramlist>
<param name="filter" type="wxHtmlFilter" default=""/>
</paramlist>
</staticmethod>
<staticmethod name="CleanUpStatics" type="" overloaded="no">
- <autodoc>HtmlPrintout.CleanUpStatics()</autodoc>
+ <autodoc>CleanUpStatics()</autodoc>
</staticmethod>
</class>
<class name="HtmlEasyPrinting" oldname="wxHtmlEasyPrinting" module="html">
</paramlist>
</method>
<staticmethod name="Chain" type="" overloaded="no">
- <autodoc>WizardPageSimple.Chain(WizardPageSimple first, WizardPageSimple second)</autodoc>
+ <autodoc>Chain(WizardPageSimple first, WizardPageSimple second)</autodoc>
<paramlist>
<param name="first" type="WizardPageSimple" default=""/>
<param name="second" type="WizardPageSimple" default=""/>
<param name="palette" type="Palette" default="wxNullPalette"/>
</paramlist>
</constructor>
- <constructor name="wxGLCanvasWithContext" overloaded="no">
- <autodoc>wxGLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
+ <constructor name="GLCanvasWithContext" overloaded="no">
+ <autodoc>GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
Size size=DefaultSize,
long style=0, String name=GLCanvasNameStr,
int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas</autodoc>
<autodoc>ClearText()</autodoc>
</method>
</class>
+ <class name="AttachmentPoint" oldname="wxAttachmentPoint" module="ogl">
+ <baseclass name="Object"/>
+ <constructor name="AttachmentPoint" overloaded="no">
+ <autodoc>__init__(int id=0, double x=0.0, double y=0.0) -> AttachmentPoint</autodoc>
+ <paramlist>
+ <param name="id" type="int" default="0"/>
+ <param name="x" type="double" default="0.0"/>
+ <param name="y" type="double" default="0.0"/>
+ </paramlist>
+ </constructor>
+ <property name="m_id" type="int" readonly="no"/>
+ <property name="m_x" type="double" readonly="no"/>
+ <property name="m_y" type="double" readonly="no"/>
+ </class>
<class name="PyShapeEvtHandler" oldname="wxPyShapeEvtHandler" module="ogl">
<baseclass name="Object"/>
<constructor name="PyShapeEvtHandler" overloaded="no">
<param name="attachment" type="int" default=""/>
</paramlist>
</method>
+ <method name="GetAttachments" type="PyObject" overloaded="no">
+ <autodoc>GetAttachments() -> PyObject</autodoc>
+ </method>
<method name="GetAttachmentPositionEdge" type="bool" overloaded="no">
<autodoc>GetAttachmentPositionEdge(int attachment, double OUTPUT, double OUTPUT, int nth=0,
int no_arcs=1, PyLineShape line=None) -> bool</autodoc>
<method name="GetRotation" type="double" overloaded="no">
<autodoc>GetRotation() -> double</autodoc>
</method>
+ <method name="SetRotation" type="" overloaded="no">
+ <autodoc>SetRotation(double rotation)</autodoc>
+ <paramlist>
+ <param name="rotation" type="double" default=""/>
+ </paramlist>
+ </method>
<method name="ClearAttachments" type="" overloaded="no">
<autodoc>ClearAttachments()</autodoc>
</method>
<param name="radius" type="double" default=""/>
</paramlist>
</method>
+ <method name="GetCornerRadius" type="double" overloaded="no">
+ <autodoc>GetCornerRadius() -> double</autodoc>
+ </method>
<method name="base_OnDelete" type="" overloaded="no">
<autodoc>base_OnDelete()</autodoc>
</method>
<method name="Unlink" type="" overloaded="no">
<autodoc>Unlink()</autodoc>
</method>
+ <method name="SetAlignmentOrientation" type="" overloaded="no">
+ <autodoc>SetAlignmentOrientation(bool isEnd, bool isHoriz)</autodoc>
+ <paramlist>
+ <param name="isEnd" type="bool" default=""/>
+ <param name="isHoriz" type="bool" default=""/>
+ </paramlist>
+ </method>
+ <method name="SetAlignmentType" type="" overloaded="no">
+ <autodoc>SetAlignmentType(bool isEnd, int alignType)</autodoc>
+ <paramlist>
+ <param name="isEnd" type="bool" default=""/>
+ <param name="alignType" type="int" default=""/>
+ </paramlist>
+ </method>
+ <method name="GetAlignmentOrientation" type="bool" overloaded="no">
+ <autodoc>GetAlignmentOrientation(bool isEnd) -> bool</autodoc>
+ <paramlist>
+ <param name="isEnd" type="bool" default=""/>
+ </paramlist>
+ </method>
+ <method name="GetAlignmentType" type="int" overloaded="no">
+ <autodoc>GetAlignmentType(bool isEnd) -> int</autodoc>
+ <paramlist>
+ <param name="isEnd" type="bool" default=""/>
+ </paramlist>
+ </method>
+ <method name="GetAlignmentStart" type="int" overloaded="no">
+ <autodoc>GetAlignmentStart() -> int</autodoc>
+ </method>
+ <method name="GetAlignmentEnd" type="int" overloaded="no">
+ <autodoc>GetAlignmentEnd() -> int</autodoc>
+ </method>
<method name="base_OnDraw" type="" overloaded="no">
<autodoc>base_OnDraw(DC dc)</autodoc>
<paramlist>
<method name="GetPoints" type="PyObject" overloaded="no">
<autodoc>GetPoints() -> PyObject</autodoc>
</method>
+ <method name="GetOriginalPoints" type="PyObject" overloaded="no">
+ <autodoc>GetOriginalPoints() -> PyObject</autodoc>
+ </method>
+ <method name="GetOriginalWidth" type="double" overloaded="no">
+ <autodoc>GetOriginalWidth() -> double</autodoc>
+ </method>
+ <method name="GetOriginalHeight" type="double" overloaded="no">
+ <autodoc>GetOriginalHeight() -> double</autodoc>
+ </method>
+ <method name="SetOriginalWidth" type="" overloaded="no">
+ <autodoc>SetOriginalWidth(double w)</autodoc>
+ <paramlist>
+ <param name="w" type="double" default=""/>
+ </paramlist>
+ </method>
+ <method name="SetOriginalHeight" type="" overloaded="no">
+ <autodoc>SetOriginalHeight(double h)</autodoc>
+ <paramlist>
+ <param name="h" type="double" default=""/>
+ </paramlist>
+ </method>
<method name="UpdateOriginalPoints" type="" overloaded="no">
<autodoc>UpdateOriginalPoints()</autodoc>
</method>
</module>
<module name="stc">
<import name="core"/>
+ <import name="misc"/>
<pythoncode> wx = core </pythoncode>
<class name="StyledTextCtrl" oldname="wxStyledTextCtrl" module="stc">
<baseclass name="Control"/>
<param name="underline" type="bool" default=""/>
</paramlist>
</method>
+ <method name="SetHotspotSingleLine" type="" overloaded="no">
+ <autodoc>SetHotspotSingleLine(bool singleLine)</autodoc>
+ <paramlist>
+ <param name="singleLine" type="bool" default=""/>
+ </paramlist>
+ </method>
<method name="PositionBefore" type="int" overloaded="no">
<autodoc>PositionBefore(int pos) -> int</autodoc>
<paramlist>
<param name="text" type="String" default=""/>
</paramlist>
</method>
+ <method name="SetSelectionMode" type="" overloaded="no">
+ <autodoc>SetSelectionMode(int mode)</autodoc>
+ <paramlist>
+ <param name="mode" type="int" default=""/>
+ </paramlist>
+ </method>
+ <method name="GetSelectionMode" type="int" overloaded="no">
+ <autodoc>GetSelectionMode() -> int</autodoc>
+ </method>
+ <method name="GetLineSelStartPosition" type="int" overloaded="no">
+ <autodoc>GetLineSelStartPosition(int line) -> int</autodoc>
+ <paramlist>
+ <param name="line" type="int" default=""/>
+ </paramlist>
+ </method>
+ <method name="GetLineSelEndPosition" type="int" overloaded="no">
+ <autodoc>GetLineSelEndPosition(int line) -> int</autodoc>
+ <paramlist>
+ <param name="line" type="int" default=""/>
+ </paramlist>
+ </method>
+ <method name="SetWhitespaceChars" type="" overloaded="no">
+ <autodoc>SetWhitespaceChars(String characters)</autodoc>
+ <paramlist>
+ <param name="characters" type="String" default=""/>
+ </paramlist>
+ </method>
+ <method name="SetCharsDefault" type="" overloaded="no">
+ <autodoc>SetCharsDefault()</autodoc>
+ </method>
+ <method name="AutoCompGetCurrent" type="int" overloaded="no">
+ <autodoc>AutoCompGetCurrent() -> int</autodoc>
+ </method>
<method name="StartRecord" type="" overloaded="no">
<autodoc>StartRecord()</autodoc>
</method>
</paramlist>
</method>
<method name="DoDragOver" type="wxDragResult" overloaded="no">
- <autodoc>DoDragOver(int x, int y, wxDragResult def) -> wxDragResult</autodoc>
+ <autodoc>DoDragOver(int x, int y, int def) -> int</autodoc>
<paramlist>
<param name="x" type="int" default=""/>
<param name="y" type="int" default=""/>
<param name="data" type="String" default=""/>
</paramlist>
</method>
+ <method name="SetUseAntiAliasing" type="" overloaded="no">
+ <autodoc>SetUseAntiAliasing(bool useAA)</autodoc>
+ <paramlist>
+ <param name="useAA" type="bool" default=""/>
+ </paramlist>
+ </method>
+ <method name="GetUseAntiAliasing" type="bool" overloaded="no">
+ <autodoc>GetUseAntiAliasing() -> bool</autodoc>
+ </method>
</class>
<class name="StyledTextEvent" oldname="wxStyledTextEvent" module="stc">
<baseclass name="CommandEvent"/>
</paramlist>
</method>
<method name="SetDragResult" type="" overloaded="no">
- <autodoc>SetDragResult(wxDragResult val)</autodoc>
+ <autodoc>SetDragResult(int val)</autodoc>
<paramlist>
<param name="val" type="wxDragResult" default=""/>
</paramlist>
<autodoc>GetDragAllowMove() -> bool</autodoc>
</method>
<method name="GetDragResult" type="wxDragResult" overloaded="no">
- <autodoc>GetDragResult() -> wxDragResult</autodoc>
+ <autodoc>GetDragResult() -> int</autodoc>
</method>
<method name="GetShift" type="bool" overloaded="no">
<autodoc>GetShift() -> bool</autodoc>
<autodoc>ClearHandlers()</autodoc>
</method>
<staticmethod name="AddSubclassFactory" type="" overloaded="no">
- <autodoc>XmlResource.AddSubclassFactory(XmlSubclassFactory factory)</autodoc>
+ <autodoc>AddSubclassFactory(XmlSubclassFactory factory)</autodoc>
<paramlist>
<param name="factory" type="wxPyXmlSubclassFactory" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="GetXRCID" type="int" overloaded="no">
- <autodoc>XmlResource.GetXRCID(String str_id) -> int</autodoc>
+ <autodoc>GetXRCID(String str_id) -> int</autodoc>
<paramlist>
<param name="str_id" type="String" default=""/>
</paramlist>
</paramlist>
</method>
<staticmethod name="Get" type="XmlResource" overloaded="no">
- <autodoc>XmlResource.Get() -> XmlResource</autodoc>
+ <autodoc>Get() -> XmlResource</autodoc>
</staticmethod>
<staticmethod name="Set" type="XmlResource" overloaded="no">
- <autodoc>XmlResource.Set(XmlResource res) -> XmlResource</autodoc>
+ <autodoc>Set(XmlResource res) -> XmlResource</autodoc>
<paramlist>
<param name="res" type="XmlResource" default=""/>
</paramlist>
Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
Validator validator=DefaultValidator,
String name=TreeListCtrlNameStr) -> bool</autodoc>
+ <docstring>Do the 2nd phase and create the GUI control.</docstring>
<paramlist>
<param name="parent" type="Window" default=""/>
<param name="id" type="int" default="-1"/>