librocket GUI support

Has anyone gotten the High Scores portion of the rocket sample to work? I created my own class which inherited from DataSource and the object exists and contains all of the information, but I can’t seem to get the datagrid to know about the source. I get this error:

:rocket(error) Bad data source name high_scores.scores

In high_score.rml:

def OnLoad(window):
	dataSource = HighScoreDataSource('high_scores')

	datagrid = window.GetElementById('datagrid')
	datagrid.AddEventListener('rowupdate', OnRowAdd, False)

HighScoreDataSource:

class HighScoreDataSource(DataSource):

	def __init__(self, name):
		DataSource.__init__(self, name)

	def GetRow(self, row, tableName, rowIndex, columns):
		if(tableName == 'scores'):

			for col in columns:

				if(col == 'name'):
					row.append('TestName')

				elif(col == 'score'):
					row.append('5')

				elif(col == 'color'):
					row.append('#F00')

				elif(col == 'wave'):
					row.append('testWave')

	def GetNumRows(self, tableName):
		if(tableName == 'scores'):
			return 1

		return 0

librocket.com/wiki/documentation … s/Datagrid

Edit:

On an aside, when can we expect to see documentation for the classes associated with libRocket? For example, I discovered the DataSource class by looking at the documentation at libRocket’s site and got lucky that it exists in panda3d.rocket, but it doesn’t seem like the entire class is there. For example, the APIs over there describe a GetDataSourceName function that doesn’t exist in the panda version of DataSource