# -*- coding: utf-8 -*-
from PyQt5 import QtWidgets as QtGui
from PyQt5 import QtCore
from PyQt5.QtGui import *
import os
import sys
import subprocess
from multiprocessing import Process
class Tray_(QtGui.QLabel):
def __init__(self, parent=None):
QtGui.QLabel.__init__(self, parent)
self.setWindowTitle("Tray!")
self.setAcceptDrops(True)
self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
self.setAttribute(QtCore.Qt.WA_TranslucentBackground)
self.setWindowFlags(QtCore.Qt.FramelessWindowHint | QtCore.Qt.Tool)
self.setAttribute(QtCore.Qt.WA_TranslucentBackground);
self.setWindowOpacity(1)
self._image=QtGui.QLabel()
self._pic=QPixmap('timg.png')
self._image.setPixmap(self._pic)
self._image.setMask(self._pic.mask())
layout = QtGui.QVBoxLayout()
layout.addWidget(self._image,4)
self.setLayout(layout)
self._image.