-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRecorderWindow.py
66 lines (32 loc) · 1.32 KB
/
RecorderWindow.py
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 1 14:01:38 2018
@author: anwaldt
"""
import sys
import random
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (QMainWindow, QAction, QFileDialog, QDialog)
from PyQt5.QtWidgets import (QApplication, QGridLayout, QGroupBox,QDialog, QSlider, QLineEdit,
QMenu, QPushButton, QRadioButton, QVBoxLayout,QHBoxLayout, QWidget, QButtonGroup, QAbstractButton, QLabel)
from PyQt5.QtGui import (QIcon)
from OscPlayer import OscPlayer
class RecorderWindow(QDialog):
def __init__(self, parent=None):
super(RecorderWindow, self).__init__(parent)
# set the layout
layout = QVBoxLayout()
self.setLayout(layout)
self.button = QPushButton('Start Recorder')
self.button.clicked.connect(self.start)
layout.addWidget(self.button)
self.textbox = QLineEdit(self)
self.textbox.setText('Enter port!')
layout.addWidget(self.textbox);
self.resize(630, 150)
def set_data(self, recorder):
self.recorder = recorder
def start(self):
self.recorder.start_server("127.0.0.1", 4001, "~/TMP")
self.close