cleanup of config file consolidation

This commit is contained in:
Ray 2008-10-21 21:46:30 -04:00
parent a719efc6dc
commit 2f78304185
4 changed files with 14 additions and 7 deletions

View File

@ -123,9 +123,10 @@ class GuiAutoImport (threading.Thread):
return self.mainVBox
#end def get_vbox
def __init__(self, settings, debug=True):
def __init__(self, settings, config, debug=True):
"""Constructor for GuiAutoImport"""
self.settings=settings
self.config=config
self.importer = fpdb_import.Importer(self,self.settings)
self.importer.setCallHud(True)
self.importer.setMinPrint(30)
@ -164,7 +165,8 @@ class GuiAutoImport (threading.Thread):
self.pathStarsLabel.show()
self.starsDirPath=gtk.Entry()
self.starsDirPath.set_text(self.settings['hud-defaultPath'])
paths = self.config.get_default_paths("PokerStars")
self.starsDirPath.set_text(paths['hud-defaultPath'])
self.pathHBox.pack_start(self.starsDirPath, False, True, 0)
self.starsDirPath.show()
@ -178,7 +180,8 @@ class GuiAutoImport (threading.Thread):
self.pathTiltLabel.show()
self.tiltDirPath=gtk.Entry()
self.tiltDirPath.set_text(self.settings['hud-defaultPath'])
paths = self.config.get_default_paths("FullTilt")
self.tiltDirPath.set_text(paths['hud-defaultPath'])
self.pathHBox.pack_start(self.tiltDirPath, False, True, 0)
self.tiltDirPath.show()

View File

@ -76,9 +76,10 @@ class GuiBulkImport (threading.Thread):
print "todo: implement bulk import thread"
#end def run
def __init__(self, db, settings):
def __init__(self, db, settings, config):
self.db=db
self.settings=settings
self.config=config
self.importer = fpdb_import.Importer(self,self.settings)
self.vbox=gtk.VBox(False,1)

View File

@ -134,8 +134,10 @@ if __name__== "__main__":
main_window = gtk.Window()
main_window.connect("destroy", destroy)
eb = gtk.EventBox()
label = gtk.Label('Closing this window will exit from the HUD.')
main_window.add(label)
eb.add(label)
main_window.add(eb)
main_window.set_title("HUD Main Window")
main_window.show_all()

View File

@ -52,7 +52,7 @@ class Hud:
self.max = max
self.db_name = db_name
self.deleted = False
self.stacked = False
self.stacked = True
self.stat_windows = {}
self.popup_windows = {}
@ -70,7 +70,8 @@ class Hud:
self.main_window.connect("window-state-event", self.on_window_event)
self.ebox = gtk.EventBox()
self.label = gtk.Label("Close this window to\nkill the HUD for\n %s" % (table.name))
self.label = gtk.Label("Close this window to\nkill the HUD for\n %s\nMinimizing it hides stats." %
(table.name))
self.main_window.add(self.ebox)
self.ebox.add(self.label)
self.main_window.move(self.table.x, self.table.y)