@@ -267,17 +267,17 @@ def __initUI__(self):
267267 self .btn_addSta .hide ()
268268
269269 btn_save = QPushButton ('Save' )
270- btn_save .setIcon (get_icon ('save' ))
271270 btn_save .setToolTip ('Save the list of selected stations to a file.' )
272271 btn_save .clicked .connect (self .btn_save_isClicked )
273272 btn_save .hide ()
274273
275274 self .btn_download = QPushButton ('Download' )
276- self .btn_download .setIcon (get_icon ('download_data' ))
277275 self .btn_download .clicked .connect (self .start_download_process )
278276
277+ btn_close = QPushButton ('Close' )
278+ btn_close .clicked .connect (self .close )
279+
279280 self .btn_fetch = btn_fetch = QPushButton ('Refresh' )
280- btn_fetch .setIcon (get_icon ('refresh' ))
281281 btn_fetch .setToolTip (
282282 "Update the list of climate stations by fetching it again from "
283283 "the ECCC ftp server." )
@@ -289,8 +289,9 @@ def __initUI__(self):
289289 toolbar_grid .addWidget (btn_save , 1 , 2 )
290290 toolbar_grid .addWidget (btn_fetch , 1 , 3 )
291291 toolbar_grid .addWidget (self .btn_download , 1 , 4 )
292+ toolbar_grid .addWidget (btn_close , 1 , 5 )
292293 toolbar_grid .setColumnStretch (0 , 100 )
293- toolbar_grid .setContentsMargins (0 , 30 , 0 , 0 )
294+ toolbar_grid .setContentsMargins (0 , 10 , 0 , 0 )
294295
295296 # Setup the left panel.
296297 left_panel = QFrame ()
0 commit comments