Mercurial > pyarq-presupuestos
comparison Gtk/importFiebdc.py @ 22:7bd4ca56607d
bug fix: Mutable default arguments
author | Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es> |
---|---|
date | Tue, 30 Sep 2014 17:16:50 +0200 |
parents | 60bc5117926c |
children | 65e7ae0d0e63 |
comparison
equal
deleted
inserted
replaced
21:f7e0cc58737f | 22:7bd4ca56607d |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # -*- coding: utf-8 -*- | 2 # -*- coding: utf-8 -*- |
3 ## File importFiebdc.py | 3 ## File importFiebdc.py |
4 ## This file is part of pyArq-Presupuestos. | 4 ## This file is part of pyArq-Presupuestos. |
5 ## | 5 ## |
6 ## Copyright (C) 2010 Miguel Ángel Bárcena Rodríguez | 6 ## Copyright (C) 2010-2014 Miguel Ángel Bárcena Rodríguez |
7 ## <miguelangel@obraencurso.es> | 7 ## <miguelangel@obraencurso.es> |
8 ## | 8 ## |
9 ## pyArq-Presupuestos is free software: you can redistribute it and/or modify | 9 ## pyArq-Presupuestos is free software: you can redistribute it and/or modify |
10 ## it under the terms of the GNU General Public License as published by | 10 ## it under the terms of the GNU General Public License as published by |
11 ## the Free Software Foundation, either version 3 of the License, or | 11 ## the Free Software Foundation, either version 3 of the License, or |
385 run(self) | 385 run(self) |
386 cancel(self) | 386 cancel(self) |
387 isCanceled(self) | 387 isCanceled(self) |
388 """ | 388 """ |
389 | 389 |
390 def __init__(self, page, mainWindow, | 390 def __init__(self, page, mainWindow, readFileMethod, budget, |
391 readFileMethod, budget, filename, cancelMethod, filetype): | 391 filename, cancelMethod, filetype): |
392 """def __init__(self, page, mainWindow, | 392 """def __init__(page, mainWindow, readFileMethod, budget, |
393 readFileMethod, budget, filename, cancelMethod) | 393 filename, cancelMethod, filetype) |
394 | 394 |
395 page: The page instance that launch the thread | 395 page: The page instance that launch the thread |
396 mainWindow: gui.Mainwindow object | 396 mainWindow: gui.Mainwindow object |
397 readFileMethod: Method to read the selected file | 397 readFileMethod: Method to read the selected file |
398 budget: base.Budget object | 398 budget: base.Budget object |