def test_set_scalars(self):
        mesh = tvtk.PolyData()
        sc = tvtk.FloatArray()
        # If this does not segfault, we are OK.
        mesh.point_data.scalars = sc
Check for any events (e.g. key-press or mouse movement) without waiting.
dataset/ETHPy150Open enthought/mayavi/tvtk/tests/test_tvtk.py/TestTVTK.test_set_scalars--crossover with--dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/screen.py/Screen.get_event