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 >> python-tutor
python-tutor
[Tutor] Help Entry !!!
by Cesar Garcia other posts by this author
Apr 18 2006 11:21AM messages near this date
Re: [Tutor] Version of a .pyc file | [Tutor] creating a tab delim file
Hi !!!
  Friends, i nedd process Data Entry in python
  Example
   
  Entry = 20
  Result = 20*10
   
  This Result in Windows (Tkinter)
  How do you do Think !!!!!!!
   
  Regards
  Cesar
  Exmaple
  from Tkinter import *
  class MyDialog:
      def __init__(self, parent):
        top = self.top = Toplevel(parent)
        Label(top, text="Valor").pack()
        self.e = Entry(top)
        self.e.pack(padx=5)
        b = Button(top, text="OK", command=self.ok)
        b.pack(pady=5)
      def ok(self):
        print "value is", self.e.get()
        self.top.destroy()
  root = Tk()
root.update()
d = MyDialog(root)
root.wait_window(d.top)

		
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Thread:
Cesar Garcia
Srinivas Iyyer

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