Skip to content

Instantly share code, notes, and snippets.

@zooba
Created June 21, 2017 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zooba/0266e16b770c8ca7b65281bab66c9625 to your computer and use it in GitHub Desktop.
Save zooba/0266e16b770c8ca7b65281bab66c9625 to your computer and use it in GitHub Desktop.
Python code for developer community feedback item #68760
#!/usr/bin/python
import sys
import re
import os
import fileinput
from PyQt5 import QtWidgets,QtGui
class Main_Page(QtWidgets.QWidget):
def __init__(self,parent = None):
super().__init__()
self.setWindowTitle('ATC E SUMMARY')
#self.setWindowIcon(QtGui.QIcon('Icon.png'))
Customer_label = QtWidgets.QLabel('Customer')
Lotnumber_label = QtWidgets.QLabel('ATC Lot')
Device_label = QtWidgets.QLabel('Device')
Station_Label = QtWidgets.QLabel('Station')
Customer_Edit = QtWidgets.QLineEdit()
Lotnumber_Edit = QtWidgets.QLineEdit()
Device_Edit = QtWidgets.QLineEdit()
Station_Edit = QtWidgets.QLineEdit()
filelist_label = QtWidgets.QLabel('File')
filelist_view = QtWidgets.QListView()
grid = QtWidgets.QGridLayout()
grid.addWidget(Customer_label, 1, 1)
grid.addWidget(Lotnumber_label, 1, 3)
grid.addWidget(Device_label, 2, 1)
grid.addWidget(Station_Label, 2, 3)
grid.addWidget(Customer_Edit, 1, 2)
grid.addWidget(Lotnumber_Edit, 1, 4)
grid.addWidget(Device_Edit, 2, 2)
grid.addWidget(Station_Edit, 2, 4)
grid.addWidget(filelist_label, 3,1,1,1)
grid.addWidget(filelist_view, 3,2,5,4)
self.setLayout(grid)
self.resize(700, 500)
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
icon = Main_Page()
icon.show()
sys.exit(app.exec_())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment