all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
#lang racket/gui
|
||||
|
||||
(define frame (new frame% [label "There have been no clicks yet"]))
|
||||
|
||||
(define num-clicks 0)
|
||||
(define (cb obj me)
|
||||
(set! num-clicks (add1 num-clicks))
|
||||
(send frame set-label (format "~a" num-clicks)))
|
||||
|
||||
(new button% [parent frame] [label "Click me"] [callback cb])
|
||||
(send frame show #t)
|
||||
Loading…
Add table
Add a link
Reference in a new issue