aboutsummaryrefslogtreecommitdiff
path: root/autotests/pythontest.py
blob: 2a51ed447673ea699904bf1e21b5c04b8b29f789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python
#-*- coding: utf-8 -*-

from __future__ import print_function

import sys

sys.path.append(sys.argv[1])

from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtWidgets

from PyKF5 import KConfigCore
from PyKF5 import KConfigGui

def main():
    app = QtWidgets.QApplication(sys.argv)

    kcg = KConfigCore.KConfigGroup();

    assert(not kcg.isValid())

    sc = KConfigGui.KStandardShortcut.open()
    assert(sc == [QtGui.QKeySequence("CTRL+O")])

if __name__ == '__main__':
    sys.exit(main())