From 71f8fb5ef194062b665ee9b327afd2073ffccf7e Mon Sep 17 00:00:00 2001 From: steffen123 Date: Fri, 16 Jul 2010 20:32:01 +0200 Subject: [PATCH] GUI: have default selections and fix locking in HudConfigurator --- pyfpdb/fpdb.pyw | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyfpdb/fpdb.pyw b/pyfpdb/fpdb.pyw index b463258a..cb24efb7 100755 --- a/pyfpdb/fpdb.pyw +++ b/pyfpdb/fpdb.pyw @@ -360,6 +360,7 @@ class fpdb: games=self.config.get_supported_games() for game in games: comboGame.append_text(game) + comboGame.set_active(0) comboGame.show() comboRows = gtk.combo_box_new_text() @@ -367,6 +368,7 @@ class fpdb: diaSelections.vbox.add(comboRows) for i in range(1,8): comboRows.append_text(str(i)+" rows") + comboRows.set_active(0) comboRows.show() comboColumns = gtk.combo_box_new_text() @@ -374,6 +376,7 @@ class fpdb: diaSelections.vbox.add(comboColumns) for i in range(1,8): comboColumns.append_text(str(i)+" columns") + comboColumns.set_active(0) comboColumns.show() response=diaSelections.run() @@ -396,7 +399,6 @@ class fpdb: def diaHudConfiguratorTable(self): #TODO: show explanation of what each stat means - self.obtain_global_lock("diaHudConfiguratorTable") diaHudTable = gtk.Dialog("HUD Configurator - please choose your stats", self.window, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, @@ -438,7 +440,9 @@ class fpdb: #end def diaHudConfiguratorTable def storeNewHudStatConfig(self): + self.obtain_global_lock("diaHudConfiguratorTable") print "storeNewHudStatConfig" + self.release_global_lock() #end def storeNewHudStatConfig def dia_dump_db(self, widget, data=None):