mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -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_callees(lines)
|
||||||
s.print_callers(lines)
|
s.print_callers(lines)
|
||||||
|
|
||||||
|
def capitalizeFirst(str):
|
||||||
|
return '%s%s' % (string.upper(str[0]), str[1:])
|
||||||
|
|
||||||
def getSetterName(valueName, prefix='set'):
|
def getSetterName(valueName, prefix='set'):
|
||||||
# getSetterName('color') -> 'setColor'
|
# getSetterName('color') -> 'setColor'
|
||||||
# getSetterName('color', 'get') -> 'getColor'
|
# getSetterName('color', 'get') -> 'getColor'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user