0

Input

How can i write a code that prompts the user to input a number,text or anything but the prompt to be displayed in the popup screen in python? Because now only asks for input, but one if doesn't know the question how to answer? Im refering like the prompt command in java script if i recall corectly.

8th Feb 2017, 2:44 PM
Istvan Fazakas
Istvan Fazakas - avatar
3 Answers
+ 4
There'is not equivalent to prompt(), alert() and confirm() of javascript, as they are provided by browsers, through their GUI... All you can do, is to write an application with a GUI framework/module ( as Tkinter, Kivy, Qt... ): some may provide this kind of windows, but you can anyway design any graphic user interface ( GUI ) instead of text console/terminal interface ( CLI -- command line interface ) ^^
8th Feb 2017, 3:43 PM
visph
visph - avatar
+ 3
Not really: I didn't practice it, and have others priorities actually :( ( Personaly I have try a very little few Kivy and have got a look on some others... a few more Kivy, because it's cross-platform -- compatible -- with android -- and relatively close from his gui layout logic -- so, if I need to dive into a GUI framework, it would more probably be this one... or another one wich will be born by then ;) )
8th Feb 2017, 4:15 PM
visph
visph - avatar
0
@visph please i wanna learn TKinter can you help?
8th Feb 2017, 4:03 PM
Prince Kelvin
Prince Kelvin - avatar