trying to understand egg-texture-cards (solved)

I trying to understand panda…but for a newbie it is difficult.

I have read all the things about egg-texture-cards
but when i put the code togheter it doesn’t work.

the code that i think should work is;

import direct.directbase.DirectStart
from direct.gui.OnscreenText import OnscreenText 
from direct.gui.DirectGui import *
from pandac.PandaModules import TextNode
egg-texture-cards -o myImage.egg -p 738,59 BGaa_logo.jpg 
model = loader.loadModel('myImage.egg') 
myTex1 = model.find('**/BGaa_logo') 
label = DirectLabel(image = myTex1)


the error is;
File “”, line 9
egg-texture-cards -o myImage.egg -p 738,59 BGaa_logo.jpg
SyntaxError: invalid syntax

**** End of process output ****

So what is going wrong…
I think the anwser (once again) is simple but i’am still going Dûh…

thanks for your patients

Yes, the answer is simple.
egg-texture-cards, as any other Panda executables, is meant to be executed offline, not during runtime. You should run it from the command prompt.