Sha256: 02499403ddd09bcc61d6991739548d04fcf5ff0bb810cd442d8f242d955df27c
Contents?: true
Size: 715 Bytes
Versions: 52
Compression:
Stored size: 715 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 TextfieldWidget < Qt::LineEdit include Widget def initialize (parent_layout, num_characters = 12, default_text = '') super() setText(default_text.to_s) setMaxLength(num_characters.to_i) parent_layout.addWidget(self) if parent_layout end end end # module Cosmos
Version data entries
52 entries across 52 versions & 1 rubygems