Внимание! Новое программного обеспечение для World Vision Foros Ultra и World Vision Foros Combo S2/T2 выложено в теме с обновлением.

Подробней в теме: по ссылке

Автор Тема: Доработка опенПли 3.0  (Прочитано 10611 раз)

Оффлайн nikolasi

  • Супер VIP
  • Младший фейерверкер
  • *****
  • Спасибо
  • -> Вы поблагодарили: 18
  • -> Вас поблагодарили: 276
  • Сообщений: 120
  • Репутация: +278/-0
  • Пол: Мужской
Доработка опенПли 3.0
« : 17 Март 2013, 16:23:57 »
Спасибо Дима.Да вопрос тока config.epg.histminutes.getValue()-указываетса в минутах?Тоисть 30-60-120?Работает тока у кого не пли- r3.x, r3.y, 80, r3.h,  и тд не прокатит.Нужно вписать r3.left(), r3.top() и тд и плясать от етого вот пример
if nowTime < beginTime:
begin = localtime(beginTime)
end = localtime(beginTime+duration)
res.extend((
(eListboxPythonMultiContent.TYPE_TEXT, r4.left(), r4.top(), r4.width(), r4.height(), 1, RT_HALIGN_CENTER|RT_VALIGN_CENTER, "%02d.%02d - %02d.%02d"%(begin[3],begin[4],end[3],end[4])),
(eListboxPythonMultiContent.TYPE_TEXT, r3.left(), r3.top(), 80, r3.height(), 1, RT_HALIGN_RIGHT|RT_VALIGN_CENTER, _("%d min") % (duration / 60)),
                                        (eListboxPythonMultiContent.TYPE_TEXT, r3.left() + 90, r3.top(), r3.width(), r3.height(), 0, RT_HALIGN_LEFT, EventName)
))
else:
percent = (nowTime - beginTime) * 100 / duration
prefix = "+"
remaining = ((beginTime+duration) - int(time())) / 60
if remaining <= 0:
prefix = ""
res.extend((
(eListboxPythonMultiContent.TYPE_PROGRESS, r2.left(), r2.top(), r2.width(), r2.height(), percent),
(eListboxPythonMultiContent.TYPE_TEXT, r3.left(), r3.top(), 80, r3.height(), 1, RT_HALIGN_RIGHT|RT_VALIGN_CENTER, _("%s%d min") % (prefix, remaining)),
                                        (eListboxPythonMultiContent.TYPE_TEXT, r3.left() + 90, r3.top(), r3.width(), r3.height(), 0, RT_HALIGN_LEFT, EventName)
))
return res
Эти пользователи сказали Вам СПАСИБО: