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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.