import sys
import time
from PyQt4.Qt import *
from PyQt4 import QtGui, QtCore
def CheckText(self):
print(textbox.self.text)
def info(self):
label.setText("Information here")
window.resize(600,400)
window.setWindowTitle("Test")
label
= QtGui.
QLabel("Status Text", window
)label.move(260,230)
label.resize(500,50)
textbox.move(30, 45)
textbox.resize(220,30)
btn_Enter.move(30,80)
btn_Enter.resize(150,50)
btn_Enter.clicked.connect(lambda: CheckText(window))
window.show()
sys.exit(app.exec_())
import sys
import time
from PyQt4.Qt import *
from PyQt4 import QtGui, QtCore
def CheckText(self):
print(textbox.self.text)
def info(self):
label.setText("Information here")
app = QtGui.QApplication(sys.argv)
window = QtGui.QWidget()
window.resize(600,400)
window.setWindowTitle("Test")
label = QtGui.QLabel("Status Text", window)
label.move(260,230)
label.resize(500,50)
textbox = QLineEdit(window)
textbox.move(30, 45)
textbox.resize(220,30)
btn_Enter = QtGui.QPushButton("Enter", window)
btn_Enter.move(30,80)
btn_Enter.resize(150,50)
btn_Enter.clicked.connect(lambda: CheckText(window))
window.show()
sys.exit(app.exec_())
To copy to clipboard, switch view to plain text mode
Bookmarks