Skip to content

Commit 020ab4d

Browse files
author
Sam Fries
committed
Implemented font test
1 parent 5bf4d3c commit 020ab4d

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
"""
22
Test button font/size
33
"""
4-
import vcs.vtk_ui
5-
64

5+
import vcs, os
76
from vtk_ui_test import vtk_ui_test
87

98
class test_vtk_ui_button_font(vtk_ui_test):
109
def do_test(self):
11-
return
12-
10+
self.win.SetSize(100, 80)
11+
fonts = ["Arial", "Courier", os.path.join(os.environ["HOME"], vcs.getdotdirectory()[0], "HelvMono.ttf")]
12+
sizes = [8, 12, 16]
13+
for ind, font in enumerate(fonts):
14+
b = vcs.vtk_ui.Button(self.inter, label="Font Test", font=font, top=ind * 25, size=sizes[ind])
15+
b.show()
16+
self.test_file = "test_vtk_ui_button_font.png"
1317
test_vtk_ui_button_font().test()

0 commit comments

Comments
 (0)