本文整理汇总了Python中cola.widgets.browse.BrowseDialog.browse方法的典型用法代码示例。如果您正苦于以下问题:Python BrowseDialog.browse方法的具体用法?Python BrowseDialog.browse怎么用?Python BrowseDialog.browse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cola.widgets.browse.BrowseDialog
的用法示例。
在下文中一共展示了BrowseDialog.browse方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: browse_other
# 需要导入模块: from cola.widgets.browse import BrowseDialog [as 别名]
# 或者: from cola.widgets.browse.BrowseDialog import browse [as 别名]
def browse_other():
"""Prompt for a branch and inspect content at that point in time."""
# Prompt for a branch to browse
branch = choose_ref(N_('Browse Commits...'), N_('Browse'))
if not branch:
return
BrowseDialog.browse(branch)
示例2: browse_other
# 需要导入模块: from cola.widgets.browse import BrowseDialog [as 别名]
# 或者: from cola.widgets.browse.BrowseDialog import browse [as 别名]
def browse_other():
"""Prompt for a branch and inspect content at that point in time."""
# Prompt for a branch to browse
branch = choose_from_combo('Browse Revision...', gitcmds.all_refs())
if not branch:
return
BrowseDialog.browse(branch)
示例3: browse_current
# 需要导入模块: from cola.widgets.browse import BrowseDialog [as 别名]
# 或者: from cola.widgets.browse.BrowseDialog import browse [as 别名]
def browse_current():
"""Launch the 'Browse Current Branch' dialog."""
branch = gitcmds.current_branch()
BrowseDialog.browse(branch)
示例4: save_blob_dialog
# 需要导入模块: from cola.widgets.browse import BrowseDialog [as 别名]
# 或者: from cola.widgets.browse.BrowseDialog import browse [as 别名]
def save_blob_dialog(self):
sha1 = self.selected_sha1()
if sha1 is None:
return
return BrowseDialog.browse(sha1)
示例5: save_blob_dialog
# 需要导入模块: from cola.widgets.browse import BrowseDialog [as 别名]
# 或者: from cola.widgets.browse.BrowseDialog import browse [as 别名]
def save_blob_dialog(self):
return BrowseDialog.browse(self._clicked_item.commit.sha1)