Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3648537
  • 博文数量: 365
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2522
  • 用 户 组: 普通用户
  • 注册时间: 2019-10-28 13:40
文章分类

全部博文(365)

文章存档

2023年(8)

2022年(130)

2021年(155)

2020年(50)

2019年(22)

我的朋友

分类: Python/Ruby

2021-10-28 17:24:04

from tkinter import *

from tkinter import messagebox

from tkinter import ttk

import os

import webbrowser

import urllib.request   #发送网络请求,获取数据

import gzip             #压缩和解压缩模块

import json             #解析获得的数据

import tkinter as tk

import random

from PIL import Image, ImageTk

import glob

import shutil

TOP6 = Tk()

TOP6.geometry("630x775")

TOP6.iconbitmap('宁宁图标工具.ico')#指定图标

TOP6.title('宁宁小助手')

tab_main=ttk.Notebook(TOP6)#创建分页栏

tab_main.place(relx=0, rely=0, width=630, height=774)

tab1=Frame(tab_main,width=400, height=300)#创建第一页框架

tab1.place(x=0,y=30)

tab_main.add(tab1,text='学习?通讯')#将第一页插入分页栏中

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=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=30,y=50)

BUTTON = Button(tab1, bd=5,  fg='black',text="?微信",width = 20,command = WeChat,

                    font=("黑体", 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=("黑体", 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=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=250,y=200)

BUTTON = Button(tab1, fg='black', bd=5, text="?剪映",width = 10,command = jian_ying,

                    font=("黑体", 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=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=50,y=280)

BUTTON = Button(tab1, fg='black', bd=5, text="?剪映",width = 10,command = jian_ying,

                    font=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=250,y=280)

BUTTON = Button(tab1, fg='black', bd=5, text="?百度网盘",width = 10,command = wangpan,

                    font=("黑体", 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=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=450,y=280)

BUTTON = Button(tab1, fg='black', bd=5, text="?百度C一下",width = 10,command = baidu,

                    font=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=250,y=360)

BUTTON = Button(tab1, fg='black', bd=5, text="?学习通",width = 10,command = xue_tong,

                    font=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=50,y=360)

BUTTON = Button(tab1, fg='black', bd=5, text="?湘大教育",width = 10,command = xiangda,

                    font=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=450,y=360)

BUTTON = Button(tab1, fg='black', bd=5, text="QQ游戏",width = 10,

                    font=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=250,y=500)

BUTTON = Button(tab1, fg='black', bd=5, text="网易云音乐",width = 10,

                    font=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=50,y=500)

BUTTON = Button(tab1, fg='black', bd=5, text="腾讯视屏",width = 10,

                    font=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=450,y=500)

BUTTON = Button(tab1, fg='black', bd=5, text="爱奇艺",width = 10,

                    font=("黑体", 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='天气?助手')

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 =外汇跟单gendan5.com tk.LabelFrame(tab2, text="相比于蓝天,我更想选择阳菜", padx=0, pady=0 )  # 水平,垂直方向上的边距均为 10

habits.place(x=45,y=450)

habits_Window = Label(habits,textvariable=size_str, width=60, height=15,  font=('楷体', 13))

habits_Window.grid()

label1 = StringVar()

input_name = Label(tab2, text='???请输入您想要查询的城市???', font=('楷体', 14)).place(x=160, y=20)

entry = Entry(tab2, bg='#ffffff', width=20, textvariable=label1, font=('楷体', 13)).place(x=223, y=72)

right_data_button = Button(tab2,fg='#696969', text="C一下",width = 10,command = show_data, font=('黑体', 13)).place(x=260, y=125)

tab3=Frame(tab_main)

tab3.place(x=200,y=30)

tab_main.add(tab3,text='文件?整理')

BUTTON = Button(tab3, fg='#696969', bd=5, text="桌面端文件整理",width = 20,command = zhengli,

                    font=("黑体", 14))

BUTTON.grid(row=5, column=0, sticky=W)

BUTTON.place(x=200,y=50)

TOP6.mainloop()

阅读(1099) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~