當前位置: 首頁>>代碼示例>>Python>>正文


Python Color.header_title方法代碼示例

本文整理匯總了Python中cloudinstall.ui.utils.Color.header_title方法的典型用法代碼示例。如果您正苦於以下問題:Python Color.header_title方法的具體用法?Python Color.header_title怎麽用?Python Color.header_title使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在cloudinstall.ui.utils.Color的用法示例。


在下文中一共展示了Color.header_title方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from cloudinstall.ui.utils import Color [as 別名]
# 或者: from cloudinstall.ui.utils.Color import header_title [as 別名]
    def __init__(self):
        help_text = [
            Padding.line_break(""),
            Text("OpenStack Installer - Help \u21C5 Scroll (ESC) Close",
                 align="center"),
            Divider('-', 1, 1),
            Text("For full documentation, please refer to "
                 "https://help.ubuntu.com/lts/clouddocs/installer/"),
            Color.header_title(Text("Overview")),
            Divider('-'),
            Text("""
- 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,
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.
            """),
            Color.header_title(Text("Command Reference")),
            Divider('-'),
            Text("""
- (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.
            """),
            Color.header_title(Text("Troubleshooting")),
            Divider('-'),
            Text("""
The juju commands used to deploy the services listed are logged in
~/.cloud-install/commands.log

Note: 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.
            """)]
        w = Padding.center_79(SimpleList(help_text))
        super().__init__(w)
開發者ID:Ubuntu-Solutions-Engineering,項目名稱:openstack-installer,代碼行數:59,代碼來源:help.py


注:本文中的cloudinstall.ui.utils.Color.header_title方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。