本文整理汇总了Python中tkinter.Checkbutton.place方法的典型用法代码示例。如果您正苦于以下问题:Python Checkbutton.place方法的具体用法?Python Checkbutton.place怎么用?Python Checkbutton.place使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tkinter.Checkbutton
的用法示例。
在下文中一共展示了Checkbutton.place方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: initUI
# 需要导入模块: from tkinter import Checkbutton [as 别名]
# 或者: from tkinter.Checkbutton import place [as 别名]
def initUI(self):
self.parent.title("Checkbutton")
self.pack(fill=BOTH, expand=1)
self.var = IntVar()
cb = Checkbutton(self, text="Show title", variable=self.var, command=self.onClick)
cb.select()
cb.place(x=50, y=50)
示例2: _init_ui
# 需要导入模块: from tkinter import Checkbutton [as 别名]
# 或者: from tkinter.Checkbutton import place [as 别名]
def _init_ui(self):
# Label to specify video link
lbl_video_url = Label(self, text="Video URL:")
lbl_video_url.place(x=20, y=20)
# Entry to enter video url
entr_video_url = Entry(self, width=50, textvariable=self._video_url)
entr_video_url.place(x=100, y=20)
# Checkbutton to extract audio
cb_extract_audio = Checkbutton(self, var=self._extract_audio, text="Only keep audio")
cb_extract_audio.pack()
cb_extract_audio.place(x=20, y=60)
# Button to browse for location
b_folder_choose = Button(self, text="Choose output directory", command=self.ask_directory)
b_folder_choose.place(x=150, y=90)
# Button to start downloading
b_start_download = Button(self, text="Start download", command=self.download)
b_start_download.place(x=20, y=90)
# Log window to log progress
self._logger.place(x=20, y=130)
示例3:
# 需要导入模块: from tkinter import Checkbutton [as 别名]
# 或者: from tkinter.Checkbutton import place [as 别名]
opcije="0|||".split("|")
else:
opcije="0|||".split("|")
#else:
# os.makedirs("C:\\EOP")
# opcije="0||".split("|")
t.title('EOP')
t.config(bg='green',width = 300,height = 600)
c1=Checkbutton(t,text="Remember me",variable=remember,bg='lightblue',activebackground="blue")
c1.place(x=105,y=450)
if opcije[0]=="1":
c1.select()
l1=Label(t,text="REGISTER TO EOP",font=("Verdana",18),bg='pink')
l1.place(x=40,y=1)
l2=Label(t,text="USERNAME:",bg='pink')
l2.place(x=5,y=50)
l3=Label(t,text="E-MAIL:",bg='pink')
l3.place(x=5,y=100)
l4=Label(t,text="PASSWORD:",bg='pink')
l4.place(x=5,y=150)
e1=Entry(t,textvariable=StringVar(t, value=''))
e1.place(x=80,y=51)
e2=Entry(t,textvariable=StringVar(t, value=''))