Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/User-input-Graphical/Rascal/user-input-graphical.rascal
Normal file
14
Task/User-input-Graphical/Rascal/user-input-graphical.rascal
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import vis::Render;
|
||||
import vis::Figure;
|
||||
|
||||
public void UserInput2(){
|
||||
integer = "";
|
||||
string = "";
|
||||
row1 = [text("Enter a string "),
|
||||
textfield("",void(str s){string = s;}),
|
||||
text(str(){return " This input box will give a string by definition.\n You entered <string>";})];
|
||||
row2 = [text("Enter 75000"),
|
||||
textfield("",void(str v){integer = v;}),
|
||||
text(str(){return " <integer == "75000" ? "Correct" : "Wrong">";})];
|
||||
render(grid([row1, row2]));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue