@@ -732,6 +732,7 @@ def __init__(self, pyradio_config,
732732 curses .KEY_PREVIOUS : self ._play_previous_station ,
733733 curses .ascii .SO : self ._play_next_station ,
734734 curses .KEY_NEXT : self ._play_next_station ,
735+ ord ('#' ): self ._resize_with_number_sign ,
735736 # ord('d'): self._html_song_title,
736737 # ord('b'): self._show_schedule_editor,
737738 }
@@ -6012,20 +6013,6 @@ def keypress(self, char):
60126013 callback_function = self .refreshBody )
60136014 return
60146015
6015- # if char == ord('1'):
6016- # logger.error('self._cnf.recording_dir = "/home/spiros/pyradio-mkvs"')
6017- # self._cnf.recording_dir = '/home/spiros/home-at-homepc/00000'
6018- # return
6019-
6020- if char in (ord ('#' ), curses .KEY_RESIZE ):
6021- self ._i_am_resizing = True
6022- self ._normal_mode_resize ()
6023- if not self ._limited_width_mode :
6024- if not self ._limited_height_mode :
6025- self ._do_display_notify ()
6026- self ._i_am_resizing = False
6027- return
6028-
60296016 if self .ws .operation_mode == self .ws .MESSAGING_MODE :
60306017 ret = self ._messaging_win .keypress (char )
60316018 if ret :
@@ -6780,10 +6767,11 @@ def keypress(self, char):
67806767 self .ws .operation_mode = self .ws .SCHEDULE_STATION_SELECT_MODE
67816768 if self ._schedule_station_select_win is None :
67826769 self ._schedule_station_select_win = PyRadioSelectStation (
6783- self .bodyWin ,
6784- self ._cnf .stations_dir ,
6785- self ._simple_schedule .playlist ,
6786- self ._simple_schedule .station ,
6770+ parent = self .bodyWin ,
6771+ config_path = self ._cnf .stations_dir ,
6772+ registers_dir = self ._cnf .registers_dir ,
6773+ default_playlist = self ._simple_schedule .playlist ,
6774+ default_station = self ._simple_schedule .station ,
67876775 is_from_schedule = True ,
67886776 global_functions = self ._global_functions
67896777 )
@@ -9094,6 +9082,15 @@ def keypress(self, char):
90949082 # else:
90959083 # self._update_status_bar_right(status_suffix='')
90969084
9085+ def _resize_with_number_sign (self ):
9086+ logger .error ('\n \n resize with number sign\n \n ' )
9087+ self ._i_am_resizing = True
9088+ self ._normal_mode_resize ()
9089+ if not self ._limited_width_mode :
9090+ if not self ._limited_height_mode :
9091+ self ._do_display_notify ()
9092+ self ._i_am_resizing = False
9093+
90979094 def _jump_and_play_selection (self , jumpnr = None ):
90989095 self ._jump_to_jumpnr ('' , jumpnr )
90999096 self .playSelection ()
0 commit comments