W. Ahmed W. Ahmed - 4 years ago 312
Python Question

Python graphics 'int' object has no attribute 'clone'

from graphics import *

textEntry = Entry(150, 15)


I'm trying to learn Python Graphics (Zelle), and i'm trying to figure out how to create a text entry box where the user can input text that I can then take to determine some things, for example, asking the user what dimensions they want on the graphics window.

It's telling me

AttributeError: 'int' object has no attribute 'clone'


With little to no background on python graphics I have no idea what this means, can anybody help me out with this and show me how to make a text entry box sort of thing in graphics to get input from a user?

Answer Source

Entry takes a center point and a width as parameters, your first parameter is not a point, it's an int.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download