-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_devices.py
More file actions
40 lines (32 loc) · 1.12 KB
/
get_devices.py
File metadata and controls
40 lines (32 loc) · 1.12 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
# coding=utf8
from PyQt5.QtWidgets import QApplication
import sys
import window
import argparse
from callx import State
# Title
TITLE = "CallX Python Example: Get Devices Lists"
class MyApp(QApplication):
def __init__(self, argv):
self.MainWindow = None
QApplication.__init__(self, argv)
# ============================================================================================
# Signals
# ============================================================================================
def onStartComplited(self):
print("*** Cameras")
print(self.MainWindow.callx_widget.ocx.XGetCameraList())
print("*** Mics")
print(self.MainWindow.callx_widget.ocx.XGetMicList())
print("*** Speakers")
print(self.MainWindow.callx_widget.ocx.XGetSpeakerList())
sys.exit()
if __name__ == '__main__':
app = MyApp(sys.argv)
# Window
app.MainWindow = window.KioskWidget(TITLE, "", "", "")
# connect to signal
app.MainWindow.callx_widget.startComplited.connect(app.onStartComplited)
# show
app.MainWindow.show()
sys.exit(app.exec_())