pywebview icon indicating copy to clipboard operation
pywebview copied to clipboard

[Feature Request] Regarding `Frameless=True`

Open xceyds opened this issue 1 month ago • 1 comments

Currently, enabling Frameless=True leads to several issues, including but not limited to:

  • Inability to resize the window
  • Disappearance of the minimize animation
  • Failure to restore the window by clicking the taskbar icon after minimizing

However, WinForms + WebView2 can achieve a nearly perfect frameless window experience. You can refer to this repository for a working example:
👉 https://github.com/XuanchenLin/WinFormedge

This library demonstrates how to build modern, borderless WinForms applications using HTML, CSS, and JavaScript via Microsoft WebView2—complete with features like draggable title bars (appRegion: "drag" in CSS/JS) and proper window management.

I’m wondering: Can pywebview achieve similar behavior on Windows?

I also have a working demo based on .NET Framework 4.7.2 that runs smoothly on Windows 10.

Image

xceyds avatar Nov 19 '25 03:11 xceyds

Sorry, my English is not good

I am also troubled by this issue
I used win32gui to fix the issue of failure to restore the window by clicking the taskbar icon after minimizing

import win32gui
import win32con

style = win32gui.GetWindowLong(hwnd, win32con.GWL_STYLE)
style = style | win32con.WS_MINIMIZEBOX
win32gui.SetWindowLong(hwnd, win32con.GWL_STYLE, style)

However, pywebview does not seem to provide an API for easily obtaining window handles
I have been trying for a long time but have not been able to fix the issue of Disappointment of the minimize animation

AEBC08 avatar Dec 06 '25 04:12 AEBC08