Enhanced input dialog
Chris Angelico
rosuav at gmail.com
Fri Apr 19 17:26:44 EDT 2019
On Sat, Apr 20, 2019 at 7:16 AM <srfpala at gmail.com> wrote:
>
> Running Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32.
> Under Win7 using Pyscripter 3.6.0.0 x86
> Somehow integer1 = input( "Enter first integer:\n" ) # read string
> when executed presents a nice input dialog box instead of a
> command line prompt.
> It provides a text box, OK and Exit buttons,
> and I did not import wxPython.
> The print command responds as expected.
> How is this possible ?
> What is providing this enhanced functionality ?
Since input() is just a function, you should be able to explore it.
Start by looking at input.__module__ and see what it was imported from
- that'll most likely give you a good clue.
ChrisA
More information about the Python-list
mailing list