diff --git a/desktop_client/desktop/desktop/functionality.py b/desktop_client/desktop/desktop/functionality.py index c579877..2465479 100644 --- a/desktop_client/desktop/desktop/functionality.py +++ b/desktop_client/desktop/desktop/functionality.py @@ -3,9 +3,11 @@ import requests from constants import MCAST, NEXT, SCROLL, VOLUME, P_STATUS, START, STOP, SETTINGS import validators +import re import socket + # This is the backend... class Functionality: def __init__(self): diff --git a/desktop_client/desktop/desktop/gui.py b/desktop_client/desktop/desktop/gui.py index 18ba435..db13909 100644 --- a/desktop_client/desktop/desktop/gui.py +++ b/desktop_client/desktop/desktop/gui.py @@ -17,7 +17,8 @@ def __init__(self): main_window.title("CliView") main_window.geometry("500x700") main_window.resizable(False, False) - # main_window.iconbitmap("Pictures/icon.ico") + #main_window.iconbitmap("Pictures/icon.ico") It only works for Windows. + main_window.tk.call('wm', 'iconphoto', main_window._w, ImageTk.PhotoImage(file='Pictures/icon.ico')) self.app = main_window @@ -55,7 +56,7 @@ def __init__(self): logo_label.pack(anchor="center") # Links frame - self.upload_links = ttk.Entry(input_frame, width=45) + self.upload_links = ttk.Entry(input_frame, width=40) self.upload_links.grid(row=0, column=0, columnspan=2) upload_button = ttk.Button( @@ -65,7 +66,7 @@ def __init__(self): command=lambda: self.upload(self.upload_links.get()) if self.upload_links.get() != "" else self.load_local_file()) upload_button.grid(row=0, column=3) - cast_button = ttk.Button(input_frame, text="CAST", width=13, command=lambda: self.cast() + cast_button = ttk.Button(input_frame, text="CAST ", command=lambda: self.cast() if self.link_list.size() > 0 else self.error("Provide at least one link!")) cast_button.grid(row=0, column=4)