00 global\color_code=""" 原色大辞典: https://www.colordic.org/ dialog bg #ececec black #000000 white #ffffff red #ff0000 green #008000 blue #0000ff yellow #ffff00 cyan / aqua #00ffff magenta / fuchsia #ff00ff gray #808080 silver #c0c0c0 navy #000080 teal #008080 olive #808000 maroon #800000 purple #800080 orange #ffa500 pink #ffc0cb gold #ffd700 tomato #ff6347 skyblue #87ceeb lightgreen #90ee90 darkgray #a9a9a9 lavender #e6e6fa chocolate #d2691e coral #ff7f50 """ 00 global\comment block=""" ############################################################## # comment ############################################################## """ 00 global\new script=""" exit_if_not_exist $(tkprog_X_path) [XXX].select End """ 00 global\execute section=""" [translate_execute] Caption=View MD file get_directory "$(input_path)" dir_name get_filebody "$(input_path)" filebody get_ext "$(input_path)" ext join_path file_path "$(dir_name)" "$(filebody).md" $(start) "$(editor_path)" "$(file_path)" join_path script "$(tkprog_X_path)" converter get_paper_inf.py $(start_cmd_c) "$(python3_path)" "$(script)" "$(input_path)" --api=$(api_key) --rename=$(rename) End """ 00 global\All section example=""" [ButtonX.Menu] Caption=Example read_ini $i "Converter" "work_dir" last_dir "." chdir "$(last_dir)" get_open_dir_name "$(root_dir)" ファイルを変換する親ディレクトリィを選択してください set root_dir=$o write_ini $i "Converter" "work_dir" "$(root_dir)" chdir "$(root_dir)" get_open_file_name "*.pptx;*.docx;*.pdf" "$(last_dir)" 入力ファイル(pptx/docx/pdf)を選択してください set input_path=$o get_directory "$(input_path)" dir_name write_ini $i "Converter" "work_dir" "$(dir_name)" chdir "$(dir_name)" set_if_blank root_diroutput_format output_format=mp3 set_if_blank bitrate bitrate=192k set_if_blank max_level max_level=-1 set_title Test: $(root_dir) new_dialog add_dialog choose_dir\ root_dir\ "label_head=Root directory:"\ entry_width=50\ "def_val=$(root_dir)"\ state=readonly\ show_path_button=1\ "label_tail=" add_dialog tab dummy "text=PowerPoint" add_dialog label label1 "text=PPTx files converter settings:"\ "fg=red"\ "style=bold" add_dialog choose_file\ input_path\ "label_head=Input file:"\ entry_width=50\ "def_val=$(input_path)"\ state=readonly\ show_path_button=1\ "file_type=Text Files:*.txt;*.md//PDF;*.pdf//Office files:*.docx;*.pptx"\ "label_tail=" add_dialog spinbox \ max_level\ var_type=int\ "label_head=Maximum depth of sub directories:"\ entry_width=5\ "init_val=$(max_level)"\ "def_val=-1"\ from=-1\ to=100\ increment=1\ "help_text="\ "label_tail=" add_dialog frame dummy "bg=#ececec" "relief=groove" add_dialog button dummy "label_head=Convert to:" "text=pdf" "command=call [pptx2pdf_execute]" add_dialog button dummy "text=text" "command=call [pptx2txt_execute]" add_dialog pack_frame dummy add_dialog tab dummy "text=Word" add_dialog label label1 "text=DOCx files converter settings:"\ "fg=red"\ "style=bold" add_dialog spinbox \ max_level\ var_type=int\ "label_head=Maximum depth of sub directories:"\ entry_width=5\ "init_val=$(max_level)"\ "def_val=-1"\ from=-1\ to=100\ increment=1\ "help_text="\ "label_tail=" add_dialog frame dummy "bg=#ececec" "relief=groove" add_dialog button dummy "text=pdf" "command=call [docx2pdf_execute]" add_dialog pack_frame dummy add_dialog reset_tab dummy add_dialog frame dummy "bg=#ececec" "relief=groove" add_dialog button dummy "text=explorer" "command=call [explorer]" add_dialog button dummy "text=cmd" "command=call [cmd]" add_dialog pack_frame dummy custom_dialog "Test" close End """ 00 global\new section=""" [Button1.XXX] Caption=Section title End """ 00 global\tooltip=add_tooltip 1 "Run links" #FFFF00 #0000ff 00 global\popup menu=""" create_menu hmenu "title=menu example"\ "label=first menu" "command=call [command]" add_context_menu hmenu 13 """ 01 dialog\dialog=""" new_dialog custom_dialog "Convolution: configure" close """ 01 dialog\tab=""" add_dialog tab dummy "text=top" add_dialog reset_tab dummy """ 01 dialog\frame=""" add_dialog frame dummy "bg=#ececec" "relief=groove" add_dialog pack_frame dummy """ 01 dialog\choose_file=""" add_dialog choose_file\ defect_parameter_path\ "label_head=parameter path:"\ entry_width=35\ "initialdir=$(defect_parameter_dir)"\ "def_val=$(defect_parameter_path)"\ "file_type=ENV File:*.env"\ show_path_button=0\ show_option_button=0\ "button1_text=open"\ "button1_command=call [VASP_defect_open_parameter_file]"\ "label_tail=" """ 01 dialog\choose_dir=""" add_dialog choose_dir\ ATLAS_template_dir\ "label_head=template path:"\ entry_width=50\ initialdir=$(ATLAS_template_dir)\ state=readonly\ show_path_button=1\ "label_tail=" """ 01 dialog\button label=add_dialog button dummy "label_head=edit:" "text=run" "command=call [Convolution_run]" 01 dialog\button=add_dialog button=n dummy "text=run" "command=call [Convolution_run]" 01 dialog\label=add_dialog label dummy "text=message" "fg=red" "style=bold" 01 dialog\message=""" add_dialog message\ dummy\ "relief=raised"\ width=1000\ fg=red\ "text=OKを押すと、何もせずにLauncher画面に戻ります" """ 01 dialog\entry=""" add_dialog entry\ aKProduct\ "label_head=aKProduct:"\ width=15\ "def_val=1.5"\ "help_text="\ "label_tail=" """ 01 dialog\textarea=""" add_dialog text \\n role_content\ "label_head=" \ width=80 \ height=2 \ "text=$(role_content)"\ n "label_tail=" """ 01 dialog\combobox=""" add_dialog combobox\ klist\ label_head=kpoints:\ state=readonly\ width=30\ height=15\ "init_val=$(klist)"\ def_val=SimpleCubic.klist\ "values=$(klist_list)"\ "option1"\ "option2 # comment"\ button1_text=edit template\ "button1_command=call [VASP_edit_klist]"\ "button2_text=copy"\ "button2_command=call [VASP_copy_klist]"\ label_tail= """ 01 dialog\listbox=add_dialog listbox 01 dialog\spinbox=""" add_dialog spinbox \ egrid_interval\ var_type=int\ "label_head=egrid_interval:"\ entry_width=5\ "init_val=$(ndata_skip_decay)"\ "def_val=1"\ from=1\ to=20\ increment=1\ "help_text="\ "label_tail=" """ 01 dialog\checkbox=""" add_dialog checkbox\ do_mirror\ "label_head="\ "init_val=$(do_mirror)"\ "label_tail=入力データを負側にミラーリングする (Perform data mirroring)" """ 01 dialog\radiobutton=add_dialog radiobutton 01 dialog\set_dialog_var=set_dialog_var widget_var str 01 dialog\set_dialog_values=set_dialog_values widget_var value1##value2##value3 01 dialog\get_file_list=""" get_file_list files_tklib $(dir_path) *.py add_dialog combobox\ file_path\ label_head=tklib:\ width=30\ height=15\ init_val=$(file_path)\ values=$(files_tklib)##tkgui/tkapplication_gui.py##tkgui/tktkinter.py\ button1_text=edit\ "button1_command=call [edit_tklib]"\ label_tail= """ 11 message dialog\message_dialog=message_dialog "Launcher.pyをcmd /Cモードで再起動します。Launcherを終了するとコンソールも閉じます" 11 message dialog\ask_yesno_dialog=ask_yesno_dialog message 11 message dialog\ask_okcancel_dialog=ask_okcancel_dialog message 11 message dialog\show_error_dialog=show_error_dialog message ini file\read_ini=read_ini $i "VASP" "work_dir" last_dir "." ini file\write_ini=write_ini $i "VASP" "work_dir" $(CAR_dir) ini file\read_ini_all=read_ini_all $i variable ini file\read_ini_to_vars=read_ini_to_vars $i ini file\load_dotenv=load_dotenv $(env_path)i variable\set_if_blank=set_if_blank hosts_filename hosts_filename=hosts variable\set_if_not_blank=set_if_not_blank hosts_filename hosts_filename=hosts variable\set_if_null=set_if_null hosts_filename hosts_filename=hosts variable\set_if_not_null=set_if_not_null hosts_filename hosts_filename=hosts variable\read_labels=read_labels $(input_path) labels file\add_path=add_path PATH $(tkProg_Root)/bin file\get_open_file_name=get_open_file_name "INCAR" "$(last_dir)" INCARファイルを選択してください file\get_save_file_name=get_save_file_name "*.ini" "$(parameter_dir)" "パラメータファイル (*.ini) を指定してください" file\get_open_dir_name=get_open_dir_name "$(data_root_dir)" ファイルをダウンロードするディレクトリィを選択してください file\choose_if_not_exist=choose_if_not_exist voicevox_path "*.exe" "VOICEVOX.exe を選んでください" file\search_files=search_files csc_path csc.exe c:\programs file\search_latest_file=search_latest_file csc_path csc.exe "C:\Windows\Microsoft.NET\Framework" file\join_path=join_path script_path "$(tkProg_Root)" bin admin mypip.py file\use_os_path_sep=use_os_path_sep var_name file\get_drive=get_drive $s script_drive file\get_filebody=get_filebody $(CIF_path) CIF_file_body file\get_filename=get_filename $(CIF_path) CIF_filename file\get_directory=get_directory $(CIF_path) CAR_dir file\get_last_directory=get_last_directory $(CAR_dir) work_last_dir file\get_ext=get_ext "$(input_path)" ext file\get_file_list=get_file_list hosts_list $(hosts_dir) *.*;* file\check_exist=check_exist $(list_path) "[$(list_path)] が見つかりません。インストールしてください" file\get_cur_dir=get_cur_dir var file\del=del $(script_dir)/6-042-VASP-Obsolete.ini file\chdir=cd directory file\mkdir=md directory file\rmdir=remove directory file\copy=copy source destination control\echo=echo message control\wait_process=wait_process control\show_window=show_window [TopMost|NoTopMost|Normal|Minimize|Maximize] control\confirm=confirm [on|off] control\debug=debug [on|off] control\exit_if_defined=exit_if_defined ENV control\exit_if_defined=exit_if_not_defined ENV control\exit_if_exist=exit_if_exist file control\exit_if_not_exist=exit_if_not_exist file control\bye=bye