Skip to content

Instantly share code, notes, and snippets.

@sariths
Created September 28, 2020 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sariths/d4edd138c7d86dd1fd45025f6d157b5b to your computer and use it in GitHub Desktop.
Save sariths/d4edd138c7d86dd1fd45025f6d157b5b to your computer and use it in GitHub Desktop.
import PySimpleGUI as sg
layout = [[sg.Text("Channel ID")],
[sg.InputText(key="url")],
[sg.Text("Storage location")],
[sg.InputText(default_text=r"C:\Users\Sarith\Desktop\music", key="loc")],
[sg.Checkbox("Include uploads", key="includeUploads", default=True)],
[sg.Checkbox("Return videos uploaded by channel only", key="channelUploadsOnly",
default=True)],
[sg.Checkbox("Combine unlisted videos into a single list",
key="combineUnlisted", default=True)],
[sg.Checkbox("Ignore videos that are already in uploads",
key="ignoreVideosAlreadyInUploads", default=True)],
[sg.Submit(), sg.Cancel()]]
window = sg.Window('Search Params', auto_size_text=True,
default_element_size=(40, 1)).Layout(layout)
event, values = window.Read()
window.Close()
print (values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment