blob: 02bce78281da373a141e89e1b4788d9a7766d28c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import unittest
import sys
from PySide import QtGui
from PySide import QtCore
from helper import TimedQApplication
class TestFontDialog(TimedQApplication):
def testGetFont(self):
QtGui.QFontDialog.getFont()
def testGetFontQDialog(self):
QtGui.QFontDialog.getFont(QtGui.QFont("FreeSans",10))
def testGetFontQDialogQString(self):
QtGui.QFontDialog.getFont(QtGui.QFont("FreeSans",10), None, "Select font")
if __name__ == '__main__':
unittest.main()
|