1 Star 50 Fork 24

骨子里的偏爱 / 短信轰炸

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
smsboom_GUI.py 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
骨子里的偏爱 提交于 2022-08-15 16:58 . 发送大量短信业务
from tkinter import Tk, StringVar
from tkinter import ttk
class InputWidget(ttk.Frame):
"""输入框,确认框"""
def __init__(self, parent=None):
ttk.Frame.__init__(self, parent)
self.parent = parent
self.columnconfigure(0, weight=1)
self.rowconfigure(0, weight=1)
self.phone = StringVar()
self.createWidget()
for child in self.winfo_children():
child.grid_configure(padx=5, pady=5)
self.pack()
def createWidget(self):
"""InputWidget"""
ttk.Label(self, text="手机号:").grid(column=0, row=0, sticky='nsew')
ttk.Entry(self, textvariable=self.phone).grid(
column=1, row=0, columnspan=3, sticky='nsew')
ttk.Button(self, text="启动轰炸").grid(
column=4, row=0, sticky='nsew')
class Application(ttk.Frame):
"""APP main frame"""
def __init__(self, parent=None):
ttk.Frame.__init__(self, parent)
self.parent = parent
# 伸缩
self.columnconfigure(0, weight=1)
self.rowconfigure(0, weight=1)
self.createWidget()
# 间隔
for child in self.winfo_children():
child.grid_configure(padx=5, pady=5)
self.pack()
def createWidget(self):
"""Widget"""
input_wiget = InputWidget(self)
if __name__ == "__main__":
root = Tk()
root.title("SMSBoom - 短信轰炸机 ©落落")
root.columnconfigure(0, weight=1)
root.rowconfigure(0, weight=1)
Application(parent=root)
root.mainloop()
Python
1
https://gitee.com/zhangchang521/sms-bombing.git
git@gitee.com:zhangchang521/sms-bombing.git
zhangchang521
sms-bombing
短信轰炸
master

搜索帮助