CerX Full HD - VTi 14.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Dachte ich auch, aber da gibt es keinen Bold.ttf. Ist das aber nicht eigentlich schon im Default Skin drin ? Ich hab ja auch anderen Screens die Bold als Font drin haben.
      - CerX FHD Skin - EMC - Serienrecorder - TV Spielfilm - VMC5 - Autotimer
    • Erledigt
      <font filename="MyriadPro-Semibold.otf" name="Bold" scale="100" />

      Edit: Oh, deinen Eintrag zu spät gesehen, naja klappt ja auch so ;) Danke
      Files
      • a1.jpg

        (483.82 kB, downloaded 42 times, last: )
      - CerX FHD Skin - EMC - Serienrecorder - TV Spielfilm - VMC5 - Autotimer

      The post was edited 1 time, last by Bueb ().

    • New

      @schomi:
      Wie bekomme ich das Popup des AutoTimer geändert, ich würde da gerne den kompletten Sundungsnamen sehen:
      beim Screenaufruf kommt das:

      Source Code

      1. 19:01:24.776 [e2-python] [#0028] Tools/Notifications.py RemovePopup, id =AT_PopUp_ID_ParseEPGCallback
      2. 19:01:24.779 [e2-python] ['MessageBox']
      3. 19:01:24.787 [e2-python] ['MessageBox_summary', 'SimpleSummary']
      4. 19:01:41.909 [e2-python] [#0124] Screens/MessageBox.py Timeout!
      Files
      • a7.jpg

        (352.98 kB, downloaded 36 times, last: )
      - CerX FHD Skin - EMC - Serienrecorder - TV Spielfilm - VMC5 - Autotimer
    • New

      Und wie soll man den skinnen, das ist ja nur ne .py. wenn ich die öffne ist da nix skinbares drin

      Display Spoiler

      Python Source Code

      1. from Screen import Screen
      2. from Components.ActionMap import ActionMap
      3. from Components.Label import Label
      4. from Components.Pixmap import Pixmap
      5. from Components.Sources.StaticText import StaticText
      6. from Components.MenuList import MenuList
      7. from enigma import eTimer
      8. class MessageBox(Screen):
      9. TYPE_YESNO = 0
      10. TYPE_INFO = 1
      11. TYPE_WARNING = 2
      12. TYPE_ERROR = 3
      13. def __init__(self, session, text, type = TYPE_YESNO, timeout = -1, close_on_any_key = False, default = True, enable_input = True, msgBoxID = None):
      14. self.type = type
      15. Screen.__init__(self, session)
      16. self.msgBoxID = msgBoxID
      17. self["text"] = Label(text)
      18. self["Text"] = StaticText(text)
      19. self["selectedChoice"] = StaticText()
      20. self.text = text
      21. self.close_on_any_key = close_on_any_key
      22. self["ErrorPixmap"] = Pixmap()
      23. self["QuestionPixmap"] = Pixmap()
      24. self["InfoPixmap"] = Pixmap()
      25. self.origTitle = None
      26. self.timerRunning = False
      27. self.initTimeout(timeout)
      28. self.list = []
      29. if type != self.TYPE_ERROR:
      30. self["ErrorPixmap"].hide()
      31. if type != self.TYPE_YESNO:
      32. self["QuestionPixmap"].hide()
      33. if type != self.TYPE_INFO:
      34. self["InfoPixmap"].hide()
      35. if type == self.TYPE_YESNO:
      36. if default == True:
      37. self.list = [ (_("yes"), 0), (_("no"), 1) ]
      38. else:
      39. self.list = [ (_("no"), 1), (_("yes"), 0) ]
      40. if self.list:
      41. self["selectedChoice"].setText(self.list[0][0])
      42. self["list"] = MenuList(self.list)
      43. if enable_input:
      44. self["actions"] = ActionMap(["MsgBoxActions", "DirectionActions"],
      45. {
      46. "cancel": self.cancel,
      47. "ok": self.ok,
      48. "alwaysOK": self.alwaysOK,
      49. "up": self.up,
      50. "down": self.down,
      51. "left": self.left,
      52. "right": self.right,
      53. "upRepeated": self.up,
      54. "downRepeated": self.down,
      55. "leftRepeated": self.left,
      56. "rightRepeated": self.right
      57. }, -1)
      58. self.onLayoutFinish.append(self.setMessageTitle)
      59. def getOrigTitle(self):
      60. title = self.instance.getTitle()
      61. if self.type == self.TYPE_WARNING and title == _("Message"):
      62. title = _("Warning")
      63. elif self.type == self.TYPE_ERROR and title == _("Message"):
      64. title = _("Error")
      65. return title
      66. def setMessageTitle(self):
      67. if self.origTitle is None:
      68. self.origTitle = self.getOrigTitle()
      69. self.setTitle(self.origTitle)
      70. def initTimeout(self, timeout):
      71. self.timeout = timeout
      72. if timeout > 0:
      73. self.timer = eTimer()
      74. self.timer.callback.append(self.timerTick)
      75. self.onExecBegin.append(self.startTimer)
      76. self.origTitle = None
      77. if self.execing:
      78. self.timerTick()
      79. else:
      80. self.onShown.append(self.__onShown)
      81. self.timerRunning = True
      82. else:
      83. self.timerRunning = False
      84. def __onShown(self):
      85. self.onShown.remove(self.__onShown)
      86. self.timerTick()
      87. def startTimer(self):
      88. self.timer.start(1000)
      89. def stopTimer(self):
      90. if self.timerRunning:
      91. del self.timer
      92. self.onExecBegin.remove(self.startTimer)
      93. self.setTitle(self.origTitle)
      94. self.timerRunning = False
      95. def timerTick(self):
      96. if self.execing:
      97. self.timeout -= 1
      98. if self.origTitle is None:
      99. self.origTitle = self.getOrigTitle()
      100. self.setTitle(self.origTitle + " (" + str(self.timeout) + ")")
      101. if self.timeout == 0:
      102. self.timer.stop()
      103. self.timerRunning = False
      104. self.timeoutCallback()
      105. def timeoutCallback(self):
      106. vtilog("Timeout!")
      107. self.ok()
      108. def cancel(self):
      109. self.close(False)
      110. def ok(self):
      111. if self.type == self.TYPE_YESNO:
      112. self.close(self["list"].getCurrent()[1] == 0)
      113. else:
      114. self.close(True)
      115. def alwaysOK(self):
      116. self.close(True)
      117. def up(self):
      118. self.move(self["list"].instance.moveUp)
      119. def down(self):
      120. self.move(self["list"].instance.moveDown)
      121. def left(self):
      122. self.move(self["list"].instance.pageUp)
      123. def right(self):
      124. self.move(self["list"].instance.pageDown)
      125. def move(self, direction):
      126. if self.close_on_any_key:
      127. self.close(True)
      128. self["list"].instance.moveSelection(direction)
      129. if self.list:
      130. self["selectedChoice"].setText(self["list"].getCurrent()[0])
      131. self.stopTimer()
      132. def __repr__(self):
      133. return str(type(self)) + "(" + self.text + ")"
      Display All


      - CerX FHD Skin - EMC - Serienrecorder - TV Spielfilm - VMC5 - Autotimer