comparison Gtk/importFiebdc.py @ 11:fe9c55f86698

Improvements in navigation buttons
author Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
date Wed, 24 Nov 2010 22:56:02 +0100
parents 55df0b15706b
children 60bc5117926c
comparison
equal deleted inserted replaced
10:d2cbc0278b30 11:fe9c55f86698
109 """ 109 """
110 self.__filename = file 110 self.__filename = file
111 _emptyPage = gui.EmptyPage(self.__mainWindow, self.__readFileMethod, 111 _emptyPage = gui.EmptyPage(self.__mainWindow, self.__readFileMethod,
112 self.__budget, self.__filename, 112 self.__budget, self.__filename,
113 self.__cancelMethod, self.__filetype) 113 self.__cancelMethod, self.__filetype)
114 self.__mainWindow.notebook.append_page(_emptyPage.widget, 114 self.__mainWindow.appendEmptyPage(_emptyPage)
115 _emptyPage.title)
116 self.__mainWindow.pageList.append(_emptyPage)
117 _emptyPage.run() 115 _emptyPage.run()
118 116
119 def _openFile(self, filename): 117 def _openFile(self, filename):
120 """def _openFile(self, filename) 118 """def _openFile(self, filename)
121 119
422 self.__page) 420 self.__page)
423 if _budget is None: 421 if _budget is None:
424 self.__page.threadCanceled() 422 self.__page.threadCanceled()
425 else: 423 else:
426 _mainWindow = self.__mainWindow 424 _mainWindow = self.__mainWindow
427 _mainWindow._addBudget(_budget)
428 self.__page.threadFinishedSignal(_budget) 425 self.__page.threadFinishedSignal(_budget)
429 if self.__filetype == "database": 426 if self.__filetype == "database":
430 self.saveDurusDatabase() 427 self.saveDurusDatabase()
431 self.clear() 428 self.clear()
432 429