GUI, Python2.7- how to build a loop with a button + textbox

Thomas Jollans tjol at tjol.eu
Wed Sep 12 04:25:19 EDT 2018


On 12/09/18 04:51, alon.najman at gmail.com wrote:
> hi,
>
> on python 2.7
Please use Python 3.
>   how do I build a loop with a button + textbox?
There are many GUI libraries. Tkinter is part of the standard library 
and appears to be well-documented. 
https://docs.python.org/3/library/tkinter.html

A good (and normally less ugly) alternative is Qt, using either PyQt5 or 
PySide2 for Python bindings.

>
> for example:
>
> I want the user to enter is name and then press "ok" button, I want his name to be printed 5 times.
>
>
> thanks! :) you people are amazing it's almost better then stackoverflow :D




More information about the Python-list mailing list