Browse Source

feat: new logo

main
少轻狂 2 years ago
parent
commit
d47c833b70
No known key found for this signature in database GPG Key ID: 80E176093D33A9AB
4 changed files with 8 additions and 3 deletions
  1. +8
    -3
      app/main.py
  2. BIN
      public/Snipaste_2022-12-01_22-59-42.png
  3. BIN
      public/logo.ico
  4. BIN
      public/logo.png

+ 8
- 3
app/main.py View File

@@ -13,7 +13,8 @@ from PIL import Image
import threading
import time


import requests
from io import BytesIO



@@ -54,9 +55,13 @@ def WebViewApp(port,dev=False):
webview.start(debug=DEBUG, http_server=True) # 启动窗口
timer = threading.Timer(0.25, detect) # 在回调函数中再次启动定时器
timer.start() # 启动定时器
image = Image.open("C:/Users/16775/Pictures/head.jpg")
response = requests.get('http://docs.marlene.top/demo/model/logo.png')
response = response.content
BytesIOObj = BytesIO()
BytesIOObj.write(response)
image = Image.open(BytesIOObj)
menu = (item('打开主页面', action), item('退出', exitProgram))
icon = pystray.Icon("name", image, "title", menu)
icon = pystray.Icon("name", image, "EMC", menu)
icon.run()



BIN
public/Snipaste_2022-12-01_22-59-42.png View File

Before After
Width: 640  |  Height: 480  |  Size: 73 kB

BIN
public/logo.ico View File

Before After

BIN
public/logo.png View File

Before After
Width: 128  |  Height: 128  |  Size: 5.1 kB

Loading…
Cancel
Save