openKylin show picture use swift GUI
Swift Forums
openKylin show picture use swift GUI
openKylin show picture use swift GUI git clone https://gitcode.com/liyuansi2222/helloworld-swift-gui.git cd helloworld-swift-gui swift build swift run the result go out . the important two line are this: let img: UnsafeMutablePointer<GtkWidget> = gtk_picture_new () gtk_picture_set_filename(GTK_PICTURE(img), "swift.jpeg") gtk_box_append(asBox(box), img) oneline read the picture file. oneline show the picture
0 comments
No comments yet.