Keyframes showing up, selectable

This commit is contained in:
Skyler Lehmkuhl
2012-01-05 15:22:02 -05:00
parent 6d81c8e953
commit f8391687a5
2 changed files with 11 additions and 3 deletions
+2 -1
View File
@@ -31,6 +31,7 @@ def onLoadFrames(self):
def onClickFrame(self, x, y):
print x, int(x/16)
root.descendItem().activeframe = int(x/16)
MainWindow.stage.draw()
def onMouseDownGroup(self, x, y):
if svlgui.MODE in [" ", "s"]:
if self.hitTest(x, y):
@@ -112,7 +113,7 @@ def create_sc(root):
def run_file(self=None):
global root
print "RUNNING"
#open("../Desktop/test.sc", "w").write(create_sc(root))
open("/Users/skyler/Desktop/test.sc", "w").write(create_sc(root))
def box(x, y, width, height, fill=None):