Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Application

Table of contents

Create

The application object permits to register devices, processes and the main window layout.

import comet
from comet import ui

app = comet.Application("example")
app.version = "1.0"
app.title = "Example"
app.description = "An example application."

app.run()

Layout

The application object provides a main window, use property layout to assign UI elements. Provided for convenience.

app.layout = ui.Column(
    ui.Text(value="Spam"),
    ui.Button(text="Click")
)

Main window

The application object provides a main window, use property window to access it directly.

app.window.width = 100