添加间隔

This commit is contained in:
liyp 2024-01-07 17:28:32 +08:00
parent 7a4bcd6a1a
commit 363c9e023d

View file

@ -3,7 +3,7 @@ import platform
import requests import requests
from PyQt5.QtWidgets import QApplication, QMainWindow, QSystemTrayIcon, QMenu, QAction,QActionGroup from PyQt5.QtWidgets import QApplication, QMainWindow, QSystemTrayIcon, QMenu, QAction,QActionGroup
from PyQt5.QtGui import QIcon from PyQt5.QtGui import QIcon
from PyQt5.QtCore import QTimer,pyqtSignal,QThread from PyQt5.QtCore import pyqtSignal,QThread
import json import json
import aiohttp import aiohttp
import asyncio import asyncio
@ -86,8 +86,12 @@ class TrayIconExample(QMainWindow):
context_menu.addMenu(proxy_mode) context_menu.addMenu(proxy_mode)
context_menu.addAction(self.copy_env) context_menu.addAction(self.copy_env)
context_menu.addMenu(self.more_menu) context_menu.addMenu(self.more_menu)
context_menu.addSeparator()
context_menu.addAction(self.inuse_memory) context_menu.addAction(self.inuse_memory)
context_menu.addActions([self.upload_speed,self.download_speed,exit_action]) context_menu.addActions([self.upload_speed,self.download_speed])
context_menu.addSeparator()
context_menu.addAction(exit_action)
proxy_mode.addActions([self.direct_mode,self.rule_mode,self.global_mode]) proxy_mode.addActions([self.direct_mode,self.rule_mode,self.global_mode])
self.copy_env.triggered.connect(self.copy_env_var) self.copy_env.triggered.connect(self.copy_env_var)