GUI: HudConfigurator shows combo boxes for stats
This commit is contained in:
parent
f6232004ad
commit
d95fcfe5d0
|
@ -423,11 +423,20 @@ class fpdb:
|
||||||
label=gtk.Label("column "+str(columnNumber))
|
label=gtk.Label("column "+str(columnNumber))
|
||||||
table.attach(child=label, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1)
|
table.attach(child=label, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1)
|
||||||
label.show()
|
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:
|
else:
|
||||||
if columnNumber==0:
|
comboBox = gtk.combo_box_new_text()
|
||||||
label=gtk.Label("row "+str(rowNumber))
|
for i in ("vpip", "pfr", "wtsd"):
|
||||||
table.attach(child=label, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1)
|
comboBox.append_text(i)
|
||||||
label.show()
|
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)
|
self.hudConfiguratorTableContents.append(newRow)
|
||||||
diaHudTable.vbox.add(table)
|
diaHudTable.vbox.add(table)
|
||||||
table.show()
|
table.show()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user