Re: [PyQt] How to link a dict and a QComboBox

2008-09-05 Thread David Boddie
On Thu Sep 4 19:25:24 BST 2008, Sven Grunewaldt wrote: > I'm facing a problem with data from a SQL database and my GUI. > > Let's assume I have the following key => value dict: > sqlresult = {1: 20080909, 4: 202020, 5: 'bla', 6: 'blubb'} > > How do I link it to a QComboBox? You can add values for

[PyQt] How to link a dict and a QComboBox

2008-09-04 Thread Sven Grunewaldt
I'm facing a problem with data from a SQL database and my GUI. Let's assume I have the following key => value dict: sqlresult = {1: 20080909, 4: 202020, 5: 'bla', 6: 'blubb'} How do I link it to a QComboBox? In HTML this would be the standard procedure: 20080909 202020 As far