Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
use GTK::Simple;
|
||||
use GTK::Simple::App;
|
||||
|
||||
my GTK::Simple::App $app .= new(title => 'Simple Windowed Application');
|
||||
|
||||
$app.size-request(350, 100);
|
||||
|
||||
$app.set-content(
|
||||
GTK::Simple::VBox.new(
|
||||
my $label = GTK::Simple::Label.new( text => 'There have been no clicks yet'),
|
||||
my $button = GTK::Simple::Button.new(label => 'click me'),
|
||||
)
|
||||
);
|
||||
|
||||
$app.border-width = 40;
|
||||
|
||||
$button.clicked.tap: {
|
||||
state $clicks += 1;
|
||||
$label.text = "There has been $clicks click{ 's' if $clicks != 1 }";
|
||||
}
|
||||
|
||||
$app.run;
|
||||
Loading…
Add table
Add a link
Reference in a new issue