PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/gtk/examples/images/images.e

http://github.com/tybor/Liberty
Specman e | 28 lines | 21 code | 6 blank | 1 comment | 0 complexity | c069f8a56326f9ca585ffaecc61589a7 MD5 | raw file
 1class IMAGES
 2
 3inherit 
 4	GTK_MAIN
 5
 6creation 
 7	make
 8
 9feature
10	
11	image: GTK_IMAGE
12
13	window : GTK_WINDOW
14	
15	make is
16			-- Make
17		do
18			initialize_gtk							
19			create window.make
20			window.set_title ("Images demo")
21			window.set_default_size (200,200)
22			window.midscreen
23			create image.from_file("./test.png")
24			window.add (image)
25			window.show_all
26			gtk_main
27		end
28end