python电影下载窗口

#coding=gbk
from tkinter import *

##创建窗口
mywindow = Tk()
##修改窗口名称
mywindow.title(“movie down”)
##窗口大小
mywindow.geometry(“600x400+600+240”)
#mywindow.geometry("+600+240")
###创建标签
label = Label(mywindow,text = “Please input movie url”,font = (‘华为行楷’,16))
#label = Label(mywindow,text = “Please input movie url”,font = (‘华为行楷’,10)
###定位标签 /grid网格式部署/pack/place
#label.grid()
label.grid(row = 0,column = 0)
##显示窗口
##输入框
entry =Entry(mywindow,font = (‘华为行楷’,25))
entry.grid(row = 0,column = 1)
###列表框控件
text = Listbox(mywindow,font = (‘华为行楷’,10),width = 84,height = 23)
text.grid(row = 1,columnspan = 2)
###点击按钮
button = Button(mywindow,text=“begin”,font = (‘华为行楷’,16))
#button = Button(mywindow,text=“begin”,font = (‘华为行楷’,16),command = download_movie)
button.grid(row = 2,column = 0,sticky = W)
button1 = Button(mywindow,text=“exit”,font = (‘华为行楷’,16))
button1.grid(row = 2,column = 1,sticky = E)
mywindow.mainloop()

效果图 如下
python电影下载窗口_第1张图片

你可能感兴趣的:(Python,python,编辑器)