Skip to content

Commit e6f0f22

Browse files
committed
Update entry.py
1 parent 2c55e8b commit e6f0f22

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

src/entry.py

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
#entry.py
1+
## Entry.py - Process Monitor
22

33

4-
## Entry.py - ColorPicker
54

6-
7-
__version__ = 1.5
5+
__version__ = 1.6
86
PLUGIN_ID = "tp.plugin.process_monitor"
97
PLUGIN_NAME = "Process_Monitor"
108

11-
# Basic plugin metadata
9+
10+
1211
TP_PLUGIN_INFO = {
1312
'sdk': 6,
1413
'version': int(float(__version__) * 100), # TP only recognizes integer version numberstopo
@@ -27,7 +26,7 @@
2726

2827

2928
TP_PLUGIN_SETTINGS = {
30-
#'example': {
29+
#'Color Names': {
3130
# 'name': "Color Names - Can be changed via plugin actions",
3231
# 'type': "text",
3332
# 'default': "Basic",
@@ -36,7 +35,6 @@
3635
#}
3736
}
3837

39-
# This example only uses one Category for actions/etc., but multiple categories are supported also.
4038
TP_PLUGIN_CATEGORIES = {
4139
"main": {
4240
'id': PLUGIN_ID + ".main",
@@ -50,7 +48,8 @@
5048

5149
}
5250

53-
# Action(s) which this plugin supports.
51+
52+
5453
TP_PLUGIN_ACTIONS = {
5554
'Process Monitor': {
5655
'category': "main",
@@ -115,38 +114,15 @@
115114
}
116115
}
117116

118-
# Plugin Event(s).
119-
TP_PLUGIN_EVENTS = {}
120-
121-
122-
123-
124-
125-
126117

127118

119+
TP_PLUGIN_EVENTS = {}
128120

129121

130122

131123

132124

133125

134-
from PyQt5 import QtWidgets, QtGui, QtCore
135-
from PyQt5.QtGui import QPixmap
136126

137-
app = QtWidgets.QApplication([])
138-
window = QtWidgets.QMainWindow()
139127

140-
view = QtWidgets.QGraphicsView(window)
141-
scene = QtWidgets.QGraphicsScene()
142-
pixmap = QPixmap("C:\\Users\\dbcoo\\Downloads\\night-light.png")
143-
scene.addPixmap(pixmap)
144-
view.setScene(scene)
145128

146-
window.setWindowFlags(QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint | QtCore.Qt.WindowType.WindowTransparentForInput)
147-
window.setAttribute(QtCore.Qt.WA_TranslucentBackground)
148-
#window.setAttribute(QtCore.Qt.WA_TransparentForMouseEvents)
149-
window.setWindowOpacity(0.5)
150-
window.setCentralWidget(view)
151-
window.showFullScreen()
152-
app.exec_()

0 commit comments

Comments
 (0)