小编Oli*_*Oli的帖子

Python 3 Tkinter:如何创建一条白实线来将小部件与程序的其余部分分开?

我目前正在 Python 3 的 Tkinter 上创建一个健身应用程序。

这是我到目前为止的代码。

import tkinter as tk
from tkinter import *

root = Tk()
root.geometry("1600x1000+0+0")
root.title("Ultimate Fitness Calculator")
root.configure(bg='darkslategray')
lbl_title = tk.Label(root,text="Welcome to the Ultimate Fitness Calculator by Cameron Su.", fg="white", bg = 'darkslategray')
lbl_title.pack()


Tops = Frame(root, width=1600, height=50, bg="darkslategray", relief=SUNKEN)
Tops.pack(side=TOP)

f1 = Frame(root, width=1600, height=900, bg="darkslategray", relief=SUNKEN)
f1.pack(side=LEFT)



lblInfo = Label(Tops, font=('Gill Sans', 50), text="Ultimate Fitness Calculator", fg="white",bg="darkslategray", bd=10, anchor='w').grid(row=0, column=0)

lblInfo = Label(Tops, font=('Gill Sans', 20), text="This multifunctional program calculates Basal Metabolic …
Run Code Online (Sandbox Code Playgroud)

python tkinter

2
推荐指数
1
解决办法
4135
查看次数

标签 统计

python ×1

tkinter ×1