Window Customization
By using the data-pyloid-drag-region
attribute, you can make HTML elements draggable. Below is a description of how to customize the window title bar using this attribute.
Basic Setup
First, when creating a window in main.py
, pass the frame=False
argument to remove the default frame.
In the HTML document, add the data-pyloid-drag-region
attribute to the element you want to make draggable. For example, you can add this attribute to a div
element as follows:
Example Usage
Below is an example of an HTML document that includes a draggable area using the data-pyloid-drag-region
attribute:
By using the data-pyloid-drag-region
attribute in this way, you can set the desired elements as draggable areas. This allows you to freely customize the window title bar.
Last updated