11# Команду ниже нужно ввести один раз в консоли с включенным Reaper.
22# python -c "import reapy; reapy.configure_reaper()"
3- # pyinstaller --noconfirm --onefile --noconsole --hidden-import=asstosrt --add-data 'background.png;.' ReaperScript.py
3+ # pyinstaller --noconfirm --onefile --noconsole --hidden-import=asstosrt --add-data 'background.png;.' --add-data 'ico.ico;.' --icon=ico.ico ReaperScript.py
44from file_works import (
55 file_works ,
66 path_choice ,
@@ -59,7 +59,6 @@ def audio_select(audio: List[str]) -> None:
5959 track .set_info_string ('P_NAME' , name .upper ())
6060
6161
62- # Использует послендий пресет сплита
6362def split (project : reapy .Project ) -> None :
6463 """Функция для разделения дорог на айтемы"""
6564 RPR .SetMediaItemSelected (project .items [0 ].id , False )
@@ -342,7 +341,6 @@ def project_save(
342341 return new_path
343342
344343
345- # Используется последний пресет рендера
346344def render (folder : str ) -> str :
347345 """Функция для рендеринга файла"""
348346 reapy .perform_action (40015 )
@@ -494,7 +492,8 @@ def resource_path(path):
494492y = (s_height - height ) // 2
495493master .geometry (f'{ width } x{ height } +{ x } +{ y - upper } ' )
496494master .resizable (width = False , height = False )
497- master .title ('REAPERSCRIPT v3.07' )
495+ master .title ('REAPERSCRIPT v3.08' )
496+ master .iconbitmap (default = resource_path ('ico.ico' ))
498497img = Image .open (resource_path ('background.png' ))
499498tk_img = ImageTk .PhotoImage (img )
500499background_label = tkinter .Label (master , image = tk_img )
@@ -536,7 +535,7 @@ def resource_path(path):
536535 column = 0 ,
537536 sticky = tkinter .W
538537 )
539- ToolTip (checkbox , HELP_DICT [option ])
538+ ToolTip (checkbox , HELP_DICT [option ], 1 )
540539 checkboxes [option ] = var
541540BUTTONS = [
542541 'start' ,
@@ -552,7 +551,7 @@ def resource_path(path):
552551 command = lambda : on_save_click (checkboxes , master , BUTTONS )
553552)
554553start_bttn .place (relx = 0.5 , rely = 1.0 , anchor = "s" , y = - 9 )
555- ToolTip (start_bttn , HELP_DICT ['start' ])
554+ ToolTip (start_bttn , HELP_DICT ['start' ], 1 )
556555template_btn = ttk .Button (
557556 master ,
558557 text = 'TEMPLATE' ,
@@ -566,7 +565,7 @@ def resource_path(path):
566565 padx = 6 ,
567566 pady = 3
568567)
569- ToolTip (template_btn , HELP_DICT ['template' ])
568+ ToolTip (template_btn , HELP_DICT ['template' ], 1 )
570569rfxchains_btn = ttk .Button (
571570 master ,
572571 text = 'RFXCHAINS' ,
@@ -580,23 +579,23 @@ def resource_path(path):
580579 padx = 6 ,
581580 pady = 3
582581)
583- ToolTip (rfxchains_btn , HELP_DICT ['rfx' ])
582+ ToolTip (rfxchains_btn , HELP_DICT ['rfx' ], 1 )
584583fix_check_btn = ttk .Button (
585584 master ,
586585 text = 'FIXCHECK' ,
587586 name = 'fixcheck_standalone' ,
588587 command = lambda : on_fix_check_click (master , BUTTONS )
589588)
590589fix_check_btn .place (relx = 0.5 , rely = 1.0 , anchor = "s" , x = 145 , y = - 9 )
591- ToolTip (fix_check_btn , HELP_DICT ['fixcheck_standalone' ])
590+ ToolTip (fix_check_btn , HELP_DICT ['fixcheck_standalone' ], 1 )
592591help_btn = ttk .Button (
593592 master ,
594593 text = 'HELP' ,
595594 name = 'help' ,
596595 command = lambda : show_help_window (master ),
597596)
598597help_btn .place (relx = 0.5 , rely = 1.0 , anchor = "s" , x = 145 , y = - 377 )
599- ToolTip (help_btn , HELP_DICT ['help' ])
598+ ToolTip (help_btn , HELP_DICT ['help' ], 1 )
600599
601600# Чтобы Reaper API подгрузился, Reaper должен быть включен при запуске скрипта
602601if __name__ == '__main__' :
0 commit comments