Skip to content

Commit df962d6

Browse files
author
Sam Fries
committed
Implemented test_vtk_ui_button_image
1 parent 020ab4d commit df962d6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

testing/vcs/vtk_ui/Pepper.png

1.98 KB
Loading

testing/vcs/vtk_ui/test_vtk_ui_button_image.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
"""
44
import vcs.vtk_ui
55

6-
76
from vtk_ui_test import vtk_ui_test
7+
import os
88

99
class test_vtk_ui_button_image(vtk_ui_test):
1010
def do_test(self):
11-
return
11+
self.win.SetSize(80, 80)
12+
directory = os.path.dirname(__file__)
13+
image = os.path.join(directory, "Pepper.png")
14+
b = vcs.vtk_ui.Button(self.inter, image=image, left=5, top=5)
15+
b.show()
16+
self.test_file = "test_vtk_ui_button_image.png"
1217

1318
test_vtk_ui_button_image().test()

0 commit comments

Comments
 (0)