This is a minimal example of using DCharts and Tkinter together.
Threads are avoided to prevent Tkinter from choking and dying a horrible death.

1. stateChartTest_MDL.py contains a DCharts model created in AToM3.
2. stateChartTest.des contains the generated DES DCharts description.
3. stateChartTest.py was build in SCC using this command: scc.py -l tkinter stateChartTest.des
4. stateChartTestrun.py was then hand-coded to run the DCharts generated code (and pass the DChart code an instance of Tkinter for its polling loop!). 

NOTE: Polling is only used for timed behaviour. Anything else, such as when you create an event and send it to the DChart is done synchronously. However, if one event generates another event, the first event is completed before the newly generated one is processed. 
 