Skip to content

Instantly share code, notes, and snippets.

@mlamina
Created February 13, 2013 13:55
Show Gist options
  • Save mlamina/4944759 to your computer and use it in GitHub Desktop.
Save mlamina/4944759 to your computer and use it in GitHub Desktop.
Example usage of UITheme builder in Pharo
open
| builder content |
builder := UITheme builder.
content := builder
newColumn:
{(builder newText:('Packages of {1}' format: {project})).
(builder
newListFor: self
list: #dependencies
selected: #selectedDependency
changeSelected: #selectedDependency:
help: 'projects').
(builder
newRow:
{(builder
newButtonFor: self
action: #save
label: '> Push to git repository'
help: '')})}.
(content openInWindowLabeled: ('Cellist - Project ')) extent: 400 @ 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment