aboutsummaryrefslogtreecommitdiff
path: root/tests/gui/windows.rkt
diff options
context:
space:
mode:
authoriskm <iskm@users.noreply.github.com>2017-04-09 22:49:46 -0400
committerGitHub <noreply@github.com>2017-04-09 22:49:46 -0400
commit385c4f4664ae8157e62f118f15d4c670a4c1356b (patch)
treedcb37e29867a6294e8a321ea535e6e9ecd03c296 /tests/gui/windows.rkt
parent4890b61f08698a84e261f162dc2acd404bcc6b6b (diff)
parent44c715c55c239495da8f780276866c0041f04139 (diff)
Merge pull request #1 from oplS17projects/mango0.2
Mango
Diffstat (limited to 'tests/gui/windows.rkt')
-rw-r--r--tests/gui/windows.rkt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/gui/windows.rkt b/tests/gui/windows.rkt
new file mode 100644
index 0000000..4524673
--- /dev/null
+++ b/tests/gui/windows.rkt
@@ -0,0 +1,9 @@
+#lang racket
+
+(require racket/gui/base)
+
+;; Create a new window via the frame class
+(define frame (new frame% [label "Example"]))
+
+;; Show frame(window) by calling it show method
+(send frame show #t) ;; you call object methods via send