本文整理汇总了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"