golly.getselrect() - bug or feature?
golly.getselrect() - bug or feature?
When I call golly.getselrect(), it returns the bounding box of live cells. But I'd like to get the real selection, because it matters. If it is a feature, is there a workaround for what I'm up to?
Ivan Fomichev
Re: golly.getselrect() - bug or feature?
Strange, when I call g.getrect(), I get the appropriate bounding box, and when I call g.getselrect(), I get the proper selection. I'm running 64-bit version of Golly 2.6 on 64-bit Windows 7 computer.
Here is very straightforward test script:
Draw a random pattern, select an arbitrary region, run the code, and anyone who runs the code should know if their functions work the right way. I'm guessing it may be platform-specific, but I don't know for sure.
Here is very straightforward test script:
Code: Select all
import golly as g
r = g.getrect()
sr = g.getselrect()
g.show("Bounding box: %s Selection: %s" % (r, sr))
Re: golly.getselrect() - bug or feature?
Okay, I think that was my fault. I think I called g.getrect() instead of g.getselrect()
Ivan Fomichev