0
books = {
        'Contact':['Carl Sagan', '2'],
        'End of Faith':['Sam Harris', '7'],
        'on Mars':['Patrick Moore', '1'],

        }

based on dictionary above, how can i get Modales Qdialog box that should have 3 column containing like below

           DialogBox

BookName_Label: BookAutor_Label : Quantity_QSpinBox

BookName_Label: BookAutor_Label : Quantity_QSpinBox

BookName_Label: BookAutor_Label : Quantity_QSpinBox

            Ok Cancel
2
Contributors
1
Reply
9
Views
4 Years
Discussion Span
Last Post by bnn678
0

Very ineffiecent way of doing it would be to add all of the info to one list, then make a for or while loop saying that every 3rd item is a new line.

for x in range (len(list)):

    while counter != 3:
        counter = counter + 1
        print (list[secondCounter])

    print ("")

    count = 0

My guess is that there is a command for that specific process

Edited by bnn678

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.