@@ -28,6 +28,7 @@ def __init__(self, title):
2828
2929 self .add_controls ()
3030 self .connect_controls ()
31+ self .set_navigation ()
3132
3233 self .load_settings ()
3334 if self .debug :
@@ -142,6 +143,75 @@ def connect_controls(self):
142143 self .connect (self .close_button , self .close )
143144 self .connect (self .start_button , self .start )
144145
146+ def set_navigation (self ):
147+ """Set navigations for remote control."""
148+ self .source_edit .controlDown (self .source_browse_button )
149+ self .source_edit .controlRight (self .regex_edit )
150+
151+ self .source_browse_button .controlDown (self .files_edit )
152+ self .source_browse_button .controlUp (self .source_edit )
153+ self .source_browse_button .controlLeft (self .source_clear_button )
154+ self .source_browse_button .controlRight (self .source_clear_button )
155+
156+ self .source_clear_button .controlDown (self .files_edit )
157+ self .source_clear_button .controlUp (self .source_edit )
158+ self .source_clear_button .controlLeft (self .source_browse_button )
159+
160+ self .files_edit .controlDown (self .files_browse_button )
161+ self .files_edit .controlUp (self .source_clear_button )
162+
163+ self .files_browse_button .controlDown (self .files_radiobutton )
164+ self .files_browse_button .controlUp (self .files_edit )
165+ self .files_browse_button .controlRight (self .files_clear_button )
166+
167+ self .files_clear_button .controlDown (self .files_radiobutton )
168+ self .files_clear_button .controlUp (self .files_edit )
169+ self .files_clear_button .controlLeft (self .files_browse_button )
170+
171+ self .files_radiobutton .controlDown (self .destination_edit )
172+ self .files_radiobutton .controlUp (self .files_clear_button )
173+
174+ self .destination_edit .controlDown (self .destination_browse_button )
175+ self .destination_edit .controlUp (self .files_radiobutton )
176+
177+ self .destination_browse_button .controlDown (self .working_dir_radiobutton )
178+ self .destination_browse_button .controlUp (self .destination_edit )
179+ self .destination_browse_button .controlRight (self .destination_clear_button )
180+
181+ self .destination_clear_button .controlDown (self .symlink_radiobutton )
182+ self .destination_clear_button .controlUp (self .destination_edit )
183+ self .destination_clear_button .controlLeft (self .destination_browse_button )
184+ self .destination_clear_button .controlRight (self .help_button )
185+
186+ self .working_dir_radiobutton .controlUp (self .destination_browse_button )
187+ self .working_dir_radiobutton .controlRight (self .symlink_radiobutton )
188+
189+ self .symlink_radiobutton .controlUp (self .destination_clear_button )
190+ self .symlink_radiobutton .controlLeft (self .working_dir_radiobutton )
191+ self .symlink_radiobutton .controlRight (self .close_button )
192+
193+ self .regex_edit .controlDown (self .help_button )
194+ self .regex_edit .controlLeft (self .source_edit )
195+
196+ self .help_button .controlDown (self .close_button )
197+ self .help_button .controlUp (self .regex_edit )
198+ self .help_button .controlLeft (self .destination_clear_button )
199+ self .help_button .controlRight (self .settings_button )
200+
201+ self .settings_button .controlDown (self .start_button )
202+ self .settings_button .controlUp (self .regex_edit )
203+ self .settings_button .controlLeft (self .help_button )
204+
205+ self .close_button .controlUp (self .help_button )
206+ self .close_button .controlLeft (self .symlink_radiobutton )
207+ self .close_button .controlRight (self .start_button )
208+
209+ self .start_button .controlUp (self .settings_button )
210+ self .start_button .controlLeft (self .close_button )
211+
212+ #set initial focus
213+ self .setFocus (self .source_edit )
214+
145215 def source_browse (self ):
146216 self .source_edit .setText (self .dialog .choose_directory ("Select source directory" ))
147217
0 commit comments