python做出漂亮的界面代码_Python+tkinter+other制作可视化界面

最近做毕业设计,两周自学python,做了一些简单的GUI界面,以下代码为界面源码,明天文件打包EXE以下源码和运行界面展示:

捕获.GIF

捕获1.GIF

捕获2.GIF

window = tk.Tk()

window.title("Welcome to RC4 and WEP change system")

window.geometry('800x600')

def command_file():

window_one = tk.Toplevel(window)

window_one.geometry('800x700')

window_one.title("HELP INFORMATION:")

tk.Label(window_one, text="WEP加密解密模型:", font=font1).place(x=10, y=30)

tk.Label(window_one, text="1:初始化SK由用户自行设置或系统预设,系统预设一般为四个共享密钥", font=font).place(x=10, y=500)

tk.Label(window_one, text="2:IV向量由系统自行生成,具有一定的周期,模拟系统周期为999,IV用于完成一次一密", font=font).place(x=10, y=550)

tk.Label(window_one, text="3:CRC32用于产生原文校验码,用于验证明文是否遭受篡改", font=font).place(x=10, y=600)

canvas = tk.Canvas(window_one, width=700, height=400, bg='white')

img = tk.PhotoImage(file="E:\\pro\\毕业设计成品1_1\\2.gif")

canvas.place(x=10, y=70)

canvas.create_image(0, 0, anchor='nw', image=img)

img.put()

def command_help():

window_one = tk.Toplevel(window)

window_one.geometry('800x700')

window_one.title("HELP INFORMATION:")

tk.Label(window_one, text="RC4改进算法在无线网络安全的应用:", font=font1).place(x=10, y=30)

tk.Label(window_one, text="1:初始化SK(共享密钥经过安全信道传输):", font=font).place(x=10, y=500)

tk.Label(window_one, text="2:初始化密钥对其自身进行加密产生IV,KC和新的共享密钥", font=font).place(x=10, y=550)

tk.Label(window_one, text="3:CRC32用于产生原文校验码,用于验证明文是否遭受篡改:", font=font).place(x=10, y=600)

tk.Label(window_one, text="4:改进算法的思路主要是RC4模块的复用,在IV和KC拼接过程中顺序颠倒", font=font).place(x=10, y=650)

canvas = tk.Canvas(window_one, width=700, height=400, bg='white')

img = tk.PhotoImage(file="E:\\pro\\毕业设计成品1_1\\1.gif")

canvas.place(x=10, y=70)

canvas.create_image(0, 0, anchor='nw', image=img)

img.put()

def time_compare():

window_two = tk.Toplevel(window)

window_two.title("Welcome to RC4 and WEP change system")

window_two.geometry('800x600')

print("本模块为对比时间复杂度模块")

passage = "my name is sunhui i have a big dream 1314 try best 12"

sk = "sh123456789123456"

size_of_message1 = sys.getsizeof(passage) # 单位为字节B

print(size_of_message1)

time1_1

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值