import ORBit, bonobo
orb = ORBit.CORBA.ORB_init()
ORBit.load_typelib('Accessibility')

import Accessibility as a
import Accessibility__POA as ap


class StateSetImpl(ap.StateSet):
    def add(self, state):
        print ">> adding state ", state
        

ss = StateSetImpl()

poa = orb.resolve_initial_references("RootPOA")
poa._get_the_POAManager().activate()

ss._this().add(a.STATE_VISIBLE)
