Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J-72
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J-72
22_23-J-72
Commits
314000f7
Commit
314000f7
authored
May 16, 2023
by
IT19953748_D D P Kumara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'revert-
fc896112
' into 'master'"
This reverts merge request
!2
parent
ae92be9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
383 additions
and
0 deletions
+383
-0
project/login.ui
project/login.ui
+137
-0
project/main.py
project/main.py
+67
-0
project/main_system.ui
project/main_system.ui
+179
-0
No files found.
project/login.ui
0 → 100644
View file @
314000f7
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
Dialog
</class>
<widget
class=
"QDialog"
name=
"Dialog"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
1371
</width>
<height>
768
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Dialog
</string>
</property>
<widget
class=
"QLabel"
name=
"background"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"geometry"
>
<rect>
<x>
-10
</x>
<y>
0
</y>
<width>
1391
</width>
<height>
771
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(180, 180, 180, 255))
</string>
</property>
<property
name=
"text"
>
<string>
bcakgtound_gi
</string>
</property>
</widget>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"geometry"
>
<rect>
<x>
440
</x>
<y>
60
</y>
<width>
521
</width>
<height>
581
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color:rgb(145, 145, 145);
border-style: outset;
border-width: 2px;
border-radius: 10px;
border-color: rgb(0, 85, 255);
font: bold 14px;
min-width: 10em;
padding: 6px;
</string>
</property>
<property
name=
"text"
>
<string/>
</property>
</widget>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"geometry"
>
<rect>
<x>
590
</x>
<y>
110
</y>
<width>
201
</width>
<height>
251
</height>
</rect>
</property>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"pixmap"
>
<pixmap>
Sri_Lanka_Police_logo.svg.png
</pixmap>
</property>
<property
name=
"scaledContents"
>
<bool>
true
</bool>
</property>
</widget>
<widget
class=
"QLineEdit"
name=
"lineEdit"
>
<property
name=
"geometry"
>
<rect>
<x>
650
</x>
<y>
460
</y>
<width>
191
</width>
<height>
31
</height>
</rect>
</property>
</widget>
<widget
class=
"QLineEdit"
name=
"lineEdit_2"
>
<property
name=
"geometry"
>
<rect>
<x>
650
</x>
<y>
510
</y>
<width>
191
</width>
<height>
31
</height>
</rect>
</property>
</widget>
<widget
class=
"QLabel"
name=
"label_3"
>
<property
name=
"geometry"
>
<rect>
<x>
530
</x>
<y>
460
</y>
<width>
81
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
font: bold 14px;
</string>
</property>
<property
name=
"text"
>
<string>
User name
</string>
</property>
</widget>
<widget
class=
"QLabel"
name=
"label_4"
>
<property
name=
"geometry"
>
<rect>
<x>
530
</x>
<y>
510
</y>
<width>
91
</width>
<height>
31
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
font: bold 14px;
</string>
</property>
<property
name=
"text"
>
<string>
Password
</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>
project/main.py
0 → 100644
View file @
314000f7
import
sys
from
PyQt5
import
QtWidgets
,
Qt
from
PyQt5.QtWidgets
import
QDialog
,
QApplication
from
PyQt5.uic
import
loadUi
from
PyQt5
import
QtGui
,
QtWidgets
,
QtCore
import
numpy
as
np
import
cv2
import
sys
from
PyQt5.QtWidgets
import
QWidget
,
QLabel
,
QApplication
,
QListWidgetItem
from
PyQt5.QtCore
import
QThread
,
Qt
,
pyqtSignal
,
pyqtSlot
,
QTimer
from
PyQt5.QtGui
import
QImage
,
QPixmap
from
PyQt5.QtCore
import
QTimer
,
QTime
,
Qt
import
imutils
from
multiprocessing
import
Process
from
PyQt5
import
QtWidgets
,
QtGui
import
os
from
datetime
import
datetime
,
date
import
time
import
datetime
import
threading
###############################################
class
MainWindow
(
QDialog
):
def
__init__
(
self
):
super
(
MainWindow
,
self
)
.
__init__
()
loadUi
(
"main_system.ui"
,
self
)
# self.tableWidget.setColumnWidth(0, 350)
# self.tableWidget.setColumnWidth(1, 200)
#
# self.tableWidget.setItem(0, 0, QtWidgets.QTableWidgetItem(('eee')))
# self.tableWidget.setItem(0, 1, QtWidgets.QTableWidgetItem(('24')))
# self.tableWidget.setItem(0, 2, QtWidgets.QTableWidgetItem(('95e')))
# self.tableWidget.setItem(0, 3, QtWidgets.QTableWidgetItem(('pile')))
# self.tableWidget.setItem(0, 4, QtWidgets.QTableWidgetItem(('ee')))
# self.tableWidget.setItem(0, 5, QtWidgets.QTableWidgetItem(('ee')))
#QListWidgetItem("Geeks", self.listView)
# QListWidgetItem("For", listWidget)
# QListWidgetItem("Geeks", listWidget)
#self.listView.QListWidgetItem("Geeks")
if
__name__
==
'__main__'
:
#p = Process(target=MainWindow.game_engin)
app
=
QApplication
(
sys
.
argv
)
mainwindow
=
MainWindow
()
widget
=
QtWidgets
.
QStackedWidget
()
widget
.
addWidget
(
mainwindow
)
widget
.
setFixedWidth
(
1336
)
widget
.
setFixedHeight
(
768
)
widget
.
show
()
app
.
exec_
()
\ No newline at end of file
project/main_system.ui
0 → 100644
View file @
314000f7
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
Dialog
</class>
<widget
class=
"QDialog"
name=
"Dialog"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
1371
</width>
<height>
768
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Dialog
</string>
</property>
<widget
class=
"QLabel"
name=
"background"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"geometry"
>
<rect>
<x>
-10
</x>
<y>
0
</y>
<width>
1391
</width>
<height>
771
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(180, 180, 180, 255))
</string>
</property>
<property
name=
"text"
>
<string>
bcakgtound_gi
</string>
</property>
</widget>
<widget
class=
"QLabel"
name=
"dp_pic"
>
<property
name=
"geometry"
>
<rect>
<x>
130
</x>
<y>
80
</y>
<width>
271
</width>
<height>
261
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border-style: outset;
border-width: 5px;
border-color: rgb(255, 0, 0);
</string>
</property>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"pixmap"
>
<pixmap>
professor.jpg
</pixmap>
</property>
<property
name=
"scaledContents"
>
<bool>
true
</bool>
</property>
</widget>
<widget
class=
"QTableWidget"
name=
"tableWidget"
>
<property
name=
"geometry"
>
<rect>
<x>
570
</x>
<y>
80
</y>
<width>
551
</width>
<height>
271
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
border-style: outset;
border-width: 2px;
border-radius: 10px;
border-color: rgb(0, 0, 255);
font: bold 14px;
min-width: 10em;
padding: 2px;
</string>
</property>
<row>
<property
name=
"text"
>
<string>
Name
</string>
</property>
</row>
<row>
<property
name=
"text"
>
<string>
Age
</string>
</property>
</row>
<row>
<property
name=
"text"
>
<string>
ID Card Number
</string>
</property>
</row>
<row>
<property
name=
"text"
>
<string>
Address
</string>
</property>
</row>
<row>
<property
name=
"text"
>
<string>
Skin Color
</string>
</property>
</row>
<row>
<property
name=
"text"
>
<string>
Hair Color
</string>
</property>
</row>
<column>
<property
name=
"text"
>
<string>
details
</string>
</property>
</column>
</widget>
<widget
class=
"QPushButton"
name=
"next_pg"
>
<property
name=
"geometry"
>
<rect>
<x>
1120
</x>
<y>
670
</y>
<width>
186
</width>
<height>
41
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color: rgb(85, 255, 0);
border-style: outset;
border-width: 2px;
border-radius: 10px;
border-color: beige;
font: bold 14px;
min-width: 10em;
padding: 6px;
</string>
</property>
<property
name=
"text"
>
<string>
Next
</string>
</property>
</widget>
<widget
class=
"QPushButton"
name=
"pushButton_3"
>
<property
name=
"geometry"
>
<rect>
<x>
90
</x>
<y>
670
</y>
<width>
186
</width>
<height>
41
</height>
</rect>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
background-color: rgb(85, 255, 0);
border-style: outset;
border-width: 2px;
border-radius: 10px;
border-color: beige;
font: bold 14px;
min-width: 10em;
padding: 6px;
</string>
</property>
<property
name=
"text"
>
<string>
Back
</string>
</property>
</widget>
<widget
class=
"QListView"
name=
"listView"
>
<property
name=
"geometry"
>
<rect>
<x>
130
</x>
<y>
420
</y>
<width>
1001
</width>
<height>
191
</height>
</rect>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment