(self)
init user interaction and callbacks
init user interaction and callbacks
init user interaction and callbacks
def init_interaction(self):
        """ init user interaction and callbacks """
        self.interaction = Interaction()
        self.interaction.register_callback('pick', self.pick)
        self.interaction.register_callback('move', self.move)
        self.interaction.register_callback('place', self.place)
        self.interaction.register_callback('rotate_color', self.rotate_color)
        self.interaction.register_callback('scale', self.scale)
def init_interaction ( self ) : self . interaction = Interaction ( ) self . interaction . register_callback ( 'pick' , self . pick ) self . interaction . register_callback ( 'move' , self . move ) self . interaction . register_callback ( 'place' , self . place ) self . interaction . register_callback ( 'rotate_color' , self . rotate_color ) self . interaction . register_callback ( 'scale' , self . scale )