Skip to content

Commit 7431d39

Browse files
committed
Move logo to assets
1 parent c355f71 commit 7431d39

File tree

11 files changed

+54
-9
lines changed

11 files changed

+54
-9
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ include webview/js/**/*.js
44
exclude docs/**/*
55
exclude examples/**/*
66
exclude tests/**/*
7-
exclude logo/**/*
7+
exclude assets/**/*
88
exclude appveyor.yml
99
exclude interop/**/*

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p align='center'><img src='logo/logo.png' width=480 alt='pywebview logo'/></p>
1+
<p align='center'><img src='assets/logo.png' width=480 alt='pywebview logo'/></p>
22

33
<p align='center'><a href="https://opencollective.com/pywebview" alt="Financial Contributors on Open Collective"><img src="https://opencollective.com/pywebview/all/badge.svg?label=financial+contributors" /></a> <img src="https://badge.fury.io/py/pywebview.svg" alt="PyPI version" /> <img src="https://img.shields.io/pypi/dm/pywebview" alt="PyPI downloads" /> <a href="https://ci.appveyor.com/project/r0x0r/pywebview"><img src="https://ci.appveyor.com/api/projects/status/nu6mbhvbq03wudxd/branch/master?svg=true" alt="Build status" /></a>
44

@@ -35,10 +35,8 @@ Explore _pywebview_ further by reading [documentation](https://pywebview.flowrl.
3535

3636
## Sponsors
3737

38+
[![TestMu AI Sponsor](/assets/testmuai.svg)](https://www.testmu.ai/?utm_source=pywebview&utm_medium=sponsor)
3839

39-
<a href="https://www.lambdatest.com/?utm_source=pywebview&utm_medium=sponsor" target="_blank">
40-
<img src="https://www.lambdatest.com/blue-logo.png" style="vertical-align: middle; padding: 1rem 0 8rem 0;" width="250" height="45" />
41-
</a><br/><br/>
4240

4341
## Code Contributors
4442

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

assets/testmuai.svg

Lines changed: 33 additions & 0 deletions
Loading

examples/icon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
if __name__ == '__main__':
77
window = webview.create_window('Set window icon', 'https://pywebview.flowrl.com/hello')
8-
webview.start(icon='../logo/logo.png')
8+
webview.start(icon='../assets/logo.png')

examples/move_window.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,25 @@
77

88
def move(window):
99
print(f'Window coordinates are ({window.x}, {window.y})')
10+
print(f'Window dimensions are ({window.width}x{window.height})')
11+
12+
# Get the primary screen to calculate relative position
13+
screens = webview.screens
14+
if screens:
15+
primary_screen = screens[0]
16+
print(f'Primary screen: {primary_screen.width}x{primary_screen.height}')
17+
18+
# Move to bottom-right area of screen (with some padding)
19+
new_x = primary_screen.width - window.width - 100
20+
new_y = primary_screen.height - window.height - 100
21+
else:
22+
# Fallback to absolute coordinates
23+
new_x, new_y = 500, 500
1024

1125
sleep(2)
12-
window.move(200, 200)
26+
window.move(new_x, new_y)
1327
sleep(1)
14-
print(f'Window coordinates are ({window.x}, {window.y})')
28+
print(f'Window coordinates are now ({window.x}, {window.y})')
1529

1630

1731
if __name__ == '__main__':

0 commit comments

Comments
 (0)