Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-089
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
Deshini Perera
2022-089
Commits
4933159c
Commit
4933159c
authored
Oct 08, 2022
by
Deshini Perera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
d643e8cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
Vendor_Interface.py
Vendor_Interface.py
+41
-0
No files found.
Vendor_Interface.py
0 → 100644
View file @
4933159c
from
tkinter
import
*
from
Obj_main
import
*
from
tkinter
import
messagebox
def
Scan
():
PO_NO
=
entry1
.
get
()
print
(
PO_NO
)
if
len
(
PO_NO
)
==
0
:
messagebox
.
showerror
(
'No Po Number Enterd'
,
'Enter Po Number'
)
else
:
Items
=
dectection_video_file
(
True
,
None
,
'yolov3-tiny.weights'
,
'yolov3-tiny.cfg'
,
'coco.names'
,
0.5
,
0.4
)
print
(
'detected Items List is : '
,
Items
)
entry1
.
delete
(
0
,
END
)
# declare the window
window
=
Tk
()
# set window title
window
.
title
(
"Package Recieval for PO's"
)
# set window width and height
window
.
configure
(
width
=
500
,
height
=
300
)
# set window background color
window
.
configure
(
bg
=
'lightgray'
)
#Create a canvas object
canvas
=
Canvas
(
window
,
width
=
500
,
height
=
300
,
bg
=
"lightgray"
)
#Add a text in Canvas
canvas
.
create_text
(
100
,
50
,
text
=
"Enter PO Number"
,
fill
=
"black"
,
font
=
(
'Helvetica 10'
))
#Add Entry Box
entry1
=
Entry
()
canvas
.
create_window
(
230
,
50
,
window
=
entry1
)
#Add Button
canvas
.
create_window
(
350
,
50
,
window
=
Button
(
text
=
'Scan'
,
command
=
Scan
))
canvas
.
pack
()
window
.
mainloop
()
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