[Dev] Issue with GroupBox and their collapsed state

Hello guys, here’s 2 tickets send by my developer working on a Deadline internal plugin :

I’m writing a tool using scriptDialog class, and I need to get the “collapsed” state of a Groupbox (closed or not)

I encounter some issues with GroupBox items :

  • their only accessible fields (using python vars() function) are the ‘+’ and ‘-’ QPixmaps
  • when I try to access their collapsed state using ScriptControl.ScriptControl.GetCollapsed (self, name), the following exception is thrown :

c:\FranticRegressions\DL_Main\git_git.thinkbox.corp.amazon.com_deadline_deadline\Submodules\ThinkboxUI\ThinkboxUI\Controls\Scripting\ScriptControl.py", line 71, in GetCollapsed
NameError: global name ‘groupBoxPairs’ is not defined

Note that the function SetCollapsed() works perfectly : only GetCollapsed() throws the exception.

I’m currently running Deadline 10.0.16.6

Thanks!
-p-

Hmm. The accessibility of the QPixmaps follows the same as the other thread in that the usual PyQt operations should work if I’m not mistaken.

For the exception there, good catch. I just checked the code and it looks like we’re missing the “self.” on that property. I’ll log that one now.