cleanup of config file consolidation
This commit is contained in:
parent
a719efc6dc
commit
2f78304185
|
@ -123,9 +123,10 @@ class GuiAutoImport (threading.Thread):
|
||||||
return self.mainVBox
|
return self.mainVBox
|
||||||
#end def get_vbox
|
#end def get_vbox
|
||||||
|
|
||||||
def __init__(self, settings, debug=True):
|
def __init__(self, settings, config, debug=True):
|
||||||
"""Constructor for GuiAutoImport"""
|
"""Constructor for GuiAutoImport"""
|
||||||
self.settings=settings
|
self.settings=settings
|
||||||
|
self.config=config
|
||||||
self.importer = fpdb_import.Importer(self,self.settings)
|
self.importer = fpdb_import.Importer(self,self.settings)
|
||||||
self.importer.setCallHud(True)
|
self.importer.setCallHud(True)
|
||||||
self.importer.setMinPrint(30)
|
self.importer.setMinPrint(30)
|
||||||
|
@ -164,7 +165,8 @@ class GuiAutoImport (threading.Thread):
|
||||||
self.pathStarsLabel.show()
|
self.pathStarsLabel.show()
|
||||||
|
|
||||||
self.starsDirPath=gtk.Entry()
|
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.pathHBox.pack_start(self.starsDirPath, False, True, 0)
|
||||||
self.starsDirPath.show()
|
self.starsDirPath.show()
|
||||||
|
|
||||||
|
@ -178,7 +180,8 @@ class GuiAutoImport (threading.Thread):
|
||||||
self.pathTiltLabel.show()
|
self.pathTiltLabel.show()
|
||||||
|
|
||||||
self.tiltDirPath=gtk.Entry()
|
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.pathHBox.pack_start(self.tiltDirPath, False, True, 0)
|
||||||
self.tiltDirPath.show()
|
self.tiltDirPath.show()
|
||||||
|
|
||||||
|
|
|
@ -76,9 +76,10 @@ class GuiBulkImport (threading.Thread):
|
||||||
print "todo: implement bulk import thread"
|
print "todo: implement bulk import thread"
|
||||||
#end def run
|
#end def run
|
||||||
|
|
||||||
def __init__(self, db, settings):
|
def __init__(self, db, settings, config):
|
||||||
self.db=db
|
self.db=db
|
||||||
self.settings=settings
|
self.settings=settings
|
||||||
|
self.config=config
|
||||||
self.importer = fpdb_import.Importer(self,self.settings)
|
self.importer = fpdb_import.Importer(self,self.settings)
|
||||||
|
|
||||||
self.vbox=gtk.VBox(False,1)
|
self.vbox=gtk.VBox(False,1)
|
||||||
|
|
|
@ -134,8 +134,10 @@ if __name__== "__main__":
|
||||||
|
|
||||||
main_window = gtk.Window()
|
main_window = gtk.Window()
|
||||||
main_window.connect("destroy", destroy)
|
main_window.connect("destroy", destroy)
|
||||||
|
eb = gtk.EventBox()
|
||||||
label = gtk.Label('Closing this window will exit from the HUD.')
|
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.set_title("HUD Main Window")
|
||||||
main_window.show_all()
|
main_window.show_all()
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ class Hud:
|
||||||
self.max = max
|
self.max = max
|
||||||
self.db_name = db_name
|
self.db_name = db_name
|
||||||
self.deleted = False
|
self.deleted = False
|
||||||
self.stacked = False
|
self.stacked = True
|
||||||
|
|
||||||
self.stat_windows = {}
|
self.stat_windows = {}
|
||||||
self.popup_windows = {}
|
self.popup_windows = {}
|
||||||
|
@ -70,7 +70,8 @@ class Hud:
|
||||||
self.main_window.connect("window-state-event", self.on_window_event)
|
self.main_window.connect("window-state-event", self.on_window_event)
|
||||||
|
|
||||||
self.ebox = gtk.EventBox()
|
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.main_window.add(self.ebox)
|
||||||
self.ebox.add(self.label)
|
self.ebox.add(self.label)
|
||||||
self.main_window.move(self.table.x, self.table.y)
|
self.main_window.move(self.table.x, self.table.y)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user