【Css】文字阴影实现立体字效果 张安金 1年前 源码分享 【Css】文字阴影实现立体字效果 <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>文字阴影实现立体字效果</title> </head> <style> body {...
【Python】Tkinter布局之Place 张安金 1年前 源码分享 【Python】Tkinter布局之Place 推荐指数:三颗星#!/usr/bin/python3 # -*- coding: UTF-8 -*- from tkinter import * root = Tk() root.title("Tkinter GUI - 控件位置") # 设置标题 root.geometry("300x300+100+100") # 设置窗口大小和起始位置 # 001. 设置label1的坐标为10,10 # label1 = Label(root, text="我的左上角坐标是10,10", bg="lightgreen...
【Python】Tkinter布局之Grid 张安金 1年前 源码分享 【Python】Tkinter布局之Grid 推荐指数:五颗星#!/usr/bin/python3 # -*- coding: UTF-8 -*- from tkinter import * root = Tk() root.title("Tkinter GUI - 控件位置") # 设置标题 root.geometry("300x300+100+100") # 设置窗口大小和起始位置 # 001. grid布局:左上下右 # label1 = Label(root, text="左", bg="lightgreen", width=5) #...
【Python】Tkinter布局之Pack 张安金 1年前 源码分享 【Python】Tkinter布局之Pack 推荐指数:四颗星#!/usr/bin/python3 # -*- coding: UTF-8 -*- from tkinter import * root = Tk() root.title("Tkinter GUI - 控件位置") # 设置标题 root.geometry("300x300+100+100") # 设置窗口大小和起始位置 # 001. 左上下右 # label1 = Label(root, text="left", bg="lightgreen", width=5) # lab...
【Python】Tkinter控件之标签Label 张安金 1年前 源码分享 【Python】Tkinter控件之标签Label #!/usr/bin/python3 # -*- coding: UTF-8 -*- from tkinter import * root = Tk() root.title("Tkinter GUI") # 设置标题 root.geometry("300x300-100+100") # 设置窗口大小和起始位置 # 001. pack()分开和合并书写的区别 # label = Label(root, text="我是一个标签") # label.pack() # print(type(label)) # <...
最近评论