-2
後、私は実際に完璧に動作しますが、それが画面にEPG情報を表示するために多くの時間が、これは無EPGにつながることを、いくつかのチャンネルに来るとき、時にはそれが失敗したenigma2から、このコードを持っている機能を実行し直し。だから私は30秒間しばらくしてからコードを再実行する助けをしたい。私は投票間隔を試みたが成功しなかった。ここに私のコードは次のとおりです。時々、あなたが必要なものだけで複数のキャッシュであるため、30秒
from Source import Source
class Event(Source, object):
def __init__(self):
Source.__init__(self)
self.evt = None
def getCurrentEvent(self):
return self.evt
event = property(getCurrentEvent)
def newEvent(self, event):
if not self.evt or self.evt != event:
self.evt = event
if not event:
self.changed((self.CHANGED_CLEAR,))
else:
self.changed((self.CHANGED_ALL,))
が重複する可能性を持っている場合は特に、「キャッシュのクリア」のプラグインを試してみてください(http://stackoverflow.com/questions/11901074/javascript-call-a-function-after-specific-time-period) – DanMan
ちょっと待ってください...それもJSじゃないですか? – DanMan
Pythonでx秒ごとに関数を繰り返し実行する最良の方法は何ですか?(http://stackoverflow.com/questions/474528/what-is-the-best-way-to-repeatedly-execute -a-function-x-seconds-in-python) –