FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Python-GUI-Project/sms/send_sms.py at master · python-gui-application/Python-GUI-Project · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-gui-application
/
Python-GUI-Project
Public
forked from
Aashishkumar123/Python-GUI-Project
Notifications
You must be signed in to change notification settings
Fork
1
Star
3
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
Python-GUI-Project
/
sms
/
send_sms.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
53 lines (36 loc) · 1.58 KB
Breadcrumbs
Python-GUI-Project
/
sms
/
send_sms.py
Copy path
File metadata and controls
53 lines (36 loc) · 1.58 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import
tkinter
as
tk
from
tkinter
import
*
from
tkinter
import
messagebox
from
PIL
import
ImageTk
,
Image
import
requests
root
=
tk
.
Tk
()
root
.
geometry
(
'500x300'
)
root
.
maxsize
(
500
,
300
)
root
.
minsize
(
500
,
300
)
root
.
title
(
'Send SMS'
)
root
.
iconbitmap
(
'Sms.ico'
)
def
send_sms
():
number
=
phone_no
.
get
()
messages
=
message
.
get
(
"1.0"
,
"end-1c"
)
url
=
"https://www.fast2sms.com/dev/bulk"
api
=
"put your api here"
#Go to fast2sms.com and signup to get the free Api
querystring
=
{
"authorization"
:
api
,
"sender_id"
:
"FSTSMS"
,
"message"
:
messages
,
"language"
:
"english"
,
"route"
:
"p"
,
"numbers"
:
number
}
headers
=
{
'cache-control'
:
"no-cache"
}
requests
.
request
(
"GET"
,
url
,
headers
=
headers
,
params
=
querystring
)
messagebox
.
showinfo
(
"Send SMS"
,
'SMS has been send successfully'
)
img
=
ImageTk
.
PhotoImage
(
Image
.
open
(
'background.jpg'
))
panel
=
Label
(
root
,
image
=
img
)
panel
.
pack
(
side
=
"bottom"
,
fill
=
"both"
,
expand
=
"yes"
)
label
=
Label
(
root
,
text
=
"Send SMS Using Python"
,
font
=
(
'verdana'
,
10
,
'bold'
))
label
.
place
(
x
=
210
,
y
=
10
)
phone_no
=
Entry
(
root
,
width
=
20
,
borderwidth
=
0
,
font
=
(
'verdana'
,
10
,
'bold'
))
phone_no
.
place
(
x
=
220
,
y
=
115
)
phone_no
.
insert
(
'end'
,
'phone number'
)
message
=
Text
(
root
,
height
=
5
,
width
=
25
,
borderwidth
=
0
,
font
=
(
'verdana'
,
10
,
'bold'
))
message
.
place
(
x
=
190
,
y
=
140
)
message
.
insert
(
'end'
,
'Message'
)
send
=
Button
(
root
,
text
=
"Send Message"
,
font
=
(
'verdana'
,
10
,
'bold'
),
relief
=
RIDGE
,
cursor
=
'hand2'
,
borderwidth
=
0
,
command
=
send_sms
)
send
.
place
(
x
=
260
,
y
=
235
)
root
.
mainloop
()
Back
|
FazBrowse Home
|
New Git URL