If all you want is to draw in a window somehow (like logo's turtle graphics), then maybe you can make a simple Qt server application that has a window, and the student's write client applications that issue drawing commands over IPC (qtdbus).