from tkinter import *
from tkinter import messagebox
from tkinter import ttk
import os
import webbrowser
import urllib.request #Envoyer une demande de réseau,Obtenir des données
import gzip #Module de compression et de décompression
import json #Analyser les données obtenues
import tkinter as tk
import random
from PIL import Image, ImageTk
import glob
import shutil
TOP6 = Tk()
TOP6.geometry("630x775")
TOP6.iconbitmap('Outil d'icône Ning Ning.ico')#Spécifier l'icône
TOP6.title('Petit assistant de Ning Ning')
tab_main=ttk.Notebook(TOP6)#Créer une barre de pagination
tab_main.place(relx=0, rely=0, width=630, height=774)
tab1=Frame(tab_main,width=400, height=300)#Créer un cadre de première page
tab1.place(x=0,y=30)
tab_main.add(tab1,text=' Apprendre la communication ')# Insérer la première page dans la barre de pagination
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=("Corps noir", 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=("Corps noir", 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=("Corps noir", 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=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=200)
BUTTON = Button(tab1, fg='black', bd=5, text="*Découpe",width = 10,command = jian_ying,
font=("Corps noir", 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=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=50,y=280)
BUTTON = Button(tab1, fg='black', bd=5, text="*Découpe",width = 10,command = jian_ying,
font=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=280)
BUTTON = Button(tab1, fg='black', bd=5, text="*Baidu netdrive",width = 10,command = wangpan,
font=("Corps noir", 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=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=450,y=280)
BUTTON = Button(tab1, fg='black', bd=5, text="*BaiduCUn instant.",width = 10,command = baidu,
font=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=250,y=360)
BUTTON = Button(tab1, fg='black', bd=5, text="*Apprendre",width = 10,command = xue_tong,
font=("Corps noir", 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=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=450,y=360)
BUTTON = Button(tab1, fg='black', bd=5, text="QQLe jeu",width = 10,
font=("Corps noir", 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=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=50,y=500)
BUTTON = Button(tab1, fg='black', bd=5, text=" Écran vidéo Tencent ",width = 10,
font=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=450,y=500)
BUTTON = Button(tab1, fg='black', bd=5, text="Aichi - Yi.",width = 10,
font=("Corps noir", 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=' Assistant météo ')
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 = PerfectMoneyTéléchargertk.LabelFrame(tab2, text=" Comparé au ciel bleu , Je préfère les plats ensoleillés ", padx=0, pady=0 ) # Niveau, Les marges verticales sont 10
habits.place(x=45,y=450)
habits_Window = Label(habits,textvariable=size_str, width=60, height=15, font=('Italique', 13))
habits_Window.grid()
label1 = StringVar()
input_name = Label(tab2, text='** Veuillez entrer la ville que vous souhaitez interroger **', font=('Italique', 14)).place(x=160, y=20)
entry = Entry(tab2, bg='#ffffff', width=20, textvariable=label1, font=('Italique', 13)).place(x=223, y=72)
right_data_button = Button(tab2,fg='#696969', text="CUn instant.",width = 10,command = show_data, font=('Corps noir', 13)).place(x=260, y=125)
tab3=Frame(tab_main)
tab3.place(x=200,y=30)
tab_main.add(tab3,text='Documentation*Organiser')
BUTTON = Button(tab3, fg='#696969', bd=5, text=" Organisation de fichiers côté Bureau ",width = 20,command = zhengli,
font=("Corps noir", 14))
BUTTON.grid(row=5, column=0, sticky=W)
BUTTON.place(x=200,y=50)
TOP6.mainloop()