Thank you Matthew, that did the trick. The button shows up now
without wiping out the whole Analyze/Adjust dialog. My issue now
(sorry) is I can't get the tool that I want to run from the button to run...
What I am trying to do it add a button to popululate our FzLevel
grids in the Analyze/Adjust Step
Here are the varDict entries in ForecastBuilderConfig:
varDict["Parms to Load in
Analyze/Adjust"].extend(["FzLevel"])
varDict["Additional Buttons in Analyze/Adjust
Step"].append(["Populate
FzLevel",["self._FBUtility","callSmartToolFB",["FzLevel","FzLevelCopy","var|gridDict","var|varDict"],]])
Here ar the gridDict entries for FzLevel:
gridDef["Freezing Level", "gridName"] =
"FzLevel"
gridDef["Freezing Level",
"primaryGuidance"] = "CONSAll"
gridDef["Freezing Level", "maxTime"] = 240
gridDef["Freezing Level", "minTime"] = 0
Here is the error that I get -
ForecastBuilder
Exception in Tkinter callback
Traceback
(most recent call last):
File
"/opt/rh/rh-python38/root/usr/lib64/python3.8/tkinter/__init__.py",
line 1892, in __call__
return self.func(*args)
File
"/home/kirby.cook/caveData/etc/site/SEW/gfe/userPython/procedures/ForecastBuilder.py",
line 2600, in <lambda>
self["command"] =
lambda: self.commandWrapper(varDict, FBcommand)
File
"/home/kirby.cook/caveData/etc/site/SEW/gfe/userPython/procedures/ForecastBuilder.py",
line 2614, in commandWrapper
error_message = command()
File
"/home/kirby.cook/caveData/etc/site/SEW/gfe/userPython/procedures/ForecastBuilder.py",
line 2503, in <lambda>
FBcommand=lambda arg=action:
self.runFunctionsFromButton(arg),
File
"/home/kirby.cook/caveData/etc/site/SEW/gfe/userPython/procedures/ForecastBuilder.py",
line 6677, in runFunctionsFromButton
error_code =
func(*argList, **kwargList)
File
"/home/kirby.cook/caveData/etc/site/SEW/gfe/userPython/utilities/ForecastBuilderUtility.py",
line 29016, in callSmartToolFB
trList =
gridDict[gridID]["trList"]
KeyError: 'FzLevel'
It seems like is dying when ForecastBuilderUtility trying to pull the
trList for FzLevel... am I missing a gridDef entry?
Thank again for all of the help.
Kirby