-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindow.py
More file actions
37 lines (31 loc) · 1.04 KB
/
window.py
File metadata and controls
37 lines (31 loc) · 1.04 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
# coding=utf8
from PyQt5.QAxContainer import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import QObject, QRect, pyqtSignal
from callx import CallXWidget
# Main Window
class KioskWidget(QWidget):
def __init__(self, title, server, user, password):
self.title = title
self.server = server
self.user = user
self.password = password
self.layout = None
self.callx_widget = None
self.video = None
self.player = None
self.playlist = None
QAxWidget.__init__(self)
self.initUI()
def initUI(self):
self.setWindowTitle(self.title)
self.move(100, 100)
self.resize(800, 600)
self.setStyleSheet("background-color:black;");
# layout
self.layout = QHBoxLayout(self)
self.setLayout(self.layout)
# CallX
self.callx_widget = CallXWidget(self, self.server, self.user, self.password, debug_mode=False)
self.layout.addWidget(self.callx_widget.ocx)
# end of class CallXWindow(QWidget)