You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
804 B

6 months ago
import tkinter as tk
from tkinter import messagebox
from JJXX import create_main_window
6 months ago
from HJJC import aaa
6 months ago
def create_main_page(root):
6 months ago
home_info_title = tk.Label(root, text="功能区", font=("Helvetica", 16))
6 months ago
home_info_title.pack(pady=20)
goto_jiaju_button = tk.Button(root, text="家居信息", command=lambda: JiaJuInfoPage(root))
goto_jiaju_button.pack(pady=10)
6 months ago
goto_jiance_button = tk.Button(root, text="环境监测", command=lambda: JianCeInfoPage(root))
goto_jiance_button.pack(pady=10)
6 months ago
def JiaJuInfoPage(master):
6 months ago
create_main_window()
def JianCeInfoPage(master):
aaa()
6 months ago
def a():
root = tk.Tk()
6 months ago
root.title('智能家居系统-主界面')
6 months ago
root.geometry('600x400')
create_main_page(root)
root.mainloop()
if __name__ == '__main__':
a()