本文整理匯總了Python中idlelib.SearchDialog類的典型用法代碼示例。如果您正苦於以下問題:Python SearchDialog類的具體用法?Python SearchDialog怎麽用?Python SearchDialog使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了SearchDialog類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: find_event
def find_event(self, event=None):
if not self.tag_ranges("sel"):
found = self.tag_ranges("found")
if found:
self.tag_add("sel", found[0], found[1])
else:
self.tag_add("sel", "1.0", "1.0+1c")
SearchDialog.find(self)
return "break"
示例2: find_selection_event
def find_selection_event(self, event=None):
"""Perform find selection operation."""
SearchDialog.find_selection(self)
return "break"
示例3: find_again_event
def find_again_event(self, event=None):
"""Perform find again operation."""
SearchDialog.find_again(self)
return "break"
示例4: find_selection_event
def find_selection_event(self, event=None):
SearchDialog.find_selection(self)
return "break"
示例5: find_again_event
def find_again_event(self, event=None):
SearchDialog.find_again(self)
return "break"