From: Kevin A. <al...@se...> - 2001-08-27 04:25:24
|
>David LeBlanc > > I installed PyCard under my Python21 directory and all the samples i've > tried do work more or less (get to that in a minute) except that > I don't see > how to get the turtle example to run any of it's scrpts. (.txt files). > running (for example) "python wxturtlechaos.py" causes nothing to happen - > no errors, nothing at all. (Later: AH! python test_turtle.py!! I ran this > before but I guess I was focused on the shell and not the app window - got > the scripts running - wow!) Sounds like you figured it out. The turtle uses other modules which are in the same directory, so I don't know how to get around the problem of knowing which file to run other than to put it in the readme.txt. Suggestions anyone? > The only real glitches i've noted so far is that buttons and text > tend to be > scrunched, especially noticable on the DbBrowser sample. (Speaking of the > DbBrowser sample, it works at times and at other times does not. It also > does not deal well with mysql not running when it's started - croaks.) Can you provide a JPEG screenshot? If you simply mean that the default font, which on NT should be 8 point, then that is the default and normal and yes it will look small depending on the size of your monitor and the resolution you run at. > All the samples report memory leaks, but that's probably not news in a > prototype running samples. Here is a sample from running test_turtle.py: > > 20:33:20: There were memory leaks. > 20:33:20: ----- Memory dump ----- > 20:33:20: wxFont at $1321AC8, size 12 > 20:33:20: wxClientDC at $13685B8, size 280 > 20:33:20: wxPen at $136BBC8, size 12 > 20:33:20: wxPen at $136DB28, size 12 > 20:33:20: > 20:33:20: > 20:33:20: ----- Memory statistics ----- > 20:33:20: 2 objects of class wxPen, total size 24 > 20:33:20: 1 objects of class wxClientDC, total size 280 > 20:33:20: 1 objects of class wxFont, total size 12 > 20:33:20: > 20:33:20: Number of object items: 4 > 20:33:20: Number of non-object items: 0 > 20:33:20: Total allocated size: 316 Yes, the one time I ran with the debug wxPython I noticed that. Actually until a few weeks ago PythonCard wouldn't even run with the debug wxPython, but sadly I had to find that out by myself late at night after doing a release ;-) I have no clue whether these memory leaks are real leaks that need to be fixed (nor do I know where to start looking) or something to expect with code like wxPython which is wrapping C++ classes. Robin, Neil, somebody? ka |