1 """Basic regular expression demonstration facility (Perl style syntax)."""
3 from wxPython
.wx
import *
6 #----------------------------------------------------------------------
8 class ReDemoPanel(wxPanel
):
9 def __init__(self
, parent
):
10 wxPanel
.__init
__(self
, parent
, -1)
12 rePrompt
= wxStaticText(self
, -1, "Enter a Perl-style regular expression")
13 reText
= wxTextCtrl(self
, 101, "")
15 options
= self
.AddOptions()
17 sPrompt
= wxStaticText(self
, -1, "Enter a string to search")
18 sText
= wxTextCtrl(self
, 102, "", style
=wxTE_MULTILINE
)
20 dispPrompt
= wxStaticText(self
, -1, "Groups:")
21 dispText
= wxTextCtrl(self
, 103, "", style
=wxTE_MULTILINE|wxTE_READONLY
)
24 #----------------------------------------------------------------------
25 #----------------------------------------------------------------------