Sha256: 36cbf301b043428f00512a4debadfb4b7d4eef65e81624b7f8832df9b352c7a9
Contents?: true
Size: 776 Bytes
Versions: 28
Compression:
Stored size: 776 Bytes
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt require 'cosmos/tools/tlm_viewer/widgets/widget' module Cosmos class ComboboxWidget < Qt::ComboBox include Widget def initialize(parent_layout, *combobox_items) super() addItems(combobox_items) self.maxVisibleItems = combobox_items.length > 6 ? 6 : combobox_items.length parent_layout.addWidget(self) if parent_layout end def text self.currentText end end end # module Cosmos
Version data entries
28 entries across 28 versions & 1 rubygems