85 @brief Initialize widgets
89 "Ausschneiden": self.
cut,
90 "Kopieren": self.
copy,
91 "Einfügen": self.
paste
93 self.
menu = Menu(self, tearoff=0)
94 for text, callback
in d_context.items():
95 self.
menu.add_command(label=text, command=callback)
99 s_clipboard_text = clipboard.paste()
100 s_compare_string =
"https://"
102 if s_clipboard_text[0:len(s_compare_string)] == s_compare_string:
104 YouTube(s_clipboard_text)
106 except BaseException:
109 s_default_text = s_clipboard_text
110 s_default_status =
"URL aus Zwischenablage wurde eingefügt!"
113 s_default_status =
"URL eingeben und Download starten!"
115 self.
insert_btn.configure(text=
"Einfügen", fg_color=
"green", text_color=
"white", command=self.
input_link)
116 self.
direct_btn.configure(text=
"Direkt Download", fg_color=
"darkorange", text_color=
"white", command=self.
direct_clicked)
118 self.
status_lbl.configure(text=s_default_status, text_color=
"grey", font=CTkFont(family=FONT_NAME, size=FONT_SIZE))
120 self.
title_lbl.configure(text=
"Aktueller Song", text_color=
"orange", font=CTkFont(family=FONT_NAME, size=FONT_SIZE))
122 self.
format_lbl.configure(text=
"Wähle ein Format:", font=CTkFont(size=FONT_SIZE))
126 self.
open_folder_btn.configure(text=
"Öffne Speicherort", fg_color=
"grey", text_color=
"white")
128 self.
copyright_lbl.configure(text=version.__copyright__, font=CTkFont(family=FONT_NAME, size=FONT_SIZE))