首次添加 API 接口

This commit is contained in:
gfdgd xi 2022-05-15 20:14:02 +08:00
parent 677ff4c16b
commit c9a3db2f37
4 changed files with 69 additions and 0 deletions

BIN
defult-old.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

25
defult.svg Executable file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,10 @@
#!/bin/bash
file="/data/uengine/data/data/data/com.tencent.mm/shared_prefs/"
inotifywait -mq -e modify $file | while read event
do
if [[ "$event" == *notify_sync_pref.xml ]];then
notify-send -i '/home/tensor/Documents/notify/mm.jpg' ‘主银’ ‘你有微信消息哦~~’
fi
done

34
uengine-app-setting.py Normal file
View File

@ -0,0 +1,34 @@
#!/usr/bin/env python3
from modulefinder import packagePathMap
import sys
import ttkthemes
import tkinter as tk
import tkinter.ttk as ttk
def main():
window = tk.Tk()
ttk.Label(window, text="程序包名:").grid(row=0, column=0)
packageName = ttk.Combobox(window)
packageName.grid(row=0, column=1)
settingFrame = ttk.Frame(window)
readButton = ttk.Button(window, text="确定").grid(row=0, column=2)
settingFrame.grid(row=1, column=0, columnspan=3)
hScreenSize = ttk.Labelframe(settingFrame, text="竖屏默认分辨率")
vScreenSize = ttk.Labelframe(settingFrame, text="横屏默认分辨率")
hScreenSizeWidthValue = ttk.Entry(hScreenSize)
hScreenSizeHeightValue = ttk.Entry(hScreenSize)
hScreenSizeWidthValue.grid(row=0, column=0)
ttk.Label(hScreenSize, text="×").grid(row=0, column=1)
hScreenSizeHeightValue.grid(row=0, column=2)
vScreenSizeWidthValue = ttk.Entry(vScreenSize)
vScreenSizeHeightValue = ttk.Entry(vScreenSize)
vScreenSizeWidthValue.grid(row=0, column=0)
ttk.Label(vScreenSize, text="×").grid(row=0, column=1)
vScreenSizeHeightValue.grid(row=0, column=2)
hScreenSize.grid(row=0, column=0)
vScreenSize.grid(row=1, column=0)
window.mainloop()
return 0
if __name__ == "__main__":
sys.exit(main())