[PyQt] Function to open window and return user input

Hans-Peter Jansen hpj at urpla.net
Sun Jan 22 15:27:36 GMT 2012


On Friday 20 January 2012, 20:38:33 Christopher Evans wrote:
> QInput is designed to get a single input from a user.
>
> In my case, we are making a complex remapping dialog that takes two
> ordered lists as input, allows the users to change the order, then on
> dialog close, it should return the two re-ordered lists.

That's called a modal dialog. Create it, exec_ it (look up 
QDialog::exec()), process data after close, and be done.

Pete


More information about the PyQt mailing list