|
|
|
import remi.gui as gui
|
|
|
|
from remi import start, App
|
|
|
|
import webbrowser
|
|
|
|
import PrerollUpdate
|
|
|
|
from plexapi.server import PlexServer
|
|
|
|
import re
|
|
|
|
import requests
|
|
|
|
import yaml
|
|
|
|
from urllib.parse import quote_plus, urlencode
|
|
|
|
|
|
|
|
|
|
|
|
from plexapi import media, utils, settings, library
|
|
|
|
from plexapi.base import Playable, PlexPartialObject
|
|
|
|
from plexapi.exceptions import BadRequest, NotFound
|
|
|
|
|
|
|
|
from argparse import ArgumentParser
|
|
|
|
import os
|
|
|
|
from os.path import exists
|
|
|
|
import random
|
|
|
|
import pathlib
|
|
|
|
from configparser import *
|
|
|
|
import pathlib
|
|
|
|
import datetime
|
|
|
|
import json
|
|
|
|
|
|
|
|
button_base64 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAoCAYAAAA16j4lAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABUxSURBVHhe7VsJlFTllf7eUntVV+8LNDTQNCDaAorIoriB0YloiMRoEpfomWhOFhXISTIkMY5OzsxRExOPBMUkGo0Yo0jQUQYFFBQ77DQ0S0PT0PteXfv63pt7/1e9g3HBSc6Z+opX7/3bvf9/7/3vvf+rBhlkkEEGGWSQwT8EUvr+maDfs7Iw2tk5R4vHz4OhT0Q8CSnPO9+Ix+sQijUbLkdY0lKH4PUc2D0x8eEVDz6YSg/N4HPGp1Zw87eecnoiPUsRCF4vxZIXxVUZvjw3er1uBNxOJG0qZE2HPZ6A1x9GXncQnmAUUNWopMivSQXeZzy//+GWNLkMPid8YgX3fntljtLTfS+Coe9EVDn/8JQxqDm3DI1j8hG122AQRVn0NOiSoNOdy4puwNsbxqSjzTi35hTGNnVCcTq3Gw7bTzwvrsgo+nPCJ1Kwb/GKK5WEtjaiKt5dMyeiavZksVtNZTIxCXl2C+KaQZeGApsNLdEYcu1WKNTWEYubDA0DZac6cdnWA5h4og2y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0cMiRVlOZj2FcNYJWxwrIpGQcXCHjJNHJRyvMbDxFQkXXU6LjnSg4ZiB4weZKvXXoxQDzXMw0zEVOxwGVMpS+QdHU8RU0xukWgNtVR+IHTjnl0/CyPNwV24Vfdg6LC43Qlt20BldQsv2rXCFFNglSoZI+cmmTsGPd2Lu1GnCKNg4wu0tSIRDYs22
|
|
|
|
|
|
|
|
|
|
|
|
class Rollarr(App):
|
|
|
|
if exists('data.json'):
|
|
|
|
print('ready')
|
|
|
|
else:
|
|
|
|
with open('data.json', 'w') as outfile:
|
|
|
|
json.dump({'URL': ''}, outfile)
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, *args):
|
|
|
|
super(Rollarr, self).__init__(*args)
|
|
|
|
|
|
|
|
def main(self):
|
|
|
|
with open('data.json') as json_file:
|
|
|
|
output = json.load(json_file)
|
|
|
|
self.app = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container = gui.VBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2 = gui.VBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container3 = gui.VBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container4 = gui.VBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5 = gui.VBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6 = gui.VBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6H = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.submission = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
|
|
|
|
self.app.append(self.container)
|
|
|
|
if output.get('Freq') == 'Monthly':
|
|
|
|
self.app.append(self.container2)
|
|
|
|
self.app.remove_child(self.container3)
|
|
|
|
self.app.remove_child(self.container5)
|
|
|
|
self.app.remove_child(self.container4)
|
|
|
|
self.app.remove_child(self.container6)
|
|
|
|
if output.get('Freq') == 'Weekly':
|
|
|
|
self.app.remove_child(self.container2)
|
|
|
|
self.app.remove_child(self.container4)
|
|
|
|
self.app.remove_child(self.container5)
|
|
|
|
self.app.append(self.container3)
|
|
|
|
self.app.remove_child(self.container6)
|
|
|
|
if output.get('Freq') == 'Daily':
|
|
|
|
self.app.remove_child(self.container2)
|
|
|
|
self.app.append(self.container4)
|
|
|
|
self.app.remove_child(self.container5)
|
|
|
|
self.app.remove_child(self.container3)
|
|
|
|
self.app.remove_child(self.container6)
|
|
|
|
if output.get('Freq') == 'Holiday':
|
|
|
|
self.app.remove_child(self.container2)
|
|
|
|
self.app.remove_child(self.container3)
|
|
|
|
self.app.remove_child(self.container5)
|
|
|
|
self.app.append(self.container6)
|
|
|
|
self.app.remove_child(self.container4)
|
|
|
|
if output.get('Freq') == 'Custom':
|
|
|
|
self.app.remove_child(self.container2)
|
|
|
|
self.app.remove_child(self.container3)
|
|
|
|
self.app.append(self.container5)
|
|
|
|
self.app.remove_child(self.container4)
|
|
|
|
self.app.remove_child(self.container6)
|
|
|
|
|
|
|
|
icon = gui.Image("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAYAAAA+s9J6AAABfWlDQ1BJQ0MgUHJvZmlsZQAAKM+Vkd8rg1EYxz/biJimKIqLpXG1aaZEysWWX4WLbcpws732Q23z9r5bWm6VW0WJG78u+Au4Va6VIlJyp1wTN6zX89pqEhfO6Zzn0/ec5+k83wPWcFrJ6FVeyGRzWnDU75yJzDprHrHTRgvdDEYVXZ0MjYT5c7zdYDHjlcesxf9G/UJcV8BSKzykqFpOeEx4Yjmnmrwp3KykogvCx8JuTR4ofG3qsRI/mZws8YfJWjgYkN4ahZ3Jbxz7xkpKywhL57gy6bxSfo/ZiT2enQ5J7JDVjk6QUfw4GWeYAH30MCB7Hx584lCPePd7vvcrf4olyVVkVymgsUiSFDncoualelxiQvS4zDQF0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7TwRhSQJ3iYGJTk1PY008/TX4veixmLGuOh7lnMdbyY/1NZs+ezbKzs0V8PB7tSJQmblX+M1E0jR04iBLN1uYjt3fpuK1yzngkqVmzJps1axa5vSBuV/1AKKOR20899RRLQeXyxaHpaknF1opy2zMW3KbAMa/4XQC5TcSo5aU38TVyfGkOhj/99Hg6RgIRb50GTDmnH3NdMJRBk9OY4lYTLo9ndOUJvW0DZp4DB1GARiX9uY08M3BbQcMifw8bTz2FiqXGLbkNFwpu+xk2yW10G0CBnS/wnuiuUkOspaNwrcz8mZ1+5f+ZRBAaht/yHwb3T2fwFVpeNU7qML++ni9x8zZ7MeGuT/YxmLramyavmNQuoYrL5WJt2rRhCxcuJL+DBMGCBQvY6ae
|
|
|
|
|
|
|
|
self.container.append(icon)
|
|
|
|
self.title = gui.Label('Rolarr - Automate your Plex Preroll!', size=(20, 1))
|
|
|
|
self.title.css_font_size = "20px"
|
|
|
|
self.container.append(self.title)
|
|
|
|
self.container.append(gui.Label(" ",height=40))
|
|
|
|
self.container.append(gui.Label('Plex Server URL'))
|
|
|
|
self.url = gui.Input(default_value=output.get('URL'), key='URL')
|
|
|
|
self.container.append(self.url)
|
|
|
|
self.container.append(gui.Label('Plex Server Token'))
|
|
|
|
self.Token = gui.Input(default_value=output.get('Token'), key='Token')
|
|
|
|
self.container.append(self.Token)
|
|
|
|
self.container.append(gui.Label('Schedule'))
|
|
|
|
self.dropDown = gui.DropDown(('Select','Monthly', 'Weekly', 'Daily', 'Holiday', 'Custom'),width=200, key='Freq', enable_events=True)
|
|
|
|
self.container.append(self.dropDown)
|
|
|
|
self.dropDown.onchange.do(self.drop_down_changed)
|
|
|
|
self.dropDown.select_by_value(output.get('Freq'))
|
|
|
|
self.container.append(gui.Label('Default Files'))
|
|
|
|
self.default = gui.Input(default_value=output.get('Default'), key='Default', size=(70, 1))
|
|
|
|
self.btFileDiag = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag.onclick.do(self.open_fileselection_dialog)
|
|
|
|
self.container.append(self.btFileDiag)
|
|
|
|
self.container.append(self.default)
|
|
|
|
self.container.append(gui.Label(" ", height=40))
|
|
|
|
self.save = gui.Button('Save', width=50, height=20)
|
|
|
|
self.submit = gui.Button('Submit', width=50, height=20)
|
|
|
|
self.submission.append(self.save)
|
|
|
|
self.save.onclick.do(self.savefile)
|
|
|
|
self.submission.append(gui.Label("", width=10))
|
|
|
|
self.submission.append(self.submit)
|
|
|
|
self.container.append(self.submission)
|
|
|
|
self.submit.onclick.do(self.submitfile)
|
|
|
|
self.container.append(gui.Label(" ", height=10))
|
|
|
|
self.buy = gui.Image(button_base64, height=59, width=150)
|
|
|
|
self.container.append(self.buy)
|
|
|
|
self.buy.onclick.do(self.open_link)
|
|
|
|
|
|
|
|
|
|
|
|
self.container2.append(gui.Label('Select your files', size=(20, 1), font=("Helvetica", 15)))
|
|
|
|
self.container2.append(gui.Label("Jan : ", size=(5, 1)))
|
|
|
|
self.defaultJan = gui.Input(default_value=output.get('Jan'))
|
|
|
|
self.btFileDiag2 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag2.onclick.do(self.open_fileselection_dialogJan)
|
|
|
|
self.container2H = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H.append(self.btFileDiag2)
|
|
|
|
self.container2H.append(self.defaultJan)
|
|
|
|
self.container2.append(self.container2H)
|
|
|
|
self.container2.append(gui.Label("Feb : ", size=(5, 1)))
|
|
|
|
self.defaultFeb = gui.Input(default_value=output.get('Feb'))
|
|
|
|
self.btFileDiag3 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag3.onclick.do(self.open_fileselection_dialogFeb)
|
|
|
|
self.container2H2 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H2.append(self.btFileDiag3)
|
|
|
|
self.container2H2.append(self.defaultFeb)
|
|
|
|
self.container2.append(self.container2H2)
|
|
|
|
self.container2.append(gui.Label("Mar : ", size=(5, 1)))
|
|
|
|
self.defaultMar = gui.Input(default_value=output.get('Mar'))
|
|
|
|
self.btFileDiag4 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag4.onclick.do(self.open_fileselection_dialogMar)
|
|
|
|
self.container2H3 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H3.append(self.btFileDiag4)
|
|
|
|
self.container2H3.append(self.defaultMar)
|
|
|
|
self.container2.append(self.container2H3)
|
|
|
|
self.container2.append(gui.Label("Apr : ", size=(5, 1)))
|
|
|
|
self.defaultApr = gui.Input(default_value=output.get('Apr'))
|
|
|
|
self.btFileDiag5 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag5.onclick.do(self.open_fileselection_dialogApr)
|
|
|
|
self.container2H4 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H4.append(self.btFileDiag5)
|
|
|
|
self.container2H4.append(self.defaultApr)
|
|
|
|
self.container2.append(self.container2H4)
|
|
|
|
self.container2.append(gui.Label("May : ", size=(5, 1)))
|
|
|
|
self.defaultMay = gui.Input(default_value=output.get('May'))
|
|
|
|
self.btFileDiag6 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag6.onclick.do(self.open_fileselection_dialogMay)
|
|
|
|
self.container2H5 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H5.append(self.btFileDiag6)
|
|
|
|
self.container2H5.append(self.defaultMay)
|
|
|
|
self.container2.append(self.container2H5)
|
|
|
|
self.container2.append(gui.Label("Jun : ", size=(5, 1)))
|
|
|
|
self.defaultJun = gui.Input(default_value=output.get('Jun'))
|
|
|
|
self.btFileDiag7 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag7.onclick.do(self.open_fileselection_dialogJun)
|
|
|
|
self.container2H6 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H6.append(self.btFileDiag7)
|
|
|
|
self.container2H6.append(self.defaultJun)
|
|
|
|
self.container2.append(self.container2H6)
|
|
|
|
self.container2.append(gui.Label("Jul : ", size=(5, 1)))
|
|
|
|
self.defaultJul = gui.Input(default_value=output.get('Jul'))
|
|
|
|
self.btFileDiag8 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag8.onclick.do(self.open_fileselection_dialogJul)
|
|
|
|
self.container2H7 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H7.append(self.btFileDiag8)
|
|
|
|
self.container2H7.append(self.defaultJul)
|
|
|
|
self.container2.append(self.container2H7)
|
|
|
|
self.container2.append(gui.Label("Aug : ", size=(5, 1)))
|
|
|
|
self.defaultAug= gui.Input(default_value=output.get('Aug'))
|
|
|
|
self.btFileDiag9 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag9.onclick.do(self.open_fileselection_dialogAug)
|
|
|
|
self.container2H8 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H8.append(self.btFileDiag9)
|
|
|
|
self.container2H8.append(self.defaultAug)
|
|
|
|
self.container2.append(self.container2H8)
|
|
|
|
self.container2.append(gui.Label("Sep : ", size=(5, 1)))
|
|
|
|
self.defaultSep = gui.Input(default_value=output.get('Sep'))
|
|
|
|
self.btFileDiag10 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag10.onclick.do(self.open_fileselection_dialogSep)
|
|
|
|
self.container2H9 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H9.append(self.btFileDiag10)
|
|
|
|
self.container2H9.append(self.defaultSep)
|
|
|
|
self.container2.append(self.container2H9)
|
|
|
|
self.container2.append(gui.Label("Oct : ", size=(5, 1)))
|
|
|
|
self.defaultOct = gui.Input(default_value=output.get('Oct'))
|
|
|
|
self.btFileDiag11 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag11.onclick.do(self.open_fileselection_dialogOct)
|
|
|
|
self.container2H10 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H10.append(self.btFileDiag11)
|
|
|
|
self.container2H10.append(self.defaultOct)
|
|
|
|
self.container2.append(self.container2H10)
|
|
|
|
self.container2.append(gui.Label("Nov : ", size=(5, 1)))
|
|
|
|
self.defaultNov = gui.Input(default_value=output.get('Nov'))
|
|
|
|
self.btFileDiag12 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag12.onclick.do(self.open_fileselection_dialogNov)
|
|
|
|
self.container2H11 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H11.append(self.btFileDiag12)
|
|
|
|
self.container2H11.append(self.defaultNov)
|
|
|
|
self.container2.append(self.container2H11)
|
|
|
|
self.container2.append(gui.Label("Dec : ", size=(5, 1)))
|
|
|
|
self.defaultDec = gui.Input(default_value=output.get('Dec'))
|
|
|
|
self.btFileDiag13 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag13.onclick.do(self.open_fileselection_dialogDec)
|
|
|
|
self.container2H12 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container2H12.append(self.btFileDiag13)
|
|
|
|
self.container2H12.append(self.defaultDec)
|
|
|
|
self.container2.append(self.container2H12)
|
|
|
|
|
|
|
|
self.container3.append(gui.Label('Select your files', size=(20, 1), font=("Helvetica", 15)))
|
|
|
|
self.container3.append(gui.Label('Start Date', size=(10, 1)))
|
|
|
|
self.weekstart = gui.Date(button_Label="Select", format='%Y-%m-%d', default_value=output.get('WeekStart'))
|
|
|
|
self.container3.append(self.weekstart)
|
|
|
|
self.container3.append(gui.Label('End Date', size=(10, 1)))
|
|
|
|
self.weekend = gui.Date(button_Label="Select", format='%Y-%m-%d', default_value=output.get('WeekEnd'))
|
|
|
|
self.container3.append(self.weekend)
|
|
|
|
self.container3.append(gui.Label('Path: ', size=(10, 1)))
|
|
|
|
self.WeekPath = gui.Input(default_value=output.get('WeekPath'))
|
|
|
|
self.btFileDiag14 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag14.onclick.do(self.open_fileselection_dialogPath)
|
|
|
|
self.container3.append(self.btFileDiag14)
|
|
|
|
self.container3.append(self.WeekPath)
|
|
|
|
|
|
|
|
|
|
|
|
self.container4.append(gui.Label('Select your files', size=(20, 1), font=("Helvetica", 15)))
|
|
|
|
self.container4.append(gui.Label('Monday', size=(7, 1)))
|
|
|
|
self.Mon = gui.Input(default_value=output.get('Mon'))
|
|
|
|
self.btFileDiag15 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag15.onclick.do(self.open_fileselection_dialogMon)
|
|
|
|
self.container4H = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container4H.append(self.btFileDiag15)
|
|
|
|
self.container4H.append(self.Mon)
|
|
|
|
self.container4.append(self.container4H)
|
|
|
|
self.container4.append(gui.Label('Tuesday', size=(7, 1)))
|
|
|
|
self.Tue = gui.Input(default_value=output.get('Tue'), key='Tue')
|
|
|
|
self.btFileDiag16 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag16.onclick.do(self.open_fileselection_dialogTue)
|
|
|
|
self.container4H2 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container4H2.append(self.btFileDiag16)
|
|
|
|
self.container4H2.append(self.Tue)
|
|
|
|
self.container4.append(self.container4H2)
|
|
|
|
self.container4.append(gui.Label('Wednesday', size=(7, 1)))
|
|
|
|
self.Wed = gui.Input(default_value=output.get('Wed'), key='Wed')
|
|
|
|
self.btFileDiag17 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag17.onclick.do(self.open_fileselection_dialogWed)
|
|
|
|
self.container4H3 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container4H3.append(self.btFileDiag17)
|
|
|
|
self.container4H3.append(self.Wed)
|
|
|
|
self.container4.append(self.container4H3)
|
|
|
|
self.container4.append(gui.Label('Thursday', size=(7, 1)))
|
|
|
|
self.Thu = gui.Input(default_value=output.get('Thu'), key='Thu')
|
|
|
|
self.btFileDiag18 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag18.onclick.do(self.open_fileselection_dialogThu)
|
|
|
|
self.container4H4 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container4H4.append(self.btFileDiag18)
|
|
|
|
self.container4H4.append(self.Thu)
|
|
|
|
self.container4.append(self.container4H4)
|
|
|
|
self.container4.append(gui.Label('Friday', size=(7, 1)))
|
|
|
|
self.Fri = gui.Input(default_value=output.get('Fri'), key='Fri')
|
|
|
|
self.btFileDiag19 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag19.onclick.do(self.open_fileselection_dialogFri)
|
|
|
|
self.container4H5 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container4H5.append(self.btFileDiag19)
|
|
|
|
self.container4H5.append(self.Fri)
|
|
|
|
self.container4.append(self.container4H5)
|
|
|
|
self.container4.append(gui.Label('Sat', size=(7, 1)))
|
|
|
|
self.Sat = gui.Input(default_value=output.get('Sat'), key='Sat')
|
|
|
|
self.btFileDiag20 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag20.onclick.do(self.open_fileselection_dialogSat)
|
|
|
|
self.container4H6 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container4H6.append(self.btFileDiag20)
|
|
|
|
self.container4H6.append(self.Sat)
|
|
|
|
self.container4.append(self.container4H6)
|
|
|
|
self.container4.append(gui.Label('Sunday', size=(7, 1)))
|
|
|
|
self.Sun = gui.Input(default_value=output.get('Sun'), key='Sun')
|
|
|
|
self.btFileDiag21 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag21.onclick.do(self.open_fileselection_dialogSun)
|
|
|
|
self.container4H7 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container4H7.append(self.btFileDiag21)
|
|
|
|
self.container4H7.append(self.Sun)
|
|
|
|
self.container4.append(self.container4H7)
|
|
|
|
|
|
|
|
self.container5.append(gui.Label('Select your files', size=(20, 1), font=("Helvetica", 15)))
|
|
|
|
self.container5.append(gui.Label('Custom Configuration'))
|
|
|
|
self.container5.append(gui.Label('Playback is determined by order then date'))
|
|
|
|
self.container5.append(gui.Label('1. Path: ', size=(8, 1)))
|
|
|
|
self.Path1 = gui.Input(default_value=output.get('Path1'))
|
|
|
|
self.btFileDiag22 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag22.onclick.do(self.open_fileselection_dialogPath1)
|
|
|
|
self.container5H = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H.append(self.btFileDiag22)
|
|
|
|
self.container5H.append(self.Path1)
|
|
|
|
self.container5.append(self.container5H)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start1'))
|
|
|
|
self.container5.append(self.Start)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End1 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End1'))
|
|
|
|
self.container5.append(self.End1)
|
|
|
|
self.container5.append(gui.Label('2. Path: ', size=(8, 1)))
|
|
|
|
self.Path2 = gui.Input(default_value=output.get('Path2'))
|
|
|
|
self.btFileDiag23 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag22.onclick.do(self.open_fileselection_dialogPath2)
|
|
|
|
self.container5H2 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H2.append(self.btFileDiag23)
|
|
|
|
self.container5H2.append(self.Path2)
|
|
|
|
self.container5.append(self.container5H2)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start2 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start2'))
|
|
|
|
self.container5.append(self.Start2)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End2 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End2'))
|
|
|
|
self.container5.append(self.End2)
|
|
|
|
self.container5.append(gui.Label('3. Path: ', size=(8, 1)))
|
|
|
|
self.Path3 = gui.Input(default_value=output.get('Path3'))
|
|
|
|
self.btFileDiag24 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag24.onclick.do(self.open_fileselection_dialogPath3)
|
|
|
|
self.container5H3 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H3.append(self.btFileDiag24)
|
|
|
|
self.container5H3.append(self.Path3)
|
|
|
|
self.container5.append(self.container5H3)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start3 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start3'))
|
|
|
|
self.container5.append(self.Start3)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End3 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End3'))
|
|
|
|
self.container5.append(self.End3)
|
|
|
|
self.container5.append(gui.Label('4. Path: ', size=(8, 1)))
|
|
|
|
self.Path4 = gui.Input(default_value=output.get('Path1'))
|
|
|
|
self.btFileDiag25 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag25.onclick.do(self.open_fileselection_dialogPath4)
|
|
|
|
self.container5H4 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H4.append(self.btFileDiag25)
|
|
|
|
self.container5H4.append(self.Path4)
|
|
|
|
self.container5.append(self.container5H4)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start4 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start4'))
|
|
|
|
self.container5.append(self.Start4)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End4 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End4'))
|
|
|
|
self.container5.append(self.End4)
|
|
|
|
self.container5.append(gui.Label('5. Path: ', size=(8, 1)))
|
|
|
|
self.Path5 = gui.Input(default_value=output.get('Path1'))
|
|
|
|
self.btFileDiag26 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag26.onclick.do(self.open_fileselection_dialogPath5)
|
|
|
|
self.container5H5 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H5.append(self.btFileDiag26)
|
|
|
|
self.container5H5.append(self.Path5)
|
|
|
|
self.container5.append(self.container5H5)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start5 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start5'))
|
|
|
|
self.container5.append(self.Start5)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End5 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End5'))
|
|
|
|
self.container5.append(self.End5)
|
|
|
|
self.container5.append(gui.Label('6. Path: ', size=(8, 1)))
|
|
|
|
self.Path6 = gui.Input(default_value=output.get('Path1'))
|
|
|
|
self.btFileDiag27 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag27.onclick.do(self.open_fileselection_dialogPath6)
|
|
|
|
self.container5H6 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H6.append(self.btFileDiag27)
|
|
|
|
self.container5H6.append(self.Path6)
|
|
|
|
self.container5.append(self.container5H6)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start6 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start6'))
|
|
|
|
self.container5.append(self.Start6)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End6 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End6'))
|
|
|
|
self.container5.append(self.End6)
|
|
|
|
self.container5.append(gui.Label('7. Path: ', size=(8, 1)))
|
|
|
|
self.Path7 = gui.Input(default_value=output.get('Path1'))
|
|
|
|
self.btFileDiag28 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag28.onclick.do(self.open_fileselection_dialogPath7)
|
|
|
|
self.container5H7 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H7.append(self.btFileDiag28)
|
|
|
|
self.container5H7.append(self.Path7)
|
|
|
|
self.container5.append(self.container5H7)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start7 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start7'))
|
|
|
|
self.container5.append(self.Start7)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End7 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End7'))
|
|
|
|
self.container5.append(self.End7)
|
|
|
|
self.container5.append(gui.Label('8. Path: ', size=(8, 1)))
|
|
|
|
self.Path8 = gui.Input(default_value=output.get('Path8'))
|
|
|
|
self.btFileDiag29 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag29.onclick.do(self.open_fileselection_dialogPath8)
|
|
|
|
self.container5H8 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H8.append(self.btFileDiag29)
|
|
|
|
self.container5H8.append(self.Path8)
|
|
|
|
self.container5.append(self.container5H8)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start8 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start8'))
|
|
|
|
self.container5.append(self.Start8)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End8 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End8'))
|
|
|
|
self.container5.append(self.End8)
|
|
|
|
self.container5.append(gui.Label('9. Path: ', size=(8, 1)))
|
|
|
|
self.Path9 = gui.Input(default_value=output.get('Path9'))
|
|
|
|
self.btFileDiag30 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag30.onclick.do(self.open_fileselection_dialogPath9)
|
|
|
|
self.container5H9 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H9.append(self.btFileDiag30)
|
|
|
|
self.container5H9.append(self.Path9)
|
|
|
|
self.container5.append(self.container5H9)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start9 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start9'))
|
|
|
|
self.container5.append(self.Start9)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End9 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End9'))
|
|
|
|
self.container5.append(self.End9)
|
|
|
|
self.container5.append(gui.Label('10. Path: ', size=(8, 1)))
|
|
|
|
self.Path10 = gui.Input(default_value=output.get('Path10'))
|
|
|
|
self.btFileDiag31 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag31.onclick.do(self.open_fileselection_dialogPath10)
|
|
|
|
self.container5H10 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container5H10.append(self.btFileDiag31)
|
|
|
|
self.container5H10.append(self.Path10)
|
|
|
|
self.container5.append(self.container5H10)
|
|
|
|
self.container5.append(gui.Label('Start Date', size=(8, 1)))
|
|
|
|
self.Start10 = gui.Date(button_Label="Select Start", format='%Y-%m-%d', default_value=output.get('Start10'))
|
|
|
|
self.container5.append(self.Start10)
|
|
|
|
self.container5.append(gui.Label('End Date', size=(8, 1)))
|
|
|
|
self.End10 = gui.Date(button_Label="Select End", format='%Y-%m-%d', default_value=output.get('End10'))
|
|
|
|
self.container5.append(self.End10)
|
|
|
|
|
|
|
|
self.container6.append(gui.Label('Select your files', size=(20, 1), font=("Helvetica", 15)))
|
|
|
|
self.container6.append(gui.Label('Valentines Day: ', size=(11, 1)))
|
|
|
|
self.Pathvday = gui.Input(default_value=output.get('Valentines Day'))
|
|
|
|
self.checkboxvday = gui.CheckBox(checked=output.get('Valentines Day Enabled'))
|
|
|
|
self.btFileDiag32 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag32.onclick.do(self.open_fileselection_dialogPathvday)
|
|
|
|
self.container6H.append(self.btFileDiag32)
|
|
|
|
self.container6H.append(self.Pathvday)
|
|
|
|
self.container6H.append(self.checkboxvday)
|
|
|
|
self.container6.append(self.container6H)
|
|
|
|
self.container6.append(gui.Label('April Fools: ', size=(11, 1)))
|
|
|
|
self.Pathaprilday = gui.Input(default_value=output.get('April Fools'))
|
|
|
|
self.checkboxaprilday = gui.CheckBox(checked=output.get('April Fools Enabled'))
|
|
|
|
self.btFileDiag33 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag33.onclick.do(self.open_fileselection_dialogPathaprilday)
|
|
|
|
self.container6H2 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6H2.append(self.btFileDiag33)
|
|
|
|
self.container6H2.append(self.Pathaprilday)
|
|
|
|
self.container6H2.append(self.checkboxaprilday)
|
|
|
|
self.container6.append(self.container6H2)
|
|
|
|
self.container6.append(gui.Label('July 4th: ', size=(11, 1)))
|
|
|
|
self.Path4th = gui.Input(default_value=output.get('July 4th'))
|
|
|
|
self.checkbox4th = gui.CheckBox(checked=output.get('July 4th Enabled'))
|
|
|
|
self.btFileDiag34= gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag34.onclick.do(self.open_fileselection_dialogPath4th)
|
|
|
|
self.container6H3 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6H3.append(self.btFileDiag34)
|
|
|
|
self.container6H3.append(self.Path4th)
|
|
|
|
self.container6H3.append(self.checkbox4th)
|
|
|
|
self.container6.append(self.container6H3)
|
|
|
|
self.container6.append(gui.Label('Mardi Gras: ', size=(11, 1)))
|
|
|
|
self.Pathmardigras = gui.Input(default_value=output.get('Mardi Gras'))
|
|
|
|
self.checkboxmardigras = gui.CheckBox(checked=output.get('Mardi Gras Enabled'))
|
|
|
|
self.btFileDiag35= gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag35.onclick.do(self.open_fileselection_dialogPathmardigras)
|
|
|
|
self.container6H4 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6H4.append(self.btFileDiag35)
|
|
|
|
self.container6H4.append(self.Pathmardigras)
|
|
|
|
self.container6H4.append(self.checkboxmardigras)
|
|
|
|
self.container6.append(self.container6H4)
|
|
|
|
self.container6.append(gui.Label('Easter: ', size=(11, 1)))
|
|
|
|
self.Patheaster = gui.Input(default_value=output.get('Easter'))
|
|
|
|
self.checkboxeaster = gui.CheckBox(checked=output.get('Easter Enabled'))
|
|
|
|
self.btFileDiag36 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag36.onclick.do(self.open_fileselection_dialogPatheaster)
|
|
|
|
self.container6H5 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6H5.append(self.btFileDiag36)
|
|
|
|
self.container6H5.append(self.Patheaster)
|
|
|
|
self.container6H5.append(self.checkboxeaster)
|
|
|
|
self.container6.append(self.container6H5)
|
|
|
|
self.container6.append(gui.Label('Halloween: ', size=(11, 1)))
|
|
|
|
self.Pathhalloween = gui.Input(default_value=output.get('Halloween'))
|
|
|
|
self.checkboxhalloween = gui.CheckBox(checked=output.get('Halloween Enabled'))
|
|
|
|
self.btFileDiag37 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag37.onclick.do(self.open_fileselection_dialogPathhalloween)
|
|
|
|
self.container6H6 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6H6.append(self.btFileDiag37)
|
|
|
|
self.container6H6.append(self.Pathhalloween)
|
|
|
|
self.container6H6.append(self.checkboxhalloween)
|
|
|
|
self.container6.append(self.container6H6)
|
|
|
|
self.container6.append(gui.Label('Thanksgiving: ', size=(11, 1)))
|
|
|
|
self.PathThanksgiving = gui.Input(default_value=output.get('Thanksgiving'))
|
|
|
|
self.checkboxThanksgiving = gui.CheckBox(checked=output.get('Thanksgiving Enabled'))
|
|
|
|
self.btFileDiag38 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag38.onclick.do(self.open_fileselection_dialogPathThanksgiving)
|
|
|
|
self.container6H7 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6H7.append(self.btFileDiag38)
|
|
|
|
self.container6H7.append(self.PathThanksgiving)
|
|
|
|
self.container6H7.append(self.checkboxThanksgiving)
|
|
|
|
self.container6.append(self.container6H7)
|
|
|
|
self.container6.append(gui.Label('Christmas: ', size=(11, 1)))
|
|
|
|
self.PathChristmas = gui.Input(default_value=output.get('Christmas'))
|
|
|
|
self.checkboxChristmas = gui.CheckBox(checked=output.get('Christmas Enabled'))
|
|
|
|
self.btFileDiag39 = gui.Button('Select', width=100, height=20)
|
|
|
|
self.btFileDiag39.onclick.do(self.open_fileselection_dialogPathChristmas)
|
|
|
|
self.container6H8 = gui.HBox(margin='0px auto', style={'display': 'block', 'overflow': 'hidden'})
|
|
|
|
self.container6H8.append(self.btFileDiag39)
|
|
|
|
self.container6H8.append(self.PathChristmas)
|
|
|
|
self.container6H8.append(self.checkboxChristmas)
|
|
|
|
self.container6.append(self.container6H8)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# returning the root widget
|
|
|
|
return self.app
|
|
|
|
|
|
|
|
|
|
|
|
def open_fileselection_dialog(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders', True,
|
|
|
|
'.')
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirm)
|
|
|
|
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirm(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.default.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogJan(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders', True,
|
|
|
|
'.')
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmJan)
|
|
|
|
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmJan(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultJan.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogFeb(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',True,'.',True,False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmFeb)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmFeb(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultFeb.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogMar(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmMar)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
def on_fileselection_dialog_confirmMar(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultMar.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogApr(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmApr)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
def on_fileselection_dialog_confirmApr(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultApr.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogMay(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmMay)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
def on_fileselection_dialog_confirmMay(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultMay.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogJun(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmJun)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmJun(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultJun.set_value(';'.join(filelist))
|
|
|
|
def open_fileselection_dialogJul(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmJul)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
def on_fileselection_dialog_confirmJul(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultJul.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogAug(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmAug)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
def on_fileselection_dialog_confirmAug(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultAug.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogSep(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmSep)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
def on_fileselection_dialog_confirmSep(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultSep.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogOct(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmOct)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
def on_fileselection_dialog_confirmOct(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultOct.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogNov(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmNov)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
def on_fileselection_dialog_confirmNov(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultNov.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogDec(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmDec)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmDec(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.defaultDec.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.WeekPath.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.WeekPath.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath1(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath1)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath1(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path1.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath2(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath2)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath2(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path2.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath3(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath3)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath3(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path3.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath4(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath4)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath4(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path4.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath5(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath5)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath5(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path5.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath6(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath6)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath6(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path6.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath7(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath7)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath7(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path7.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath8(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath8)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath8(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path8.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath9(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath9)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath9(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path9.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath10(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath10)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath10(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.WeekPath.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
|
|
|
|
def open_fileselection_dialogMon(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmMon)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmMon(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Mon.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogTue(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmTue)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmTue(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Tue.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogWed(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmWed)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmWed(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Wed.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogThu(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmThu)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmThu(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Thu.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogFri(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmFri)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmFri(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Fri.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogSat(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmSat)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmSat(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Sat.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogSun(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmSun)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmSun(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Sun.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPathvday(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmvday)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmvday(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Pathvday.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPathaprilday(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmaprilday)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmaprilday(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Pathaprilday.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPath4th(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPath4th)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPath4th(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Path4th.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPathmardigras(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPathmardigras)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPathmardigras(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Pathmardigras.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPatheaster(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPatheaster)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPatheaster(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Patheaster.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPathhalloween(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPathhalloween)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPathhalloween(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.Pathhalloween.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPathThanksgiving(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPathThanksgiving)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPathThanksgiving(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.PathThanksgiving.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
def open_fileselection_dialogPathChristmas(self, widget):
|
|
|
|
self.fileselectionDialog = gui.FileSelectionDialog('File Selection Dialog', 'Select files and folders',
|
|
|
|
True, '.', True, False)
|
|
|
|
self.fileselectionDialog.confirm_value.do(
|
|
|
|
self.on_fileselection_dialog_confirmPathChristmas)
|
|
|
|
# here is returned the Input Dialog widget, and it will be shown
|
|
|
|
self.fileselectionDialog.show(self)
|
|
|
|
|
|
|
|
def on_fileselection_dialog_confirmPathChristmas(self, widget, filelist):
|
|
|
|
# a list() of filenames and folders is returned
|
|
|
|
self.PathChristmas.set_value(';'.join(filelist))
|
|
|
|
|
|
|
|
|
|
|
|
#change pre-roll types
|
|
|
|
def drop_down_changed(self, widget, value):
|
|
|
|
print(value)
|
|
|
|
if value == 'Monthly':
|
|
|
|
self.app.append(self.container2)
|
|
|
|
self.app.remove_child(self.container3)
|
|
|
|
self.app.remove_child(self.container5)
|
|
|
|
self.app.remove_child(self.container4)
|
|
|
|
self.app.remove_child(self.container6)
|
|
|
|
if value == 'Weekly':
|
|
|
|
self.app.remove_child(self.container2)
|
|
|
|
self.app.remove_child(self.container4)
|
|
|
|
self.app.remove_child(self.container5)
|
|
|
|
self.app.append(self.container3)
|
|
|
|
self.app.remove_child(self.container6)
|
|
|
|
if value == 'Daily':
|
|
|
|
self.app.remove_child(self.container2)
|
|
|
|
self.app.append(self.container4)
|
|
|
|
self.app.remove_child(self.container5)
|
|
|
|
self.app.remove_child(self.container3)
|
|
|
|
self.app.remove_child(self.container6)
|
|
|
|
if value == 'Holiday':
|
|
|
|
self.app.remove_child(self.container2)
|
|
|
|
self.app.remove_child(self.container3)
|
|
|
|
self.app.remove_child(self.container5)
|
|
|
|
self.app.append(self.container6)
|
|
|
|
self.app.remove_child(self.container4)
|
|
|
|
if value == 'Custom':
|
|
|
|
self.app.remove_child(self.container2)
|
|
|
|
self.app.remove_child(self.container3)
|
|
|
|
self.app.append(self.container5)
|
|
|
|
self.app.remove_child(self.container4)
|
|
|
|
self.app.remove_child(self.container6)
|
|
|
|
|
|
|
|
def open_link(self, widget):
|
|
|
|
webbrowser.open_new('https://www.buymeacoffee.com/thehumanrobot')
|
|
|
|
|
|
|
|
def savefile(self,widget):
|
|
|
|
with open('data.json', 'w') as outfile:
|
|
|
|
json.dump({'URL': self.url.get_value(), 'Token': self.Token.get_value(), 'Freq': self.dropDown.get_value(), 'Jan': self.defaultJan.get_value(),
|
|
|
|
'Feb': self.defaultFeb.get_value(), 'Mar': self.defaultMar.get_value(), 'Apr': self.defaultApr.get_value(), 'May': self.defaultMay.get_value(),
|
|
|
|
'Jun': self.defaultJun.get_value(), 'Jul': self.defaultJul.get_value(), 'Aug': self.defaultAug.get_value(), 'Sep': self.defaultSep.get_value(),
|
|
|
|
'Oct': self.defaultOct.get_value(), 'Nov': self.defaultNov.get_value(), 'Dec': self.defaultDec.get_value(),
|
|
|
|
'WeekStart': self.weekstart.get_value(), 'WeekEnd': self.weekend.get_value(), 'WeekPath': self.WeekPath.get_value(),
|
|
|
|
'Sun': self.Sun.get_value(), 'Mon': self.Mon.get_value(), 'Tue': self.Tue.get_value(), 'Wed': self.Wed.get_value(),
|
|
|
|
'Thu': self.Thu.get_value(), 'Fri': self.Fri.get_value(), 'Sat': self.Sat.get_value(),
|
|
|
|
'Valentines Day': self.Pathvday.get_value(), 'April Fools': self.Pathaprilday.get_value(),
|
|
|
|
'July 4th': self.Path4th.get_value(), 'Mardi Gras': self.Pathmardigras.get_value(), 'Easter': self.Patheaster.get_value(),
|
|
|
|
'Halloween': self.Pathhalloween.get_value(), 'Thanksgiving': self.PathThanksgiving.get_value(),
|
|
|
|
'Christmas': self.PathChristmas.get_value(), 'Valentines Day Enabled': self.checkboxvday.get_value()
|
|
|
|
, 'April Fools Enabled': self.checkboxaprilday.get_value(),
|
|
|
|
'July 4th Enabled': self.checkbox4th.get_value(),
|
|
|
|
'Mardi Gras Enabled': self.checkboxmardigras.get_value(), 'Easter Enabled': self.checkboxeaster.get_value(),
|
|
|
|
'Halloween Enabled': self.checkboxhalloween.get_value(),
|
|
|
|
'Thanksgiving Enabled': self.checkboxThanksgiving.get_value(),
|
|
|
|
'Christmas Enabled': self.checkboxChristmas.get_value(), 'Default': self.default.get_value()
|
|
|
|
, 'Start1': self.Start.get_value(), 'Start2': self.Start2.get_value(), 'Start3': self.Start3.get_value(),
|
|
|
|
'Start4': self.Start4.get_value(), 'Start5': self.Start5.get_value(), 'Start6': self.Start6.get_value(),
|
|
|
|
'Start7': self.Start7.get_value(), 'Start8': self.Start8.get_value(), 'Start9': self.Start9.get_value(),
|
|
|
|
'Start10': self.Start10.get_value()
|
|
|
|
, 'End1': self.End1.get_value(), 'End2': self.End2.get_value(), 'End3': self.End3.get_value(),
|
|
|
|
'End4': self.End4.get_value(), 'End5': self.End5.get_value(), 'End6': self.End6.get_value(), 'End7': self.End7.get_value(),
|
|
|
|
'End8': self.End8.get_value(), 'End9': self.End9.get_value(), 'End10': self.End10.get_value()
|
|
|
|
, 'Path1': self.Path1.get_value(), 'Path2': self.Path2.get_value(), 'Path3': self.Path3.get_value(),
|
|
|
|
'Path4': self.Path4.get_value(), 'Path5': self.Path5.get_value(), 'Path6': self.Path6.get_value(),
|
|
|
|
'Path7': self.Path7.get_value(), 'Path8': self.Path8.get_value(), 'Path9': self.Path9.get_value(),
|
|
|
|
'Path10': self.Path10.get_value()}, outfile)
|
|
|
|
self.popup = gui.GenericDialog("Your changes are saved")
|
|
|
|
self.popup.show(self)
|
|
|
|
|
|
|
|
def submitfile(self,widget):
|
|
|
|
with open('data.json', 'w') as outfile:
|
|
|
|
json.dump({'URL': self.url.get_value(), 'Token': self.Token.get_value(), 'Freq': self.dropDown.get_value(), 'Jan': self.defaultJan.get_value(),
|
|
|
|
'Feb': self.defaultFeb.get_value(), 'Mar': self.defaultMar.get_value(), 'Apr': self.defaultApr.get_value(), 'May': self.defaultMay.get_value(),
|
|
|
|
'Jun': self.defaultJun.get_value(), 'Jul': self.defaultJul.get_value(), 'Aug': self.defaultAug.get_value(), 'Sep': self.defaultSep.get_value(),
|
|
|
|
'Oct': self.defaultOct.get_value(), 'Nov': self.defaultNov.get_value(), 'Dec': self.defaultDec.get_value(),
|
|
|
|
'WeekStart': self.weekstart.get_value(), 'WeekEnd': self.weekend.get_value(), 'WeekPath': self.WeekPath.get_value(),
|
|
|
|
'Sun': self.Sun.get_value(), 'Mon': self.Mon.get_value(), 'Tue': self.Tue.get_value(), 'Wed': self.Wed.get_value(),
|
|
|
|
'Thu': self.Thu.get_value(), 'Fri': self.Fri.get_value(), 'Sat': self.Sat.get_value(),
|
|
|
|
'Valentines Day': self.Pathvday.get_value(), 'April Fools': self.Pathaprilday.get_value(),
|
|
|
|
'July 4th': self.Path4th.get_value(), 'Mardi Gras': self.Pathmardigras.get_value(), 'Easter': self.Patheaster.get_value(),
|
|
|
|
'Halloween': self.Pathhalloween.get_value(), 'Thanksgiving': self.PathThanksgiving.get_value(),
|
|
|
|
'Christmas': self.PathChristmas.get_value(), 'Valentines Day Enabled': self.checkboxvday.get_value()
|
|
|
|
, 'April Fools Enabled': self.checkboxaprilday.get_value(),
|
|
|
|
'July 4th Enabled': self.checkbox4th.get_value(),
|
|
|
|
'Mardi Gras Enabled': self.checkboxmardigras.get_value(), 'Easter Enabled': self.checkboxeaster.get_value(),
|
|
|
|
'Halloween Enabled': self.checkboxhalloween.get_value(),
|
|
|
|
'Thanksgiving Enabled': self.checkboxThanksgiving.get_value(),
|
|
|
|
'Christmas Enabled': self.checkboxChristmas.get_value(), 'Default': self.default.get_value()
|
|
|
|
, 'Start1': self.Start.get_value(), 'Start2': self.Start2.get_value(), 'Start3': self.Start3.get_value(),
|
|
|
|
'Start4': self.Start4.get_value(), 'Start5': self.Start5.get_value(), 'Start6': self.Start6.get_value(),
|
|
|
|
'Start7': self.Start7.get_value(), 'Start8': self.Start8.get_value(), 'Start9': self.Start9.get_value(),
|
|
|
|
'Start10': self.Start10.get_value()
|
|
|
|
, 'End1': self.End1.get_value(), 'End2': self.End2.get_value(), 'End3': self.End3.get_value(),
|
|
|
|
'End4': self.End4.get_value(), 'End5': self.End5.get_value(), 'End6': self.End6.get_value(), 'End7': self.End7.get_value(),
|
|
|
|
'End8': self.End8.get_value(), 'End9': self.End9.get_value(), 'End10': self.End10.get_value()
|
|
|
|
, 'Path1': self.Path1.get_value(), 'Path2': self.Path2.get_value(), 'Path3': self.Path3.get_value(),
|
|
|
|
'Path4': self.Path4.get_value(), 'Path5': self.Path5.get_value(), 'Path6': self.Path6.get_value(),
|
|
|
|
'Path7': self.Path7.get_value(), 'Path8': self.Path8.get_value(), 'Path9': self.Path9.get_value(),
|
|
|
|
'Path10': self.Path10.get_value()}, outfile)
|
|
|
|
PrerollUpdate.update()
|
|
|
|
self.popup = gui.GenericDialog("Your server pre-roll is updated")
|
|
|
|
self.popup.show(self)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
# starts the web server
|
|
|
|
start(Rollarr,address='0.0.0.0', port=3100, start_browser=True, multiple_instance=True)
|