Пример #1
0
 def open(self, io=None):
     SearchDialogBase.open(self, None)
     if io:
         path = io.filename or ""
     else:
         path = ""
     dir, base = os.path.split(path)
     head, tail = os.path.splitext(base)
     if not tail:
         tail = ".py"
     self.globvar.set(os.path.join(dir, "*" + tail))
Пример #2
0
 def open(self, io=None):
     SearchDialogBase.open(self, None)
     if io:
         path = io.filename or ""
     else:
         path = ""
     dir, base = os.path.split(path)
     head, tail = os.path.splitext(base)
     if not tail:
         tail = ".py"
     self.globvar.set(os.path.join(dir, "*" + tail))
Пример #3
0
 def open(self, text):
     SearchDialogBase.open(self, text)
     try:
         first = text.index("sel.first")
     except TclError:
         first = None
     try:
         last = text.index("sel.last")
     except TclError:
         last = None
     first = first or text.index("insert")
     last = last or first
     self.show_hit(first, last)
     self.ok = 1
Пример #4
0
 def open(self, text):
     SearchDialogBase.open(self, text)
     try:
         first = text.index("sel.first")
     except TclError:
         first = None
     try:
         last = text.index("sel.last")
     except TclError:
         last = None
     first = first or text.index("insert")
     last = last or first
     self.show_hit(first, last)
     self.ok = 1
Пример #5
0
from Tkinter import *
Пример #6
0
 def create_command_buttons(self):
     SearchDialogBase.create_command_buttons(self)
     self.make_button("Search Files", self.default_command, 1)
Пример #7
0
 def create_command_buttons(self):
     SearchDialogBase.create_command_buttons(self)
     self.make_button("Search Files", self.default_command, 1)
Пример #8
0
import string
Пример #9
0
 def __init__(self, root, engine):
     SearchDialogBase.__init__(self, root, engine)
     self.replvar = StringVar(root)
Пример #10
0
 def close(self, event=None):
     SearchDialogBase.close(self, event)
     self.text.tag_remove("hit", "1.0", "end")
Пример #11
0
from Tkinter import *
Пример #12
0
 def create_command_buttons(self):
     SearchDialogBase.create_command_buttons(self)
Пример #13
0
 def create_widgets(self):
     SearchDialogBase.create_widgets(self)
Пример #14
0
 def create_widgets(self):
     SearchDialogBase.create_widgets(self)
Пример #15
0
import string
Пример #16
0
 def create_entries(self):
     SearchDialogBase.create_entries(self)
     self.replent = self.make_entry("Replace with:", self.replvar)
Пример #17
0
 def create_command_buttons(self):
     SearchDialogBase.create_command_buttons(self)
     self.make_button("Find", self.find_it)
     self.make_button("Replace", self.replace_it)
     self.make_button("Replace+Find", self.default_command, 1)
     self.make_button("Replace All", self.replace_all)
Пример #18
0
 def create_entries(self):
     SearchDialogBase.create_entries(self)
     self.replent = self.make_entry("Replace with:", self.replvar)
Пример #19
0
 def __init__(self, root, engine, flist):
     SearchDialogBase.__init__(self, root, engine)
     self.flist = flist
     self.globvar = StringVar(root)
     self.recvar = BooleanVar(root)
Пример #20
0
 def create_command_buttons(self):
     SearchDialogBase.create_command_buttons(self)
     self.make_button("Find", self.find_it)
     self.make_button("Replace", self.replace_it)
     self.make_button("Replace+Find", self.default_command, 1)
     self.make_button("Replace All", self.replace_all)
Пример #21
0
 def create_entries(self):
     SearchDialogBase.create_entries(self)
     self.globent = self.make_entry("In files:", self.globvar)
Пример #22
0
 def create_widgets(self):
     SearchDialogBase.create_widgets(self)
     self.make_button("Find Next", self.default_command, 1)
Пример #23
0
 def __init__(self, root, engine, flist):
     SearchDialogBase.__init__(self, root, engine)
     self.flist = flist
     self.globvar = StringVar(root)
     self.recvar = BooleanVar(root)
Пример #24
0
 def close(self, event=None):
     SearchDialogBase.close(self, event)
     self.text.tag_remove("hit", "1.0", "end")
Пример #25
0
 def create_entries(self):
     SearchDialogBase.create_entries(self)
     self.globent = self.make_entry("In files:", self.globvar)
Пример #26
0
 def __init__(self, root, engine):
     SearchDialogBase.__init__(self, root, engine)
     self.replvar = StringVar(root)
Пример #27
0
 def create_widgets(self):
     f = SearchDialogBase.create_widgets(self)
     self.make_button("Find", self.default_command, 1)
Пример #28
0
import string