本文整理匯總了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=''))