琳琳冒險島

琳琳冒險島發佈地址:http://mxd.liuyanlin.cn/

遊戲已經鉅變,但是冒險家的心沒有變換,琳琳冒險發佈站秉持着聖潔的冒險覺醒之心,幫助冒險家在繁忙工作之餘回到多彩的冒險世界,暢談大家的冒險經歷與升級要訣,讓冒險島這個藝術品更加的熠熠生輝。開源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()

效果圖:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章