55from src .change_name_description_photo import handle_change_name_description_photo
66from src .commentator import TelegramCommentator
77from src .config_handler import (program_version , program_last_modified_date , program_name , app_log , errors_log ,
8- WINDOW_WIDTH )
8+ WINDOW_WIDTH , WINDOW_HEIGHT )
99from src .core .handle_connect_accounts import handle_connect_accounts
1010from src .core .handlers import handle_documentation , handle_creating_list_of_channels , handle_settings
1111from src .core .views import PRIMARY_COLOR , TITLE_FONT_WEIGHT
@@ -25,7 +25,6 @@ class Application:
2525 def __init__ (self ):
2626 self .page = None
2727 self .info_list = None
28- self .WINDOW_HEIGHT = 600
2928 self .SPACING = 5
3029 self .RADIUS = 5
3130 self .LINE_COLOR = ft .Colors .GREY
@@ -39,12 +38,12 @@ async def actions_with_the_program_window(self, page: ft.Page):
3938 """Изменение на изменение главного окна программы."""
4039 page .title = f"Версия { program_version } . Дата изменения { program_last_modified_date } "
4140 page .window .width = WINDOW_WIDTH # Устанавливаем ширину окна
42- page .window .height = self . WINDOW_HEIGHT
41+ page .window .height = WINDOW_HEIGHT # Устанавливаем высоту окна
4342 page .window .resizable = False
4443 page .window .min_width = WINDOW_WIDTH # Устанавливаем минимальную ширину окна
4544 page .window .max_width = WINDOW_WIDTH # Устанавливаем максимальную ширину окна
46- page .window .min_height = self . WINDOW_HEIGHT
47- page .window .max_height = self . WINDOW_HEIGHT
45+ page .window .min_height = WINDOW_HEIGHT # Устанавливаем минимальную высоту окна
46+ page .window .max_height = WINDOW_HEIGHT # Устанавливаем максимальную высоту окна
4847
4948 def create_title (self , text : str , font_size ) -> ft .Text :
5049 """
0 commit comments