Skip to content

Instantly share code, notes, and snippets.

@shrdlu68
Created April 23, 2018 04:36
Show Gist options
  • Save shrdlu68/96a5430c68a643e540d10576399b004c to your computer and use it in GitHub Desktop.
Save shrdlu68/96a5430c68a643e540d10576399b004c to your computer and use it in GitHub Desktop.
(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