python软件的界面是什么样的-请问python中的哪个用户界面设计程序能实现这个功能?...

# -*- coding: utf-8 -*-

from tkinter import *

import threading

import time

class show(threading.Thread):

def __init__(self):

threading.Thread.__init__(self)

self.TextA = TextA

self.TextB = TextB

self.TextC = TextC

def run(self):

LabelVar1.set('1')

time.sleep(1)

LabelVar2.set('2')

time.sleep(1)

LabelVar3.set('3')

time.sleep(1)

def PrintText():

theshow = show()

theshow.start()

if __name__=='__main__':

ListA = ["a", "b", "c", "d"]

ListB = ["A", "B", "C"]

ListC = ["1", "2", "3"]

TextA = ListA[0]

TextB = ListB[0]

TextC = ListC[0]

root = Tk()

root.title("Program")

root['background'] ='gray'

LabelVar1 = StringVar()

LabelVar1.set(TextA)

Frame1 = Frame(root)

Frame1.place(x=0, y=0, width=100, height=50)

Label1 = Label(Frame1, textvariable=LabelVar1, anchor='w')

Label1.pack(side=LEFT)

LabelVar2 = StringVar()

LabelVar2.set(TextB)

Frame2 = Frame(root)

Frame2.place(x=0, y=50, width=100, height=50)

Label2 = Label(Frame2, textvariable=LabelVar2, anchor='w')

Label2.pack(side=LEFT)

LabelVar3 = StringVar()

LabelVar3.set(TextC)

Frame3 = Frame(root)

Frame3.place(x=0, y=100, width=100, height=50)

Label3 = Label(Frame3, textvariable=LabelVar3, anchor='w')

Label3.pack(side=LEFT)

Frame_I = Frame(root)

Frame_I.place(x = 100, y = 0, width=100, height=70)

Button_I = Button(Frame_I, text = "Button" , width = 100, height=70, command = PrintText)

Button_I.place(x=0, y=0)

Button_I.grid(row=0, column=0, sticky=W, pady=4)

Button_I.pack()

root.mainloop()

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值