python-eel/Eel

Unable to set the window size

开放

#489 创建于 2021年5月31日

 (4 条评论) (0 个反应) (0 位负责人)Python (570 个派生)batch import
help wanted

仓库指标

星标
 (5,980 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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))

贡献者指南