p58 -
This commit is contained in:
@@ -80,14 +80,15 @@ class GuiBulkImport (threading.Thread):
|
||||
print "todo: implement bulk import thread"
|
||||
#end def run
|
||||
|
||||
def __init__(self, db, initial_path="/work/poker-histories/wine-ps/"):
|
||||
def __init__(self, db, settings):
|
||||
self.db=db
|
||||
self.settings=settings
|
||||
|
||||
self.vbox=gtk.VBox(False,1)
|
||||
self.vbox.show()
|
||||
|
||||
self.chooser = gtk.FileChooserWidget()
|
||||
self.chooser.set_filename(initial_path)
|
||||
self.chooser.set_filename(self.settings['bulkImport-defaultPath'])
|
||||
#chooser.set_default_response(gtk.RESPONSE_OK)
|
||||
#self.filesel.ok_button.connect_object("clicked", gtk.Widget.destroy, self.filesel)
|
||||
self.vbox.add(self.chooser)
|
||||
|
||||
@@ -243,7 +243,7 @@ class GuiTableViewer (threading.Thread):
|
||||
self.minPrint=0
|
||||
self.handCount=0
|
||||
|
||||
self.last_read_hand=fpdb_import.import_file_dict(self)
|
||||
self.last_read_hand=fpdb_import.import_file_dict(self, self.settings)
|
||||
#end def table_viewer.import_clicked
|
||||
|
||||
def all_clicked(self, widget, data):
|
||||
|
||||
+1
-1
@@ -343,7 +343,7 @@ class fpdb:
|
||||
def tab_bulk_import(self, widget, data):
|
||||
"""opens a tab for bulk importing"""
|
||||
#print "start of tab_bulk_import"
|
||||
new_import_thread=GuiBulkImport.GuiBulkImport(self.db, self.settings['bulkImport-defaultPath'])
|
||||
new_import_thread=GuiBulkImport.GuiBulkImport(self.db, self.settings)
|
||||
self.threads.append(new_import_thread)
|
||||
bulk_tab=new_import_thread.get_vbox()
|
||||
self.add_and_display_tab(bulk_tab, "Bulk Import")
|
||||
|
||||
Reference in New Issue
Block a user