当前位置: 首页>>代码示例>>Python>>正文


Python browse.BrowseDialog类代码示例

本文整理汇总了Python中cola.widgets.browse.BrowseDialog的典型用法代码示例。如果您正苦于以下问题:Python BrowseDialog类的具体用法?Python BrowseDialog怎么用?Python BrowseDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了BrowseDialog类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: browse_other

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)
开发者ID:kensholiu,项目名称:git-cola,代码行数:7,代码来源:guicmds.py

示例2: browse_other

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)
开发者ID:dcfrancisco,项目名称:git-cola,代码行数:7,代码来源:guicmds.py

示例3: diff_branch

def diff_branch():
    """Launches a diff against a branch."""
    branch = choose_from_combo('Select Branch, Tag, or Commit-ish',
                               ['HEAD^'] +
                               cola.model().all_branches() +
                               cola.model().tags)
    if not branch:
        return
    zfiles_str = git.instance().diff(branch, name_only=True,
                                     no_color=True,
                                     z=True).rstrip('\0')
    files = [core.decode(f) for f in zfiles_str.split('\0')]

    filename = BrowseDialog.select_file_from_list(files)
    if not filename:
        return
    cola.notifier().broadcast(signals.branch_mode, branch, filename)
开发者ID:dcfrancisco,项目名称:git-cola,代码行数:17,代码来源:guicmds.py

示例4: diff_branch

def diff_branch():
    """Launches a diff against a branch."""
    branch = choose_from_combo('Select Branch, Tag, or Commit-ish',
                               ['HEAD^'] +
                               cola.model().all_branches() +
                               cola.model().tags)
    if not branch:
        return
    files = gitcmds.diff_filenames(branch)
    if not files:
        qtutils.critical('No Differences',
                         'No differences found for "%s"' % branch)
        return
    filename = BrowseDialog.select_file_from_list(files)
    if not filename:
        return
    cola.notifier().broadcast(signals.branch_mode, branch, filename)
开发者ID:mwh,项目名称:git-cola,代码行数:17,代码来源:guicmds.py

示例5: browse_current

def browse_current():
    """Launch the 'Browse Current Branch' dialog."""
    branch = gitcmds.current_branch()
    BrowseDialog.browse(branch)
开发者ID:kensholiu,项目名称:git-cola,代码行数:4,代码来源:guicmds.py

示例6: save_blob_dialog

 def save_blob_dialog(self):
     sha1 = self.selected_sha1()
     if sha1 is None:
         return
     return BrowseDialog.browse(sha1)
开发者ID:B-Rich,项目名称:git-cola,代码行数:5,代码来源:dag.py

示例7: save_blob_dialog

def save_blob_dialog(self):
    return BrowseDialog.browse(self._clicked_item.commit.sha1)
开发者ID:dcfrancisco,项目名称:git-cola,代码行数:2,代码来源:view.py

示例8: compare_file

def compare_file():
    """Launches a dialog for comparing revisions touching a file path"""
    filename = BrowseDialog.select_file('HEAD')
    if not filename:
        return
    compare(filename)
开发者ID:mwh,项目名称:git-cola,代码行数:6,代码来源:compare.py


注:本文中的cola.widgets.browse.BrowseDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。