Exception: Teek::UI::ClosedBuilderError
- Inherits:
-
StandardError
- Object
- StandardError
- Teek::UI::ClosedBuilderError
- Defined in:
- lib/teek/ui/errors.rb
Overview
Raised when a DSL build method (ui.button, ui.panel, ui.raw,
ui.var, ...) is called after the build has already realized - the
tree is only ever walked into Tk once, at realize, so anything
appended to it afterward would just silently never show up. Use
Session#add instead, which builds and realizes a subtree into the
already-running app immediately.
Instance Method Summary collapse
-
#initialize(msg = "the build has already realized - use session.add(parent_name) { } to add widgets to an already-running app instead") ⇒ ClosedBuilderError
constructor
A new instance of ClosedBuilderError.
Constructor Details
#initialize(msg = "the build has already realized - use session.add(parent_name) { } to add widgets to an already-running app instead") ⇒ ClosedBuilderError
Returns a new instance of ClosedBuilderError.
36 37 38 |
# File 'lib/teek/ui/errors.rb', line 36 def initialize(msg = "the build has already realized - use session.add(parent_name) { } to add widgets to an already-running app instead") super end |