2017-03-31 45 views

回答

0

製作一個新的按鈕%在您可以加載一個位圖,並用它作爲標籤參數:

#lang racket/gui 

(define frame (new frame% [label ""])) 
(define button-icon (read-bitmap "path/to/image")) 
(define button (new button% [label button-icon] [parent frame])) 

(send frame show #t)