r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.7k stars 552 forks source link

can't resize a frameless window #1173

Closed ibrahemesam closed 1 year ago

ibrahemesam commented 1 year ago
import webview
webview.create_window('Hello world', 'https://fast.com', frameless=True)
webview.start()

OS: Linux - Manjaro KDE Python: v3.10.4 display server: X11 WM: openbox

r0x0r commented 1 year ago

This is how frameless windows are. Resize border is part of the frame.

ibrahemesam commented 1 year ago

I know. but, for some reason, it works in Electron

const electron = require("electron");
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;

let mainWindow = null;
const createWindow = () => {
  mainWindow = new BrowserWindow({
    frame: false,
  });
  mainWindow.loadURL("https://fast.com");
};

app.on("window-all-closed", () => {
  if (process.platform !== "darwin") {
    app.quit();
  }
});

app.on("ready", createWindow);
ibrahemesam commented 1 year ago

Ok, here is my solution

it may not be the best, but it works !

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ibrahemesam commented 1 year ago

Ok, here is my solution

it may not be the best, but it works !

what is your opinion ?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

LazyChun commented 10 hours ago

This is how frameless windows are. Resize border is part of the frame.

We want a Resize border useable frameless. or a frame without title bar . We don't want the default title bar .It's too difficult to change the style or add custom widgets into it .