aboutsummaryrefslogtreecommitdiff
path: root/tests/gui/windows.rkt
diff options
context:
space:
mode:
authorDouglas-Richardson <Doug116654@gmail.com>2017-04-19 18:03:24 -0400
committerDouglas-Richardson <Doug116654@gmail.com>2017-04-19 18:03:24 -0400
commit5e3bdbeeb4cf32a8a937f3e2f018eae4f4dda286 (patch)
treefce846dfbfc7b7633e5aeb20a504891c224ececf /tests/gui/windows.rkt
parentfe734a889397a9b0bbc55a997049d44166f18eae (diff)
parent95f7e7443363f21cda927b1446271d5008c439d6 (diff)
Merge remote-tracking branch 'refs/remotes/origin/master' into grape
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