Skip to main content

Window

Attributes related to Nighty's pywebview window object.

Required background: The Nighty GUI is fully powered by the Python library pywebview. This means the entire interface is built with HTML, CSS, and JavaScript, giving it all the capabilities of a standard website, while also integrating a Python backend.

tip

Devtools can help a lot when developing custom looks for Nighty. Go to the Debug - Window section to learn how to open it.

window

2.0.0

nightylib.ui.window: webview.Window

The window object allows you to control Nighty’s window and appearance.

tip

For more details, see pywebview's window documentation, which also explains how to inject custom JavaScript.

Example: move the entire interface 50 pixels on the x axis
from nightylib.ui import window
window.move(window.x + 50, window.y)