添加间隔
This commit is contained in:
parent
7a4bcd6a1a
commit
363c9e023d
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue