Jump to content


Photo

Dynamically change screen title text


  • Please log in to reply
No replies to this topic

#1 jimux

  • Member
  • 33 posts

+1
Neutral

Posted 15 March 2013 - 17:08

Enigma2 has a nice method to use the text of a variable in the title bar of a screen within a class but the value seems to be provided at run time and cannot be subsequently changed. In my example below I have a global variable which is changed a number of times before the class containing the screen is called. But the value provided is that set at the module level, regardless of change.

Is there a method to force a change as and when required?

skin = """
<screen position="center,center" size=\"""" + str(wsize) + "," + str(hsize) + """\" title=" Some fixed text plus %s" >
<widget name="myMenu" position="10,10" size="500,350" scrollbarMode="showOnDemand" />
</screen>""" % Variablename


Technomate box user (TM9100, TM800HD) and moderator on allsats.co.uk Linux/unix fan for many years.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users