LogoPyloid
Guides

DevTools Settings

Pyloid allows you to configure developer tools in two ways. You can specify them as parameters when creating a window, or use a method to set them after the window has been created. When developer tools are activated, you can open them using the F12 key.

1. Setting as a Parameter When Creating a Window

You can set the developer tools using the dev_tools parameter when creating a window. The default value for this parameter is False.

window = app.create_window(
    title="Pylon Browser",
    dev_tools=True  # Activate developer tools (default is False)
)

2. Setting Using a Method

You can set the developer tools using the set_dev_tools() method after creating a window.

window = app.create_window(
    title="Pyloid Browser",
)
window.set_dev_tools(True)  # Activate developer tools

This method is useful when you want to dynamically change the state of the developer tools based on conditions after creating the window.

Accessing Developer Tools via F12 Key

Setting dev_tools=True allows users to open the developer tools by pressing the F12 key. This is the same method as used in web browsers and provides a familiar way for developers to access the tools.