Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Inputbox with win32api? (http://www.velocityreviews.com/forums/t318943-re-inputbox-with-win32api.html)

Bob Gailer 06-27-2003 08:25 PM

Re: Inputbox with win32api?
 
At 12:44 PM 6/27/2003 -0700, Anthony_Barker wrote:

>Is there a simple way of throwing up a simple Inputbox with win32 api
>in python?
>
>I could use tk
>data=tkSimpleDialog.askstring( title="Input",prompt="Email Address?")
>
>but that adds 700K to the package when I distribute it to non python
>users as it forces me to include tk. (Using MacMillian installer).


There is win32all with its version of raw_input(). I don't know how much
overhead that adds to a package.

Bob Gailer
bgailer@alum.rpi.edu
303 442 2625


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.492 / Virus Database: 291 - Release Date: 6/24/2003


Anthony_Barker 07-04-2003 05:57 PM

Re: Inputbox with win32api?
 
After a bit of hunting I found
import pywin.mfc.dialog
InternetAddress = pywin.mfc.dialog.GetSimpleInput("Email Address?")

Thanks,

Anthony
http://xminc.com/linux



Bob Gailer <bgailer@alum.rpi.edu> wrote in message news:<mailman.1056745609.15271.python-list@python.org>...
> At 12:44 PM 6/27/2003 -0700, Anthony_Barker wrote:
>
> >Is there a simple way of throwing up a simple Inputbox with win32 api
> >in python?
> >
> >I could use tk
> >data=tkSimpleDialog.askstring( title="Input",prompt="Email Address?")
> >
> >but that adds 700K to the package when I distribute it to non python
> >users as it forces me to include tk. (Using MacMillian installer).



All times are GMT. The time now is 06:21 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57