Jump to content


Photo

I need some help form a developer.

Python

  • Please log in to reply
2 replies to this topic

#1 doddema

  • Senior Member
  • 528 posts

+14
Neutral

Posted 14 April 2013 - 10:17

I need some help form a developer.

I want to make a new version of my VFD-skin for de Ultimo. Threfore I want to test some code of 2boom and need to run a Python.py file on enigma.

 

I placed the AlwaysTrue.py in /usr/lib/enigma2/python/Components/Renderer

After a resart of enigma AlwaysTrue.py (644) is not compiled to AlwaysTreu.pyo

Other py files are compiled to pyo after a restart of enigma.

Why is AlwaysTrue.py not compiled?

 

Attached File  AlwaysTrue.zip   359bytes   3 downloads:

# AlwaysTrue by 2boom 2012 v.0.1

from Components.Converter.Converter import Converter
from Components.Element import cached

class AlwaysTrue(Converter, object):

	def __init__(self, type):
		Converter.__init__(self, type)

	@cached
	def getBoolean(self):
		return True
		
	boolean = property(getBoolean)

	def changed(self, what):
		Converter.changed(self, what)

 

My VDF-Skin project:http://openpli.org/f...e-2#entry291952

 


VU+Ultimo met OpenPLI 4.0, 2TB hdd. Oscam, CD seca3 kaart en Ziggo kaart.
Dreambox 7025+ met temperatuur geregelde koeling, OpenPLI image, Swapfile 64mb op CF kaart.
VU+DUO met openPLI CCcam.

Re: I need some help form a developer. #2 ims

  • PLi® Core member
  • 11,111 posts

+167
Excellent

Posted 14 April 2013 - 10:39

was called nothing from it still. In time, when it was called, python will build .pyo


Kdo nic nedělá, nic nezkazí!

Re: I need some help form a developer. #3 doddema

  • Senior Member
  • 528 posts

+14
Neutral

Posted 14 April 2013 - 11:20

Ha, ok.

 

At the skin code, I have a line: <convert type="AlwaysTrue"></convert>

I will try to vindout wy AlwaysTreu is not called.

 

Thanks...

<screen name="StandbySummary" position="fill">
<widget source="global.CurrentTime" render="Label" position="0,0" size="73,64" font="DotLcD;58" halign="right" valign="center" noWrap="1" text="23">
<convert type="ClockToText">Format:%H</convert>
</widget>
<widget source="global.CurrentTime" render="Label" position="93,0" size="73,64" font="DotLcD;58" halign="left" valign="center" noWrap="1">
<convert type="ClockToText">Format:%M</convert>
</widget>
<widget source="global.CurrentTime" render="FixedLabel" text=":" font="DotLcD;58" position="73,0" size="20,64" halign="center" zPosition="3" valign="center">
<convert type="AlwaysTrue"></convert>
<convert type="ConditionalShowHide">Blink</convert>
</widget>
</screen>

VU+Ultimo met OpenPLI 4.0, 2TB hdd. Oscam, CD seca3 kaart en Ziggo kaart.
Dreambox 7025+ met temperatuur geregelde koeling, OpenPLI image, Swapfile 64mb op CF kaart.
VU+DUO met openPLI CCcam.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users