dabo Commit Revision 3415 Date: 2007-09-28 11:51:13 -0700 (Fri, 28 Sep 2007) Author: Ed Trac: http://svn.dabodev.com/trac/dabo/changeset/3415
Changed: U trunk/dabo/ui/uiwx/dGrid.py
Log: Added the getTableClass() classmethod.
Diff: Modified: trunk/dabo/ui/uiwx/dGrid.py =================================================================== --- trunk/dabo/ui/uiwx/dGrid.py 2007-09-28 15:31:01 UTC (rev 3414) +++ trunk/dabo/ui/uiwx/dGrid.py 2007-09-28 18:51:13 UTC (rev 3415) @@ -1835,6 +1835,15 @@ #self.SetCellRenderer(row, col, rnd) + def getTableClass(cls): + """We don't expose the underlying table class to the ui namespace, as it's a + wx-specific implementation detail, but for cases where you need to subclass + the table, this classmethod will return the class reference. + """ + return dGridDataTable + getTableClass = classmethod(getTableClass) + + def setTableAttributes(self, tbl=None): """Set the attributes for table display""" if tbl is None:
©2007 Ed Leafe |