mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
tkpanels: Fix use of removed cmp()
function
This commit is contained in:
parent
6aef8159b1
commit
afd3df8ef1
@ -463,10 +463,8 @@ class ActorControl(Pmw.MegaWidget):
|
||||
playRateList = ['1/24.0', '0.1', '0.5', '1.0', '2.0', '5.0', '10.0']
|
||||
playRate = '%0.1f' % self['actor'].getPlayRate(self['active'])
|
||||
if playRate not in playRateList:
|
||||
def strCmp(a, b):
|
||||
return cmp(eval(a), eval(b))
|
||||
playRateList.append(playRate)
|
||||
playRateList.sort(strCmp)
|
||||
playRateList.sort(key=lambda s:eval(s))
|
||||
playRateMenu = self.createcomponent(
|
||||
'playRateMenu', (), None,
|
||||
Pmw.ComboBox, (interior,),
|
||||
|
Loading…
x
Reference in New Issue
Block a user