def make_window(theme): sg.theme(theme) layout = [ [ sg.Text("フォルダ"), sg.InputText(key=KEY_TARGET_FOLDER), sg.FolderBrowse(), sg.Checkbox("デバッグ出力を有効にする", default=False, pad=(20, 0), key=KEY_ENABLE_DEBUGMODE), ], [sg.Submit("実行", key=KEY_EXEC_BUTTON)], [sg.Text("\n実行結果")], [sg.Multiline(size=(80, 12), key=KEY_EXEC_RESULT_OUTPUT)], [sg.Text("全パターン出力されます。適切なものを1つ選んで Twitter に投稿してください。")], [sg.Text("\n\nログ")], [sg.Output(size=(80, 12))], ] return sg.Window(f'fgogachacnt FGOガチャ結果スクショ集計 {version}', layout)
sg.FileBrowse(file_types=(("EXE", "text2pcap.exe"),)), ], ], ) ], [sg.Text("Select text file:")], [ sg.Text("File", size=(12, 1)), sg.Input(key="file_path"), sg.FileBrowse(initial_folder=".\\", file_types=(("TXT", "*.txt"),)), ], [ sg.Button("txt", size=(8, 2), auto_size_button=False), sg.Button("pcap", size=(8, 2), auto_size_button=False), ], [sg.Output(size=(45, 7))], ] window = sg.Window("Window Title", layout) while True: event, values = window.read() if event in (sg.WIN_CLOSED): break if event == "txt": execute_command(values["hex_path"], values["file_path"]) elif event == "pcap": fname = "hex-" + Path(values["file_path"]).stem execute_command( values["pcap_path"], "-o", "dec", str(Path(__file__).parent / (fname + ".txt")),
[sg.InputText('', size=(40, 1), key='tweet_text')], [sg.Button('ツイートする', key='tweeting')], [sg.Text('\nフォロー')], [sg.InputText('', size=(40, 1), key='follow_user')], [sg.Button('フォローする', key='following')], [sg.Text('\nリムーブ')], [sg.InputText('', size=(40, 1), key='unfollow_user')], [sg.Button('リムーブする', key='unfollowing')],] ) layout = [ [frame1], [frame2,frame3], [sg.Text('このソフトウェア内にはLGPL 3.0でライセンスされたPySimpleGUI、Apache License 2.0でライセンスされたSelenium、BSDでライセンスされたChromium、ChromeDriverを含みます。\nこのソフトウェアはLGPL3.0でライセンスされています。', size=(80, 3))], [sg.Text('↓以下のコンソールに作業履歴が表示されます。')], [sg.Output(size=(80,10))], [sg.Text('Copyright © 2018-2020 KohnoseLami All Rights Reserved.')] ] window = sg.Window('Twitter Account Manager', layout) options = Options() options.binary_location = path + '/chrome.exe' options.add_argument('--headless') options.add_argument('--lang=ja-JP') driver = webdriver.Chrome(options=options) driver.set_window_size(945,1020) #セッションログイン def t_session_login(): global URL