A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
17
Task/Hello-world-Graphical/E/hello-world-graphical.e
Normal file
17
Task/Hello-world-Graphical/E/hello-world-graphical.e
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
def <widget> := <swt:widgets.*>
|
||||
def SWT := <swt:makeSWT>
|
||||
|
||||
def frame := <widget:makeShell>(currentDisplay)
|
||||
frame.setText("Rosetta Code")
|
||||
frame.setBounds(30, 30, 230, 60)
|
||||
frame.addDisposeListener(def _ { to widgetDisposed(event) {
|
||||
interp.continueAtTop()
|
||||
}})
|
||||
|
||||
def label := <widget:makeLabel>(frame, SWT.getLEFT())
|
||||
label.setText("Goodbye, World!")
|
||||
swtGrid`$frame: $label`
|
||||
|
||||
frame.open()
|
||||
|
||||
interp.blockAtTop()
|
||||
Loading…
Add table
Add a link
Reference in a new issue