Package nltk_lite :: Package misc :: Module nemo
[hide private]
[frames] | no frames]

Module nemo

source code

Finding (and Replacing) Nemo

Instant Regular Expressions Created by Aristide Grange

Classes [hide private]
  Zone
  FindZone
  ReplaceZone
Functions [hide private]
 
launchRefresh(_) source code
Variables [hide private]
  windowTitle = "Finding (and Replacing) Nemo"
  initialFind = r"n(.*?)e(.*?)m(.*?)o"
  initialRepl = r"M\1A\2K\3I"
  initialText = "...
  images = {"FIND": "R0lGODlhMAAiAPcAMf/////37//35//n1v97Off///f...
  colors = ["#FF7B39", "#80F121"]
  emphColors = ["#DAFC33", "#F42548"]
  fieldParams = {"height": 3, "width": 70, "font":("monaco", 14)...
  textParams = {"bg": "#F7E0D4", "fg": "#2321F1", "highlightthic...
  root = tk.Tk()
  sz = FindZone("find", initialFind, initialText)
  rz = ReplaceZone("repl", initialRepl, "")
  rex0 = sre.compile(r"(?<!\\)\\([0-9]+)")
Variables Details [hide private]

initialText

Value:
"""\
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusm\
od tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nis\
i ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum \
dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui offi\
...

images

Value:
{"FIND": "R0lGODlhMAAiAPcAMf/////37//35//n1v97Off///f/9/f37/fexvfOvfeE\
Qvd7QvdrQvdrKfdaKfdSMfdSIe/v9+/v7+/v5+/n3u/e1u/Wxu/Gre+1lO+tnO+thO+Ua+\
97Y+97Oe97Me9rOe9rMe9jOe9jMe9jIe9aMefe5+fe3ufezuece+eEWudzQudaIedSIedK\
MedKIedCKedCId7e1t7Wzt7Oxt7Gvd69vd69rd61pd6ljN6UjN6Ue96EY95zY95rUt5rQt\
5jMd5SId5KIdbn59be3tbGztbGvda1rdaEa9Z7a9Z7WtZzQtZzOdZzMdZjMdZaQtZSOdZS\
MdZKMdZCKdZCGNY5Ic7W1s7Oxs7Gtc69xs69tc69rc6tpc6llM6clM6cjM6Ue86EY85zWs\
5rSs5SKc5KKc5KGMa1tcatrcalvcalnMaUpcZ7c8ZzMcZrUsZrOcZrMcZaQsZSOcZSMcZK\
McZCKcZCGMYxIcYxGL3Gxr21tb21rb2lpb2crb2cjL2UnL2UlL2UhL2Ec717Wr17Ur1zWr\
...

fieldParams

Value:
{"height": 3, "width": 70, "font":("monaco", 14), "highlightthickness"\
: 0, "borderwidth": 0, "background": "white",}

textParams

Value:
{"bg": "#F7E0D4", "fg": "#2321F1", "highlightthickness": 0, "width": 1\
, "height": 10, "font":("verdana", 16), "wrap": "word",}