wx.FindDialogEvent

Inheritance diagram for wx.FindDialogEvent:



Description

wx.FindReplaceDialog events.

Derived From

Event Handling

To process a command event from wx.FindReplaceDialog, use these event handler macros to direct input to member functions that take a wx.FindDialogEvent argument. The id parameter is the identifier of the find dialog and you may usually specify -1 for it unless you plan to have several find dialogs sending events to the same owner window simultaneously.

Event Name Description
wx.EVT_FIND(id, func) Find button was pressed in the dialog.
wx.EVT_FIND_NEXT(id, func) Find next button was pressed in the dialog.
wx.EVT_FIND_REPLACE(id, func) Replace button was pressed in the dialog.
wx.EVT_FIND_REPLACE_ALL(id, func) Replace all button was pressed in the dialog.
wx.EVT_FIND_CLOSE(id, func) The dialog is being destroyed, any pointers to it cannot be used any longer.

Properties Summary

Class API

Methods

__init__(commandType=wx.wxEVT_NULL, id=0)

Events for the wx.FindReplaceDialog.

Parameters:

  • commandType (eventtype)
  • id (int)

Returns:

wx.FindDialogEvent


GetDialog()

Return the pointer to the dialog which generated this event.


Returns:

wx.FindReplaceDialog


GetFindString()

Return the string to find (never empty).


Returns:

string


GetFlags()

Get the currently selected flags: this is the combination of wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.


Returns:

int


GetReplaceString()

Return the string to replace the search string with (only for replace and replace all events).


Returns:

string


SetFindString(str)

Parameters:

  • str (string)

SetFlags(flags)

Parameters:

  • flags (int)

SetReplaceString(str)

Parameters:

  • str (string)

Properties

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