From d95fcfe5d0776d039dbfe86d43b183ac8f0a6f88 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Fri, 16 Jul 2010 21:00:29 +0200 Subject: [PATCH] GUI: HudConfigurator shows combo boxes for stats --- pyfpdb/fpdb.pyw | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pyfpdb/fpdb.pyw b/pyfpdb/fpdb.pyw index cb24efb7..428cb3ed 100755 --- a/pyfpdb/fpdb.pyw +++ b/pyfpdb/fpdb.pyw @@ -423,11 +423,20 @@ class fpdb: label=gtk.Label("column "+str(columnNumber)) table.attach(child=label, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1) label.show() + elif columnNumber==0: + label=gtk.Label("row "+str(rowNumber)) + table.attach(child=label, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1) + label.show() else: - if columnNumber==0: - label=gtk.Label("row "+str(rowNumber)) - table.attach(child=label, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1) - label.show() + comboBox = gtk.combo_box_new_text() + for i in ("vpip", "pfr", "wtsd"): + comboBox.append_text(i) + comboBox.set_active(0) + + newRow.append(comboBox) + table.attach(child=comboBox, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1) + + comboBox.show() self.hudConfiguratorTableContents.append(newRow) diaHudTable.vbox.add(table) table.show()