stop warning message from set_cell_data_func
This commit is contained in:
parent
da64e336d7
commit
6b280d7db9
|
@ -360,14 +360,17 @@ class GuiPlayerStats (threading.Thread):
|
||||||
if column[colxalign] == 0.0:
|
if column[colxalign] == 0.0:
|
||||||
self.listcols[grid][col].pack_start(textcell, expand=True)
|
self.listcols[grid][col].pack_start(textcell, expand=True)
|
||||||
self.listcols[grid][col].add_attribute(textcell, 'text', col)
|
self.listcols[grid][col].add_attribute(textcell, 'text', col)
|
||||||
|
cellrend = textcell
|
||||||
else:
|
else:
|
||||||
self.listcols[grid][col].pack_start(textcell50, expand=True)
|
self.listcols[grid][col].pack_start(textcell50, expand=True)
|
||||||
self.listcols[grid][col].add_attribute(textcell50, 'text', col)
|
self.listcols[grid][col].add_attribute(textcell50, 'text', col)
|
||||||
|
cellrend = textcell50
|
||||||
self.listcols[grid][col].set_expand(True)
|
self.listcols[grid][col].set_expand(True)
|
||||||
else:
|
else:
|
||||||
self.listcols[grid][col].pack_start(numcell, expand=True)
|
self.listcols[grid][col].pack_start(numcell, expand=True)
|
||||||
self.listcols[grid][col].add_attribute(numcell, 'text', col)
|
self.listcols[grid][col].add_attribute(numcell, 'text', col)
|
||||||
self.listcols[grid][col].set_expand(True)
|
self.listcols[grid][col].set_expand(True)
|
||||||
|
cellrend = numcell
|
||||||
#self.listcols[grid][col].set_alignment(column[colxalign]) # no effect?
|
#self.listcols[grid][col].set_alignment(column[colxalign]) # no effect?
|
||||||
self.listcols[grid][col].set_clickable(True)
|
self.listcols[grid][col].set_clickable(True)
|
||||||
self.listcols[grid][col].connect("clicked", self.sortcols, (col,grid))
|
self.listcols[grid][col].connect("clicked", self.sortcols, (col,grid))
|
||||||
|
@ -377,7 +380,7 @@ class GuiPlayerStats (threading.Thread):
|
||||||
if column[coltype] == 'cash':
|
if column[coltype] == 'cash':
|
||||||
self.listcols[grid][col].set_cell_data_func(numcell, self.ledger_style_render_func)
|
self.listcols[grid][col].set_cell_data_func(numcell, self.ledger_style_render_func)
|
||||||
else:
|
else:
|
||||||
self.listcols[grid][col].set_cell_data_func(numcell, self.reset_style_render_func)
|
self.listcols[grid][col].set_cell_data_func(cellrend, self.reset_style_render_func)
|
||||||
|
|
||||||
rows = len(result) # +1 for title row
|
rows = len(result) # +1 for title row
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user