At the time that you call MakeCellVisible the grid is still its very small default size. If you delay the call until after the frame has been shown and it has resized the grid to fill its client area then it will work as you expect. For example:
I suspect you are passing "function_to_call()", rather than
"function_to_call" -- i.e. you want to pass the function itself,
rather than the result of calling it. (many functions return None --
that's why I suspect this is the cause of your error.
-Chris
···
On Mon, Jun 4, 2012 at 10:14 AM, Robin Dunn <robin@alldunn.com> wrote:
Somewhere you are passing None to wx.CallAfter.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception