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


Python Color.dialog方法代码示例

本文整理汇总了Python中cloudinstall.ui.utils.Color.dialog方法的典型用法代码示例。如果您正苦于以下问题:Python Color.dialog方法的具体用法?Python Color.dialog怎么用?Python Color.dialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cloudinstall.ui.utils.Color的用法示例。


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

示例1: __init__

# 需要导入模块: from cloudinstall.ui.utils import Color [as 别名]
# 或者: from cloudinstall.ui.utils.Color import dialog [as 别名]
    def __init__(self):
        self.text = []
        self.HELP_TEXT = [
            """For full documentation, please refer to
http://ubuntu-cloud-installer.readthedocs.org/en/latest/

            """,
            ('header_title', "Overview"),
            """

- Header

The header shows a few common command keys for quick reference.

- Main Table

The main table has a row for each Juju service in the current
environment. It is updated every ten seconds. Each row will contain
a status icon indicator, agent state, ip address, machine type, and
hardware specifications.

There may also be an additional status field with information in the event
of provisioning errors or additional status notifications.

- Footer

The footer displays a status message, and the URLs for the two web
dashboards installed, one for OpenStack Horizon and the other for the
Juju GUI.

            """,
            ('header_title', "Command Reference"),
            """

- (R/F5) refreshes the displayed state immediately

- (A/a/F6) brings up a dialog box for adding additional units. This is how
  to add compute units or a storage service. This dialog takes care of
  launching required dependencies, so for example, launching swift
  here will add a swift-proxy service and enough swift-storage nodes
  to meet the replica criterion (currently 3).

- '(H/h/?)' displays this help screen.

- 'q' quits.

            """,
            ('header_title', "Troubleshooting"),
            """

The juju commands used to deploy the services listed are logged in
~/.cloud-install/commands.log

* In a multi-install, MAAS may be unable to find machines that match
the default constraints set for one of the services the installer
deploys. This will be shown in the table under the service's heading,
along with detail about what those constraints were.

            """,
            ('header_title', "End of Help Screen")]
        w = self._create_text()
        w = Color.dialog(w)
        super().__init__(w)
开发者ID:laboshinl,项目名称:openstack-installer,代码行数:65,代码来源:helpscreen.py


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