ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> py2exe-users
py2exe-users
[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&lt;0: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Please type a number between 0 and 20' <br> 
elif x==0: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Zero' <br> 
elif x==1: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'One' <br> 
elif x==2: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Two' <br> 
elif x==3: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Three' <br> 
elif x==4: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Four' <br> 
elif x==5: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Five' <br> 
elif x==6: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Six' <br> 
elif x==7: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Seven' <br> 
elif x==8: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Eight' <br> 
elif x==9: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Nine' <br> 
elif x==10: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Ten' <br> 
elif x==11: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Eleven' <br> 
elif x==12: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Twelve' <br> 
elif x==13: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Thirteen' <br> 
elif x==14: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Fourteen' <br> 
elif x==15: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Fifteen' <br> 
elif x==16: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Sixteen' <br> 
elif x==17: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Seventeen' <br> 
elif x==18: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Eighteen' <br> 
elif x==19: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Nineteen' <br> 
elif x==20: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; print 'Twenty' <br> 
elif x&gt;20: <br> 
&nbsp; &nbsp; &nbsp; &nbsp; 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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved