本文整理汇总了Python中idlelib.searchbase.SearchDialogBase.create_command_buttons方法的典型用法代码示例。如果您正苦于以下问题:Python SearchDialogBase.create_command_buttons方法的具体用法?Python SearchDialogBase.create_command_buttons怎么用?Python SearchDialogBase.create_command_buttons使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类idlelib.searchbase.SearchDialogBase
的用法示例。
在下文中一共展示了SearchDialogBase.create_command_buttons方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: create_command_buttons
# 需要导入模块: from idlelib.searchbase import SearchDialogBase [as 别名]
# 或者: from idlelib.searchbase.SearchDialogBase import create_command_buttons [as 别名]
def create_command_buttons(self):
"""Create base and additional command buttons.
The additional buttons are for Find, Replace,
Replace+Find, and Replace All.
"""
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, isdef=True)
self.make_button("Replace All", self.replace_all)
示例2: create_command_buttons
# 需要导入模块: from idlelib.searchbase import SearchDialogBase [as 别名]
# 或者: from idlelib.searchbase.SearchDialogBase import create_command_buttons [as 别名]
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)
示例3: create_command_buttons
# 需要导入模块: from idlelib.searchbase import SearchDialogBase [as 别名]
# 或者: from idlelib.searchbase.SearchDialogBase import create_command_buttons [as 别名]
def create_command_buttons(self):
"Create base command buttons and add button for search."
SearchDialogBase.create_command_buttons(self)
self.make_button("Search Files", self.default_command, 1)
示例4: create_command_buttons
# 需要导入模块: from idlelib.searchbase import SearchDialogBase [as 别名]
# 或者: from idlelib.searchbase.SearchDialogBase import create_command_buttons [as 别名]
def create_command_buttons(self):
SearchDialogBase.create_command_buttons(self)
self.make_button("Search Files", self.default_command, 1)