Module: Teek::UI::PaneRealize Private

Defined in:
lib/teek/ui/widget_types/pane.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Adds a freshly created :pane's own frame to the enclosing panedwindow, with whatever #pane stashed as pane_weight: (if any). ttk::panedwindow add is the pane's whole placement - unlike every other container, a pane's frame is never pack/grid-managed on its own (see :pane's own arranged: false below). Registered as :pane's own post_create:.

Class Method Summary collapse

Class Method Details

.post_create(app, node, path, parent_path) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
20
21
# File 'lib/teek/ui/widget_types/pane.rb', line 17

def self.post_create(app, node, path, parent_path)
  weight = node.opts[:pane_weight]
  opts = weight.nil? ? {} : { weight: weight }
  app.command(parent_path, :add, path, **opts)
end