MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / run

Method run

tools/python-3.11.9-amd64/Tools/demo/sortvisu.py:592–604  ·  view source on GitHub ↗
(self, func)

Source from the content-addressed store, hash-verified

590 self.run(distinct)
591
592 def run(self, func):
593 if self.busy:
594 self.master.bell()
595 return
596 self.busy = 1
597 self.array.setspeed(self.v_speed.get())
598 self.b_cancel.config(state=NORMAL)
599 try:
600 func(self.array)
601 except Array.Cancelled:
602 pass
603 self.b_cancel.config(state=DISABLED)
604 self.busy = 0
605
606 def c_cancel(self):
607 if not self.busy:

Callers 8

c_qsortMethod · 0.95
c_isortMethod · 0.95
c_ssortMethod · 0.95
c_bsortMethod · 0.95
c_demoMethod · 0.95
c_randomizeMethod · 0.95
c_uniformMethod · 0.95
c_distinctMethod · 0.95

Calls 4

setspeedMethod · 0.80
bellMethod · 0.45
getMethod · 0.45
configMethod · 0.45

Tested by

no test coverage detected