The mod you pointed me to wasn't on my machine so I had to go out and download the whole monster 700 MB for that one .py.
Anyways, i'm trying to use the DeleteButton function and (strangely) couldn't find any example of its use within any of the scripts in DS9FX. I threw the function into my script (with credits to its creators, of course) and used some guestimating and come up with calling the function as:
DeleteButton(pButton.GetName(), "Tactical")
The resulting error is:
File ".\Scripts\Custom\QBautostart\TheButton.py", line 577, in NewPlayerShip
DeleteButton(pButton.GetName(), "Tactical")
TypeError: STButton_GetName requires exactly 2 arguments; 1 given
Honestly, beyond knowing it's a "TypeError" type error i'm unsure as to the remedy. So I tried to cast the button object so it'd be able to use the .GetName() function and see if that did the trick:
pButton = App.STButton_Cast(pButton)
DeleteButton(pButton.GetName(), "Tactical")
It just left me with the same error :roll