My goal is to run something any time something in the treeview is clicked on, if you have any other approaches i'm open.
Thanks
Code: Select all
import math,FreeCAD
from FreeCAD import Base
class SelObserver:
def setSelection(self,document): # Selection in ComboView
App.Console.PrintMessage(" Clicked on")
s=SelObserver()
FreeCADGui.Selection.addObserver(s) # install the function mode resident