File tree Expand file tree Collapse file tree 1 file changed +8
-32
lines changed Expand file tree Collapse file tree 1 file changed +8
-32
lines changed Original file line number Diff line number Diff line change 1- #entry .py
1+ ## Entry .py - Process Monitor
22
33
4- ## Entry.py - ColorPicker
54
6-
7- __version__ = 1.5
5+ __version__ = 1.6
86PLUGIN_ID = "tp.plugin.process_monitor"
97PLUGIN_NAME = "Process_Monitor"
108
11- # Basic plugin metadata
9+
10+
1211TP_PLUGIN_INFO = {
1312 'sdk' : 6 ,
1413 'version' : int (float (__version__ ) * 100 ), # TP only recognizes integer version numberstopo
2726
2827
2928TP_PLUGIN_SETTINGS = {
30- #'example ': {
29+ #'Color Names ': {
3130 # 'name': "Color Names - Can be changed via plugin actions",
3231 # 'type': "text",
3332 # 'default': "Basic",
3635 #}
3736}
3837
39- # This example only uses one Category for actions/etc., but multiple categories are supported also.
4038TP_PLUGIN_CATEGORIES = {
4139 "main" : {
4240 'id' : PLUGIN_ID + ".main" ,
5048
5149}
5250
53- # Action(s) which this plugin supports.
51+
52+
5453TP_PLUGIN_ACTIONS = {
5554 'Process Monitor' : {
5655 'category' : "main" ,
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_ ()
You can’t perform that action at this time.
0 commit comments