Reputation: 23
I've been using pywebview lately to develop desktop applications with Flask. I wanted to use the frameless window feature and create my own title bar but the problem is I have no idea how I would go about making that frameless window draggable.
The documentation says it can be moved around by dragging any point but that is not the case for me.
Any ideas?
Upvotes: 2
Views: 1812
Reputation: 1
Drag area
pywebview window can be moved by dragging any element with the
pywebview-drag-region
class name. This is useful, for example, in frameless mode when you would like to implement a custom caption bar. The magic class name can be overriden by re-assigning thewebview.DRAG_REGION_SELECTOR constant
.
Upvotes: 0
Reputation: 11
Use the class pywebview-drag-region
in the element you want the window to get dragged from.
Upvotes: 0