the widget() method should be used to display the flowchart in a window rather than the ctrlWidget().