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.64k stars 539 forks source link

There are 2 title's in webview.create_window #1464

Open cleesmith opened 1 week ago

cleesmith commented 1 week ago

Specification

Description

This all started coding a python app with NiceGUI's native mode (native=True) and noticing that only my macbook was showing the title twice.

All laptops are using python 3.10.14 and this code:

import webview
if __name__ == '__main__':
    webview.create_window('New Title #2', 'https://pywebview.flowrl.com/hello')

... i see 2 titles in webview window on a Macbook Pro macOS Sonoma 14.6, but this does NOT happen on Windows 10 or a Macbook Air

macbook pro macOS Sonoma 14.6: whomever:~$ defaults read /System/Library/Frameworks/WebKit.framework/Versions/A/Resources/version.plist CFBundleVersion 19618.3.11.11.5

macbook air macOS Sonoma 14.2: whomever:~$ defaults read /System/Library/Frameworks/WebKit.framework/Versions/A/Resources/version.plist CFBundleVersion 19617.1.17.11.9

... all of them are using: pip show pywebview

Name: pywebview Version: 5.2 Summary: Build GUI for your Python program with JavaScript, HTML, and CSS Home-page: Author: Author-email: Roman Sirokov roman@flowrl.com License: BSD 3-Clause License . . .
Location: /opt/miniconda3/envs/clsProxy/lib/python3.10/site-packages Requires: bottle, proxy-tools, pyobjc-core, pyobjc-framework-Cocoa, pyobjc-framework-Quartz, pyobjc-framework-security, pyobjc-framework-WebKit, typing-extensions Required-by:

r0x0r commented 1 week ago

What do you mean by two titles? Care to provide a screenshot?

cleesmith commented 1 week ago

Oops, I forgot the screenshot. webview_2_titles