Files
python_tools/updata/scheme_edit.py
2023-10-29 22:06:45 +08:00

23 lines
483 B
Python

from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
import json
import sys
import os
class TaskBox(QWidget):
def __init__(self,parent:QWidget=None,items:list=None,x:int=0,y:int=0):
QWidget.__init__(self,parent)
self.setMouseTracking(True)
self.setWindowFlags(Qt.WindowType.FramelessWindowHint|Qt.WindowType.NoDropShadowWindowHint|Qt.WindowType.Popup)
self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose)