琳琳冒险岛发布地址:http://www.mxdsf.cc
游戏已经巨变,但是冒险家的心没有变换,琳琳冒险发布站秉持着圣洁的冒险觉醒之心,帮助冒险家在繁忙工作之余回到多彩的冒险世界,畅谈大家的冒险经历与升级要诀,让冒险岛这个艺术品更加的熠熠生辉。开源PY版登录器部分源代码:
if __name__ == '__main__':
root = tk.Tk()
root.title('樱木冒险岛登录引导')
width = 816
height = 458
# 增加背景图片
photo = tk.PhotoImage(file="222.png")
theLabel = tk.Label(root, image=photo, fg="white") # 前景色
theLabel.place(x=0,y=0)
# 获取屏幕尺寸以计算布局参数,使窗口居屏幕中央
screenwidth = root.winfo_screenwidth()
screenheight = root.winfo_screenheight()
alignstr = '%dx%d+%d+%d' % (width, height, (screenwidth - width) / 2, (screenheight - height) / 2)
root.geometry(alignstr)
# 设置窗口是否可变长、宽,True:可变,False:不可变
root.resizable(width=False, height=False)
# # ------------------------------------------
#
button1 = Button(root, text='注册账号', width=11, command=signin,bg = "#9393FF",fg="#FFFFFF",bd=0)
button1.place(x=28, y=340)
button2 = Button(root, text='修改密码', width=11, command=up_pwd,bg = "#9393FF",fg="#FFFFFF",bd=0)
button2.place(x=122, y=340)
button3 = Button(root, text='防爆内存', width=11, command=kefu,bg = "#9393FF",fg="#FFFFFF",bd=0)
button3.place(x=215, y=340)
button4 = Button(root, text='联系客服', width=11, command=kefu,bg = "#9393FF",fg="#FFFFFF",bd=0)
button4.place(x=308, y=340)
button5 = Button(root, text='卡号自救', width=11, command=kefu,bg = "#9393FF",fg="#FFFFFF",bd=0)
button5.place(x=28, y=385)
button6 = Button(root, text='礼包兑换', width=11, command=kefu,bg = "#9393FF",fg="#FFFFFF",bd=0)
button6.place(x=122, y=385)
button7 = Button(root, text='福利领取', width=11, command=kefu,bg = "#9393FF",fg="#FFFFFF",bd=0)
button7.place(x=215, y=385)
#-------------
labe2 = Label(root, text='服务端IP+端口:', font=("", 11), bg="#FFFFFF",fg="#ADADAD",bd=0)
labe2.place(x=530, y=340)
sheet_text1 = StringVar()
sheet1 = Entry(root, textvariable=sheet_text1,bd=0)
sheet1.place(x=640, y=340)
sheet_text1.set("221.10.118.241:3339")
button8 = Button(root, text='一键进入游戏', width=20,height=2,fg="#FFFFFF", command=login, bg="#6A6AFF", bd=0,activebackground="#DDDDFF")
button8.place(x=580, y=385)
tk.mainloop()
效果图: