Fix default test settings, fixed #26.
parent
79a9825c26
commit
a9be9b96e7
25
test/ui.py
25
test/ui.py
|
@ -43,11 +43,12 @@ home = os.path.dirname(tests_dir)
|
||||||
parser = argparse.ArgumentParser(description='Configurations for the Qt5 application.')
|
parser = argparse.ArgumentParser(description='Configurations for the Qt5 application.')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--widget',
|
'--widget',
|
||||||
help='''widget to test. can provide `all` to test all'''
|
help='widget to test. can provide `all` to test all',
|
||||||
|
default='all'
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--stylesheet',
|
'--stylesheet',
|
||||||
help='''stylesheet name''',
|
help='stylesheet name',
|
||||||
default='native'
|
default='native'
|
||||||
)
|
)
|
||||||
# Know working styles include:
|
# Know working styles include:
|
||||||
|
@ -55,54 +56,54 @@ parser.add_argument(
|
||||||
# 2. Windows
|
# 2. Windows
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--style',
|
'--style',
|
||||||
help='''application style, which is different than the stylesheet''',
|
help='application style, which is different than the stylesheet',
|
||||||
default='native'
|
default='native'
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--font-size',
|
'--font-size',
|
||||||
help='''font size for the application''',
|
help='font size for the application',
|
||||||
type=float,
|
type=float,
|
||||||
default=-1
|
default=-1
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--font-family',
|
'--font-family',
|
||||||
help='''the font family'''
|
help='the font family'
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--width',
|
'--width',
|
||||||
help='''the window width''',
|
help='the window width',
|
||||||
type=int,
|
type=int,
|
||||||
default=1068,
|
default=1068,
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--height',
|
'--height',
|
||||||
help='''the window height''',
|
help='the window height',
|
||||||
type=int,
|
type=int,
|
||||||
default=824,
|
default=824,
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--alignment',
|
'--alignment',
|
||||||
help='''the layout alignment''',
|
help='the layout alignment',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--compress',
|
'--compress',
|
||||||
help='''add stretch on both sides''',
|
help='add stretch on both sides',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--scale',
|
'--scale',
|
||||||
help='''scale factor for the UI''',
|
help='scale factor for the UI',
|
||||||
type=float,
|
type=float,
|
||||||
default=1,
|
default=1,
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--pyqt6',
|
'--pyqt6',
|
||||||
help='''use PyQt6 rather than PyQt5.''',
|
help='use PyQt6 rather than PyQt5.',
|
||||||
action='store_true'
|
action='store_true'
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--use-x11',
|
'--use-x11',
|
||||||
help='''force the use of x11 on compatible systems.''',
|
help='force the use of x11 on compatible systems.',
|
||||||
action='store_true'
|
action='store_true'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue