def findInLog(self, event): dlg = wx.FindReplaceDialog( self, self.findData, "Find in Log", wx.FR_NOUPDOWN | wx.FR_NOMATCHCASE | wx.FR_NOWHOLEWORD) self.BindFindEvents(dlg) dlg.Show(True)
def doFind(self, _): dlg = wx.FindReplaceDialog(self, self.findData, "Find") self.BindFindEvents(dlg) #dlg.SetFocus() dlg.Show(True)
def doFindReplace(self, _): dlg = wx.FindReplaceDialog(self, self.findData, "Find/Replace", wx.FR_REPLACEDIALOG) self.BindFindEvents(dlg) #dlg.SetFocus() dlg.Show(True)
def CreateFindDialog(self): data = wx.FindReplaceData() self.oldFindDialog = self.newFindDialog self.newFindDialog = wx.FindReplaceDialog(self, data, "Find") self.newFindDialog.data = data self.foundTextPos = 0
def onFindOpen(self, event): self.dlg = wx.FindReplaceDialog( self, self.findData, "Find and Replace", wx.FR_REPLACEDIALOG | wx.FR_NOUPDOWN | wx.FR_NOMATCHCASE | wx.FR_NOWHOLEWORD) self.dlg.Show()
def OnShowFindReplace(self, evt): self.DisableButtons() dlg = wx.FindReplaceDialog(self, self.findData, "Find & Replace", wx.FR_REPLACEDIALOG) self.BindFindEvents(dlg) dlg.Show(True)
def OnShowFind(self, evt): self.DisableButtons() dlg = wx.FindReplaceDialog(self, self.findData, "Find") self.BindFindEvents(dlg) dlg.Show(True)
def ShowFindReplaceDlg(self): data = wx.FindReplaceData() dlg = wx.FindReplaceDialog(self, data, \ "Find & Replace", wx.FR_REPLACEDIALOG) dlg.data = data # save a reference to it... dlg.Show(True)
def ShowFindDlg(self): data = wx.FindReplaceData() dlg = wx.FindReplaceDialog(self, data, "Find") dlg.data = data # save a reference to it... dlg.Show(True)
def FindText(self, ev): self.frdialog = wx.FindReplaceDialog(self, self.frdata) self.frdialog.Bind(wx.EVT_FIND, self.OnFind) self.frdialog.Bind(wx.EVT_FIND_NEXT, self.OnFind) self.frdialog.Show()