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 )
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])
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])
def __init__(self): ListBox.__init__(self) self.addCountries()
def __init__( self ): ListBox.__init__( self ) self.setVisibleItemCount( 1 ) self.setMultipleSelect( False ) self.addItem( LOADING_TEXT ) self.setVisible( True )