#!/usr/bin/env python3 """ tests the instance of our Vala actor. I expect to see a red square on the white stage. """ import sys from gi.repository import Palelib, Clutter Clutter.init(sys.argv) stage = Clutter.Stage() stage.set_size(800, 400) stage.set_title("Blah blah") stage.connect('destroy', lambda x: Clutter.main_quit() ) # Make our Object: # Note - It does make something, but the message in the constructor does not print. Is the contructor even running? rs = Palelib.RedSquare() #print(dir(rs)) # See that it is an Actor object. stage.add_child(rs) #Force rs to appear. # Note 1 - this does not print the message in boo() to the console. I have no idea why. # Note 2 - When the app is closed, the message prints. rs.boo() """ For testing: r1 = Clutter.Rectangle() r1.set_size(50,50) r1.set_position(0,0) damnweird = Clutter.Color.new(0,0,0,255) r1.set_color( damnweird ) stage.add_child(r1) """ stage.show_all() Clutter.main()