[Py2exe-users] Need a bit of TKinter help...
by Tanner Ruschman other posts by this author
Sep 19 2006 4:17PM messages near this date
Re: [Py2exe-users] Error with Python 2.5
|
Re: [Py2exe-users] Need a bit of TKinter help...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title> </title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hey Everybody!<br>
<br>
I'm trying to get help as to the use of rapyd tk software to create a
number speller, but I'm having a bit of trouble. I thought posting to
the Rapyd-tk google group would help, but apparently not!<br>
<br>
Heres what my message looked like:<br>
<table border="1" cellpadding="2" cellspacing="2" width="95%">
<tbody>
<tr>
<td valign="top"> Hey, <br>
<p> I have created a simple application with rapyd-tk that
*should* take a <br>
typed in number and turn it into a spelled out number (this is what the
<br>
final version should do anyway). Heres my problem: I have no clue how <br>
to hook up a text entry box to a variable (lets say x for this <br>
example), and have x be parsed into a spelled number. <br>
</p>
<p> Heres a stupid little command-prompt like python program I
made before <br>
to let you see kind of what I mean: <br>
</p>
<p> ***************************************************************************<wbr>***
*************************
<br>
x=int(raw_input("Please Enter An Integer Between 0 and 20: ")) <br>
if x<0: <br>
print 'Please type a number between 0 and 20' <br>
elif x==0: <br>
print 'Zero' <br>
elif x==1: <br>
print 'One' <br>
elif x==2: <br>
print 'Two' <br>
elif x==3: <br>
print 'Three' <br>
elif x==4: <br>
print 'Four' <br>
elif x==5: <br>
print 'Five' <br>
elif x==6: <br>
print 'Six' <br>
elif x==7: <br>
print 'Seven' <br>
elif x==8: <br>
print 'Eight' <br>
elif x==9: <br>
print 'Nine' <br>
elif x==10: <br>
print 'Ten' <br>
elif x==11: <br>
print 'Eleven' <br>
elif x==12: <br>
print 'Twelve' <br>
elif x==13: <br>
print 'Thirteen' <br>
elif x==14: <br>
print 'Fourteen' <br>
elif x==15: <br>
print 'Fifteen' <br>
elif x==16: <br>
print 'Sixteen' <br>
elif x==17: <br>
print 'Seventeen' <br>
elif x==18: <br>
print 'Eighteen' <br>
elif x==19: <br>
print 'Nineteen' <br>
elif x==20: <br>
print 'Twenty' <br>
elif x>20: <br>
print 'Please type a number between 0 and 20' <br>
</p>
<p> raw_input("Press ENTER To Close Window...") <br>
***************************************************************************<wbr> ************
***********
<br>
This was something that I wanted to give a gui, where someone could <br>
give input through means of a text box, and after clicking a spell <br>
button, the number they entered would be converted into spelling. For <br>
my gui, i have created an interface as seen at <a target="_blank"
href="http://tinyurl.com/r4sby"> http://tinyurl.com/r4sby</a> <br>
</p>
<p> So, heres what I need help with: <br>
1) How do I assign the entry in the text box to be a variable? <br>
</p>
<p> 2) How do I parse the variable (or determine what the user
typed, and <br>
convert that into text like the program I created before) <br>
</p>
<p> 3) Off-topic, but is there any way that I can prevent the
program from <br>
showing the python command prompt from showing while the program is <br>
running? <br>
</p>
<p> Thanks for any help, I really appreciate it! <br>
</p>
FlyingIsFun1217 </td>
</tr>
</tbody>
</table>
<br>
I wish that I could have gotten some help from the people who work more
with this, but that didn't work, so I'm asking everybody on this
mailing list: Can you help me with this issue?<br>
<br>
thanks!<br>
Tanner<br>
</body>
</html>
Thread:
Tanner Ruschman
Jim-On-Linux
Jim-On-Linux
|