Add Grid.hide_columns()
convenience method
This commit is contained in:
parent
21014c5013
commit
37b9a81344
|
@ -130,6 +130,10 @@ class Grid(object):
|
||||||
if key in self.columns:
|
if key in self.columns:
|
||||||
self.columns.remove(key)
|
self.columns.remove(key)
|
||||||
|
|
||||||
|
def hide_columns(self, *keys):
|
||||||
|
for key in keys:
|
||||||
|
self.hide_column(key)
|
||||||
|
|
||||||
def append(self, field):
|
def append(self, field):
|
||||||
self.columns.append(field)
|
self.columns.append(field)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue