def make_please_wait_window(self):
window = self.please_wait_window = tkinter.Toplevel()
window.transient(porcupine.get_main_window())
window.title("Pasting...")
window.geometry('350x150')
window.resizable(False, False)
# disable the close button, there's no good way to cancel this
# forcefully :(
window.protocol('WM_DELETE_WINDOW', (lambda: None))
content = ttk.Frame(window)
content.pack(fill='both', expand=True)
label = ttk.Label(
content, font=('', 12, ''),
text=("Pasting to %s, please wait..." % self.pastebin_name))
label.pack(expand=True)
progressbar = ttk.Progressbar(content, mode='indeterminate')
progressbar.pack(fill='x', padx=15, pady=15)
progressbar.start()
评论列表
文章目录