From: Tim B. <td...@mc...> - 2002-03-07 15:20:26
|
Hello all, The following questions will probably, to some of you, be simple and straight forward. Unfortunately this is a very new area to me and my collegues and we could do with some help. Question 1) =========== We have made a demo app that has a panel and on that a wxNotebook and two buttons. One button adds a page and creates a grid on it, the other deletes the selcted page and thus removes the grid with it. The problem I have with the above senario is memory. I can create as many pages as I wish and thus as many grids but when I delete/remove the pages the grids are still floating around in memory even though they're not displayed and after a time the application acts like a sponge and my system gets slower and slower. I have tried deleting the pointer I've got using the 'del' command but this doesn't seem to work so I looked at the wxGrid deconstructor. Unfortunately although I have used deconstructors very breifly in C++ I lack the knowledge or the syntax to do this in python. Therefore, help!? Question 2) =========== Is it possible to print a wxGrid to a standard printer? If so some demo code would be appreciated so I can perform this function. I would be really grateful for help in this matter as we have tried everything I can no longer continue to develope our app. Regards Tim Bailey td...@mc...;td-...@bl... |