Write an office gadget for the girl you like in Python. She said it was great!

Time:2022-5-2

from tkinter import *
from tkinter import messagebox
from tkinter import ttk
import os
import webbrowser
import urllib. Request # sends a network request to obtain data
Import gzip # compression and decompression module
Import JSON # parses the data obtained
import tkinter as tk
import random
from PIL import Image, ImageTk
import glob
import shutil
TOP6 = Tk()
TOP6.geometry(“630×775”)
TOP6. Iconbitmap (‘ningning icon tool. ICO ‘) # specifies the icon
TOP6. Title (‘ning Xiao assistant ‘)
tab_ main=ttk. Notebook (top6) # create a pagination bar
tab_main.place(relx=0, rely=0, width=630, height=774)
Tab1 = frame (tab_main, width = 400, height = 300) # create the frame of the first page
tab1.place(x=0,y=30)
tab_ main. Add (tab1, text = ‘learn ⚡ Newsletter ‘) # insert the first page into the page bar
image1 = Image.open(‘Card Payment_Outline(1).png’)
pyt1 = ImageTk.PhotoImage(image1)
label2 = Label(tab1, image=pyt1)
label2.place(x=0,y=500)
image2 = Image.open(‘CPU_Two Color.png’)
pyt2 = ImageTk.PhotoImage(image2)
label2 = Label(tab1, image=pyt2)
label2.place(x=200,y=100)
image3 = Image.open(‘AR_Outline.png’)
pyt3 = ImageTk.PhotoImage(image3)
label2 = Label(tab1, image=pyt3)
label2.place(x=0,y=0)
BUTTON = Button(tab1, fg=’black’,bd=5, text=”ℒQQ”,width = 20,command = QQ,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=30,y=50)
Button = button (tab1, BD = 5, FG =’black ‘, text = “wechat”, width = 20, command = wechat,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=380,y=50)
BUTTON = Button(tab1, fg=’black’, bd=5, text=”✎AE”,width = 10,command = AE,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=450,y=200)
BUTTON = Button(tab1, fg=’black’, bd=5, text=”✎PR”,width = 10,command = PR,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=200)
Button = button (tab1, FG =’black ‘, BD = 5, text = “✎ cut image”, width = 10, command = jian_ying,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=50,y=200)
BUTTON = Button(tab1, fg=’black’, bd=5, text=”✎WPS”,width = 10,command = WPS,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=50,y=280)
Button = button (tab1, FG =’black ‘, BD = 5, text = “✎ cut image”, width = 10, command = jian_ying,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=280)
Button = button (tab1, FG =’black ‘, BD = 5, text = “✎ Baidu online disk”, width = 10, command = wangpan,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=280)
BUTTON = Button(tab1, fg=’black’, bd=5, text=”✎BiBili”,width = 10,command = bili,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=450,y=280)
Button = button (tab1, FG =’black ‘, BD = 5, text = “✎ Baidu C”, width = 10, command = Baidu,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=360)
Button = button (tab1, FG =’black ‘, BD = 5, text = “✎ learning”, width = 10, command = xue_tong,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=50,y=360)
Button = button (tab1, FG =’black ‘, BD = 5, text = “✎ Hunan University Education”, width = 10, command = Xiangda,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=450,y=360)
Button = button (tab1, FG =’black ‘, BD = 5, text = “QQ game”, width = 10,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=500)
Button = button (tab1, FG =’black ‘, BD = 5, text = “Netease cloud music”, width = 10,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=50,y=500)
Button = button (tab1, FG =’black ‘, BD = 5, text = “Tencent video”, width = 10,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=450,y=500)
Button = button (tab1, FG =’black ‘, BD = 5, text = “iqiyi”, width = 10,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=570)
tab2=Frame(tab_main)
tab2.place(x=100,y=30)
tab_ main. Add (TAB2, text = ‘weather ❤ Assistant ‘)
image4 = Image.open(‘Weather_Isometric.png’)
pyt4 = ImageTk.PhotoImage(image4)
label2 = Label(tab2, image=pyt4)
label2.place(x=0,y=0)
size_str=StringVar()
habits = Perfectmoney Downloadtk. Labelframe (TAB2, text = “I prefer Yang cuisine to blue sky”, padx = 0, pady = 0) # horizontal and vertical margins are 10
habits.place(x=45,y=450)
habits_ Window = label (habits, textvariable = size_str, width = 60, height = 15, font = (‘italics’, 13))
habits_Window.grid()
label1 = StringVar()
input_ name = Label(tab2, text=’☼ ☁ ❅ please enter the city you want to query ☼ ☁ ❅ ‘, font = (‘ regular script ‘, 14)) place(x=160, y=20)
Entry = entry (TAB2, BG = ‘#ffffff’, width = 20, textvariable = label1, font = (‘italics’, 13)) place(x=223, y=72)
right_ data_ Button = button (TAB2, FG = ‘#6969’, text = “C”, width = 10, command = show_data, font = (‘bold’, 13)) place(x=260, y=125)
tab3=Frame(tab_main)
tab3.place(x=200,y=30)
tab_ main. Add (tab3, text = ‘file ✪ sorting’)
Button = button (tab3, FG = ‘#6969’, BD = 5, text = “desktop file sorting”, width = 20, command = Zhengli,

Font = ("bold", 14))

BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=200,y=50)
TOP6.mainloop()

Recommended Today

Initial rendering of handwritten Vue2 series

When learning becomes a habit, knowledge becomes common sense.thank you allfocus on、like、collectandComment。 New videos and articles will be sent on the WeChat public account as soon as possible, please pay attention:Li Yongning lyn Articles have been included ingithub repository liyongning/blog, Welcome to Watch and Star. foreword previous postHandwritten Vue2 series compilerThe work from the template […]