git18 - tv now has background colours to make it far more legible

This commit is contained in:
steffen123 2008-08-08 00:07:00 +01:00
parent 33e085cf88
commit bf691fe9e7
4 changed files with 17 additions and 5 deletions

View File

@ -5,6 +5,7 @@ before alpha
fix default pathes up to sensible ones
catch index error, type error, file not found error
update install instructions, include how to adapt default config and where to put it
add instructions how to reimport
split python requirements, get deep links for windows DL for everything
GUI license info
@ -16,7 +17,6 @@ add fpdb version string into db to detect outdated db format.
before beta
===========
optionally show single postflop agg/fold rate
seperation lines for tv
auto-import
implement error file in importer
change to use different colours according to classification.

View File

@ -835,7 +835,7 @@ far less relevant.</P>
<TR VALIGN=TOP>
<TD><P>wonAtSD</P></TD>
<TD><P>float</P></TD>
<TD><P>As wonPostFlop, but for showdown.</P></TD>
<TD><P>As wonWhenSeenFlop, but for showdown.</P></TD>
</TR>
</TABLE>
<P></P>

View File

@ -343,9 +343,9 @@ blabla""")
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.connect("delete_event", self.delete_event)
self.window.connect("destroy", self.destroy)
self.window.set_title("Free Poker DB - version: pre-alpha, git17")
self.window.set_title("Free Poker DB - version: pre-alpha, git18")
self.window.set_border_width(1)
self.window.set_size_request(800,400)
self.window.set_size_request(950,400)
self.window.set_resizable(True)
self.menu_items = (

View File

@ -132,8 +132,20 @@ class table_viewer (threading.Thread):
for row in range(len(arr)):
for column in range (len(arr[row])):
eventBox=gtk.EventBox()
new_label=gtk.Label(arr[row][column])
self.data_table.attach(child=new_label, left_attach=column, right_attach=column+1, top_attach=row, bottom_attach=row+1)
if row%2==0: #
bg_col="white"
if column==0 or (column>=5 and column<=10):
bg_col="lightgrey"
else:
bg_col="lightgrey"
if column==0 or (column>=5 and column<=10):
bg_col="grey"
eventBox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(bg_col))
eventBox.add(new_label)
self.data_table.attach(child=eventBox, left_attach=column, right_attach=column+1, top_attach=row, bottom_attach=row+1)
eventBox.show()
new_label.show()
#end def table_viewer.refresh_clicked