python-eel/Eel

Unable to set the window size

Open

#489 geöffnet am 31. Mai 2021

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (570 Forks)batch import
help wanted

Repository-Metriken

Stars
 (5.980 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

The browser window for the application always opens in full-screen mode despite specifying the size and position. How do I get around this and set the appropriate size.

Code snippet(s) Here is some code that can be easily used to reproduce the problem or understand what I need help with. Python file:

import eel

eel.init('web')

eel.start('index.html', size=(1280, 720))

HTML:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Game layout test</title>
</head>
<body bgcolor="red">
    <h1>Test</h1>
</body>
</html>

Desktop:

  • OS: Windows 10
  • Browser: Chrome (Version 91.0.4472.77 (Official Build) (64-bit))

Contributor Guide