Skip to content

Commit

Permalink
Merge pull request #27 from gyaur/desktop_client_dev
Browse files Browse the repository at this point in the history
Desktop client dev
  • Loading branch information
gyaur authored Dec 17, 2020
2 parents 24fae94 + 010ac90 commit 773e6df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions desktop_client/desktop/desktop/functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
7 changes: 4 additions & 3 deletions desktop_client/desktop/desktop/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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(
Expand All @@ -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)

Expand Down

0 comments on commit 773e6df

Please sign in to comment.