mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
added capitalizeFirst
This commit is contained in:
parent
50a66c57c5
commit
c0a68a536f
@ -736,6 +736,9 @@ def printProfile(filename=PyUtilProfileDefaultFilename,
|
||||
s.print_callees(lines)
|
||||
s.print_callers(lines)
|
||||
|
||||
def capitalizeFirst(str):
|
||||
return '%s%s' % (string.upper(str[0]), str[1:])
|
||||
|
||||
def getSetterName(valueName, prefix='set'):
|
||||
# getSetterName('color') -> 'setColor'
|
||||
# getSetterName('color', 'get') -> 'getColor'
|
||||
|
Loading…
x
Reference in New Issue
Block a user