mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
pretty print
This commit is contained in:
parent
9a3c2e76a1
commit
5f63bf1d22
@ -47,4 +47,10 @@ class BulletinBoard:
|
||||
self.remove(postName)
|
||||
|
||||
def __repr__(self):
|
||||
return str(self._dict)
|
||||
str = 'Bulletin Board Contents\n'
|
||||
str += '======================='
|
||||
keys = self._dict.keys()
|
||||
keys.sort()
|
||||
for postName in keys:
|
||||
str += '\n%s: %s' % (postName, self._dict[postName])
|
||||
return str
|
||||
|
Loading…
x
Reference in New Issue
Block a user