Jump to content


Photo

Text wrap


  • Please log in to reply
3 replies to this topic

#1 digidude

  • Senior Member
  • 136 posts

+10
Neutral

Posted 29 December 2013 - 10:45

Is it possible to have text to place itself on a new line when it reaches the end of the available window space within a plugin. I scrape information for a website, but, it all comes in on one long line, as shown in the screenshot.

 

Heres the skin info i have made

 

    skin = """
        <screen position="center,center" size="900,480" title="National Lottery - Main draw raffle results." >
  	    <ePixmap pixmap="extensions/lotto.png" position="800,10" size="65,65" zPosition="1" transparent="0" alphatest="on" />
        <widget name="maindrawraffle" render="Label" position="10,10" size="780,460" scrollbarMode="showOnDemand" />
        </screen>"""

i tried adding the render="Label" to see if that would work. scrolling left/right doesnt work, that jumps to the next / previous page

 

thank you in advance

Attached Files


DMM 2x 500s, 2x 7020Si, 600s, 800s, 500HD.


Technomate 500, 500Super, 600, 9100, 800HD, 500HD, TWIN-OE, 2T-OE, Single-OE, NANO-OE. (& all non linux)


Vu+ Duo and others :)

ALL originals, a clone free environment.

 

www.technomatesoftware.co.uk


Re: Text wrap #2 digidude

  • Senior Member
  • 136 posts

+10
Neutral

Posted 30 December 2013 - 15:11

just to add to the above information. I know that /n is for a new line, but, im using (.+?) to scrape information from a single field, which contains normally 50 'entires' from the one single scrape, but has also contained 100, 150, 500 and even 1000 , all seperated only by a comma between each entry. this is making everything in the OSD be shown on one single line, which isnt big enough, so need something to recognise when the text reaches the end of the available window space, and make it start on the next line


DMM 2x 500s, 2x 7020Si, 600s, 800s, 500HD.


Technomate 500, 500Super, 600, 9100, 800HD, 500HD, TWIN-OE, 2T-OE, Single-OE, NANO-OE. (& all non linux)


Vu+ Duo and others :)

ALL originals, a clone free environment.

 

www.technomatesoftware.co.uk


Re: Text wrap #3 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 30 December 2013 - 15:40

EDIT: the info i gave wasnt what you required after re reading your question.


Edited by ian1095, 30 December 2013 - 15:44.


Re: Text wrap #4 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 31 December 2013 - 02:55

Try to use ScrollLabel in python code.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04


3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users