class TkComponent::Builder::PanedWindow

Public Instance Methods

built() click to toggle source
# File lib/tk_component/builder/tk_item.rb, line 445
def built
  # We need to synchronize children items to the panned window
  added_panes = self.native_item.winfo_children - self.native_item.panes
  removed_panes = self.native_item.panes - self.native_item.winfo_children
  added_panes.each do |child|
    self.native_item.add(child, weight: 1)
  end
  removed_panes.each do |child|
    self.native_item.forget(child)
  end
end
create_native_item(parent_native_item, name, options = {}, grid = {}, event_handlers = []) click to toggle source
# File lib/tk_component/builder/tk_item.rb, line 441
def create_native_item(parent_native_item, name, options = {}, grid = {}, event_handlers = [])
  native_item_class(parent_native_item, name, options, grid, event_handlers).new(parent_native_item, orient: orient)
end
orient() click to toggle source
# File lib/tk_component/builder/tk_item.rb, line 457
def orient
  raise "#{self.class.to_s} shouldn't be instantiated directly. Use 'H' or 'V' subclasses"
end