wx.FindReplaceData

Inheritance diagram for wx.FindReplaceData:



Description

wx.FindReplaceData holds the data for wx.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 wx.FindDialogEvent is generated so instead of using the wx.FindDialogEvent 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.

Derived From

Properties Summary

Class API

Methods

__init__(flags=0)

Constuctor initializes the flags to default value (0).

Parameters:

  • flags (int)

Returns:

wx.FindReplaceData


GetFindString()

Get the string to find.


Returns:

string


GetFlags()

Get the combination of wx.FindReplaceFlags values, which can be:

Flag Description
wx.FR_DOWN downward search/replace selected (otherwise - upwards)
wx.FR_WHOLEWORD whole word search/replace selected
wx.FR_MATCHCASE case sensitive search/replace selected (otherwise - case insensitive)

Returns:

int


GetReplaceString()

Get the replacement string.


Returns:

string


SetFindString(str)

Set the string to find (used as initial value by the dialog).

Parameters:

  • str (string)

SetFlags(flags)

Set the flags to use to initialize the controls of the dialog.

Parameters:

  • flags (int)

See also

GetFlags


SetReplaceString(str)

Set the replacement string (used as initial value by the dialog).

Parameters:

  • str (string)

Properties

FindString
See GetFindString and SetFindString
Flags
See GetFlags and SetFlags
ReplaceString
See GetReplaceString and SetReplaceString