class Timeline

Attributes

list[RW]

Public Class Methods

new(window, timeline_name) click to toggle source
# File lib/legion/ui.rb, line 5
def initialize(window, timeline_name)
        @timeline                             = TkFrame.new(window)
        @label                                        = TkLabel.new(@timeline, 'text' => timeline_name, 'width' => 50)
        @list                                 = TkListbox.new(@timeline, 'height' => 25, 'selectmode' => 'multiple')
end

Public Instance Methods

label_pack() click to toggle source
# File lib/legion/ui.rb, line 15
def label_pack
        @label.pack('side' => 'top', 'fill' => 'both')
end
list_pack() click to toggle source
# File lib/legion/ui.rb, line 19
def list_pack
        @list.pack('fill' => 'both')
end
set() click to toggle source
# File lib/legion/ui.rb, line 23
def set
    self.timeline_pack
    self.label_pack
            self.list_pack
end
timeline_pack() click to toggle source
# File lib/legion/ui.rb, line 11
def timeline_pack
        @timeline.pack('side' => 'left', 'fill' => 'both')
end