當前位置: 首頁>>代碼示例>>Python>>正文


Python SearchDialogBase.SearchDialogBase類代碼示例

本文整理匯總了Python中SearchDialogBase.SearchDialogBase的典型用法代碼示例。如果您正苦於以下問題:Python SearchDialogBase類的具體用法?Python SearchDialogBase怎麽用?Python SearchDialogBase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SearchDialogBase類的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: open

 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))
開發者ID:asottile,項目名稱:ancient-pythons,代碼行數:11,代碼來源:GrepDialog.py

示例2: open

 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
開發者ID:1310701102,項目名稱:sl4a,代碼行數:14,代碼來源:ReplaceDialog.py

示例3: create_command_buttons

 def create_command_buttons(self):
     SearchDialogBase.create_command_buttons(self)
     self.make_button("Search Files", self.default_command, 1)
開發者ID:asottile,項目名稱:ancient-pythons,代碼行數:3,代碼來源:GrepDialog.py

示例4: create_entries

 def create_entries(self):
     SearchDialogBase.create_entries(self)
     self.globent = self.make_entry("In files:", self.globvar)
開發者ID:asottile,項目名稱:ancient-pythons,代碼行數:3,代碼來源:GrepDialog.py

示例5: __init__

 def __init__(self, root, engine, flist):
     SearchDialogBase.__init__(self, root, engine)
     self.flist = flist
     self.globvar = StringVar(root)
     self.recvar = BooleanVar(root)
開發者ID:asottile,項目名稱:ancient-pythons,代碼行數:5,代碼來源:GrepDialog.py

示例6: create_widgets

 def create_widgets(self):
     SearchDialogBase.create_widgets(self)
     self.make_button("Find Next", self.default_command, 1)
開發者ID:belzner,項目名稱:idle-errors-uap,代碼行數:3,代碼來源:SearchDialog.py

示例7: create_command_buttons

 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)
開發者ID:1310701102,項目名稱:sl4a,代碼行數:6,代碼來源:ReplaceDialog.py

示例8: create_entries

 def create_entries(self):
     SearchDialogBase.create_entries(self)
     self.replent = self.make_entry("Replace with:", self.replvar)
開發者ID:1310701102,項目名稱:sl4a,代碼行數:3,代碼來源:ReplaceDialog.py

示例9: __init__

 def __init__(self, root, engine):
     SearchDialogBase.__init__(self, root, engine)
     self.replvar = StringVar(root)
開發者ID:1310701102,項目名稱:sl4a,代碼行數:3,代碼來源:ReplaceDialog.py

示例10: close

 def close(self, event=None):
     SearchDialogBase.close(self, event)
     self.text.tag_remove("hit", "1.0", "end")
開發者ID:1310701102,項目名稱:sl4a,代碼行數:3,代碼來源:ReplaceDialog.py

示例11: create_command_buttons

 def create_command_buttons(self):
     SearchDialogBase.create_command_buttons(self)
開發者ID:8848,項目名稱:Pymol-script-repo,代碼行數:2,代碼來源:ReplaceDialog.py

示例12: create_widgets

 def create_widgets(self):
     SearchDialogBase.create_widgets(self)
開發者ID:8848,項目名稱:Pymol-script-repo,代碼行數:2,代碼來源:SearchDialog.py

示例13:

import string
開發者ID:mcyril,項目名稱:ravel-ftn,代碼行數:1,代碼來源:GrepDialog.py

示例14:

from Tkinter import *
開發者ID:mcyril,項目名稱:ravel-ftn,代碼行數:1,代碼來源:SearchDialog.py


注:本文中的SearchDialogBase.SearchDialogBase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。