[visionegg] gui windows and matplotlib

Hi everyone,

I'm new to visionegg and python, so I'm hoping these two problems are just down to me missing something obvious.

1) I'm writing an app for windows that uses vision egg to display some stims and then matplotlib to graph some data. The matplotlib graph looks just fine, but if I click in the graph window's title bar, it brings the whole application down (giving me an error in pythonw.exe).

A test program that just does the matplotlib graphing on its own works just fine, so I'm thinking that the problem has something to do with vision egg managing a stimulus window at the same time that matplotlib (Tkinter?) is managing the graph window. Since Vision Egg uses guis, presumably there is a way round this? (although I haven't found any demos that have guis running at the same time as stimuli).

Has anyone had a similar problem, or can suggest what I'm doing wrong? Does this have anything to do with the VISIONEGG_TKINTER_OK setting in the configuration file?

2) Secondly, is there a way to programatically change the window focus to the vision egg display? I have a console window that takes some text input, but later I use pygame to process key events -- but this only works if vision egg has focus. At the moment I have to click in the display window, but is there a better way?

Any advice appreciated!

Rob

========================

Dr. Rob Harris,
Research Fellow,
School of Life Sciences,
University of Sussex,
Falmer, BN1 9QC

======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: