Created
April 23, 2018 04:36
-
-
Save shrdlu68/96a5430c68a643e540d10576399b004c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defpackage :my-first-app | |
;; Imports the appropriate CLIM library | |
(:use :clim :clim-lisp) | |
;; The package will only export a function to run the app | |
(:export run-my-first-app)) | |
;; Good practice | |
(in-package :my-first-app) | |
;; Definition of the structure of a minimum app | |
(define-application-frame my-first-clim-app () | |
();; This app only has 1 pane | |
(:panes | |
(my-interactor :interactor | |
:height 400 | |
:width 600)) | |
;; :layouts section describes how the pane is positioned inside | |
;; the application frame. | |
;; With 1 pane, no point getting complicated, Default is fine... | |
(:layouts | |
(my-default my-interactor))) | |
;; Now that the structure of the app is defined, need a function | |
;; to launch an instance of this app. (The user could run | |
;; several instances of the same app.) | |
(defun run-my-first-app () | |
(run-frame-top-level (make-application-frame ’my-first-clim-app))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment