Move object ARToolKit

I want move object with keyboard by accept function but it did’t work it stick with the pattern and don’t change position that getX return same position whatever i do

from direct.showbase.ShowBase import ShowBase
from direct.task.TaskManagerGlobal import taskMgr
from panda3d.core import *
from import WebcamVideo, ARToolKit

loadPrcFileData("", "textures-power-2 none")  # the webcam feed can not be made into a power of two texture
loadPrcFileData("","auto-flip 0")  # usualy the drawn texture lags a bit behind the calculted positions. this is a try to reduce the lag.

class MyApp(ShowBase):
    def __init__(self):
    # self.disableMouse()
    self.physics = False
    option = WebcamVideo.getOption(0)
    self.tex = MovieTexture(option)
    # self.tex.setKeepRamImage(True)
    cm = CardMaker("card")
    cm.setUvRange(Point2(0, 0), Point2(1, 1))
    cm.setFrame(-1, 1, -1, 1)
    card = self.render2d.attachNewNode(cm.generate())

    # Starting ARToolkit
    self.ar2 = ARToolKit.make(, "./camera_para.dat", 1)

    self.prep = False
    taskMgr.add(self.updatePatterns, 'updatePatterns')
    self.accept('arrow_up', self.moveup)

# Changing selected object on secondary pattern
def changeObject(self):
    self.pandaActor = self.loader.loadModel("models/teapot")
    self.ar2.attachPattern("./aa.pat", self.pandaActor)

def updatePatterns(self, task):
    return task.cont

def moveup(self):
    print self.pandaActor.getX()

app = MyApp()

:smiley: :smiley: :smiley: Gclub มือถือ