Update Graph Viewer to use config file, fill Entry with player_name field from the config.

This commit is contained in:
Worros
2008-10-25 14:57:29 +08:00
parent c48b2f3057
commit 389d9361b9
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -101,7 +101,7 @@ class GuiGraphViewer (threading.Thread):
return line/100
#end of def getRingProfitGraph
def __init__(self, db, settings, querylist, debug=True):
def __init__(self, db, settings, querylist, config, debug=True):
"""Constructor for GraphViewer"""
self.debug=debug
#print "start of GraphViewer constructor"
@@ -134,6 +134,9 @@ class GuiGraphViewer (threading.Thread):
self.siteEntry.set_text("PS")
self.settingsHBox.pack_start(self.siteEntry)
self.siteEntry.show()
#Note: Assumes PokerStars is in the config
self.nameEntry.set_text(config.supported_sites["PokerStars"].screen_name)
self.showButton=gtk.Button("Show/Refresh")
self.showButton.connect("clicked", self.showClicked, "show clicked")