Hi,
I’m wondering if it’s possible to parent a panel to a custom PyQt5 widget? Specifically, I’ve been trying to get an instance of the Task panel into my widget. I can’t find anything in the docs or on the forums here. Anything relating to this would be very helpful
What I am trying to do is to filter the Task panel inside my custom widget to show only Rendering tasks. I might just end up creating a QListWidget to replicate the task panel using what I can get from Deadline.Scripting.RepositoryUtils
Below I have some dummy code that i’ve been using to test.
from Deadline.Scripting import MonitorUtils, RepositoryUtils
from PyQt5 import QtWidgets, QtCore, QtGui
class CustomWindow(QtWidgets.QDialog):
_instance = None
@classmethod
def show_window(cls):
if not cls._instance:
cls._instance = cls()
cls._instance.show()
cls._instance.raise_()
return cls._instance
def __init__(self):
super(CustomWindow, self).__init__()
self.setWindowTitle('Custom Window')
self.setGeometry(100, 100, 800, 600)
self.hi = QtWidgets.QLabel("HI")
self.layout = QtWidgets.QVBoxLayout(self)
self.layout.addWidget(self.hi)
ui = CustomWindow.show_window()
Thanks in advanced !
-Robbie