<html><head><style type="text/css">body{font:12px Arial;margin:3px;overflow-y:auto;overflow-x:auto}p{margin:0px;}blockquote, ol, ul{margin-top:0px;margin-bottom:0px;}</style></head>

<body><div style="display: block; font-family: Arial; font-size: 12px;">i'm trying to acces the value of a number button.  but it tel me the following:<br>
<br>
Traceback (most recent call last):                <br>
File "surface generator", line 42, in bevent    <br>
File "surface generator", line 53, in generate<br>
AttributeError: var<br>
<br>
like it don't exist. i use it in this part of the code:<br>
<br>
def generate():<br>
    global width<br>
    global height<br>
    print width.var  #debug1<br>
    print width  #debug2<br>
    vert_line = range(width)<br>
<br>
the debug1 show nothing and the debug2 show the integer.<br>
but the range() take it as a Button object without .var. and with var
it give the error meesage on the top of this message.  how can i
get the value to work in the code?<br>
</br><p style="margin-top:11px;padding-top:3px;background-image: url(http://mail.lycos.co.uk/Images/Mail/_content/dot.gif);background-repeat: repeat-x;background-position: 0px 0px;"><img src="http://premiummail.caramail.lycos.fr/Images/Mail/_icons/premium.gif"> C est le moment de dynamiser votre boîte mail en <a href="http://secure.caramail.lycos.fr/services/signin/mail.jsp" target="_blank"><font color="#CC0000"><b>cliquant ici</b></font></a> !</div></body></html>