-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUi_Form_Log.py
More file actions
executable file
·28 lines (22 loc) · 902 Bytes
/
Ui_Form_Log.py
File metadata and controls
executable file
·28 lines (22 loc) · 902 Bytes
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
import sys
from PyQt4 import QtCore, QtGui
class stdProxy:
def __init__(self, write_func):
self.write_func = write_func
def write(self, text):
stripped_text = text.strip('\n')
if len(stripped_text):
self.write_func(stripped_text)
QtCore.QCoreApplication.processEvents()
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName( ("Form"))
Form.resize(800, 640)
self.gridLayout = QtGui.QGridLayout(Form)
self.gridLayout.setMargin(0)
self.gridLayout.setSpacing(0)
self.gridLayout.setObjectName( ("gridLayout"))
self.plainTextEdit = QtGui.QTextEdit("", Form)
self.plainTextEdit.setObjectName( ("plainTextEdit"))
self.gridLayout.addWidget(self.plainTextEdit, 0, 0, 0, 0)
QtCore.QMetaObject.connectSlotsByName(Form)