Пример #1
0
 def __init__( self ):
     ListBox.__init__( self )
     self.setVisibleItemCount( 1 )
     self.setMultipleSelect( False )
     for type in ['Last Day', 'Last Week', 'Last Month']:
         self.addItem( type )
     self.setVisible( True )
Пример #2
0
 def __init__(self, labelObjectPairs):
     ListBox.__init__(self)
     self.labelObjectPairs = labelObjectPairs
     self.setVisibleItemCount(1); # makes it a drop-down list
     # add each label as an item on the drop-down list
     for i in range(len(labelObjectPairs)):
         self.addItem( labelObjectPairs[i][LABEL_COL])
Пример #3
0
 def __init__(self, labelObjectPairs):
     ListBox.__init__(self)
     self.labelObjectPairs = labelObjectPairs
     self.setVisibleItemCount(1)
     # makes it a drop-down list
     # add each label as an item on the drop-down list
     for i in range(len(labelObjectPairs)):
         self.addItem(labelObjectPairs[i][LABEL_COL])
Пример #4
0
 def __init__(self):
     ListBox.__init__(self)
     self.addCountries()
Пример #5
0
 def __init__( self ):
     ListBox.__init__( self )
     self.setVisibleItemCount( 1 )
     self.setMultipleSelect( False )
     self.addItem( LOADING_TEXT )
     self.setVisible( True )
Пример #6
0
 def __init__(self):
     ListBox.__init__(self)
     self.addCountries()