def test(): """Standalone test""" import sys from PyQt4.QtGui import QApplication # from Orange.classification.tree import TreeLearner from Orange.regression.tree import TreeLearner a = QApplication(sys.argv) ow = OWTreeGraph() # data = Table("iris") data = Table("housing") clf = TreeLearner()(data) clf.instances = data ow.ctree(clf) ow.show() ow.raise_() a.exec_() ow.saveSettings()