You are not logged in.

Dear visitor, welcome to Dreamboard. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, November 21st 2010, 6:14pm

Components.ScrollLabel

I have problem with Components.ScrollLabel - I have used this code in my plugin:

Source code

1
2
3
4
5
6
7
8
… 
<widget name="testlabel" position="320,271" size="770,218" font="Regular;22" /> 
…. 
self["testlabel"] = ScrollLabel("") 
self["testlabel"].setText("") 
…. 
self["testlabel"].setText(teststring) 
# in teststring I have text>8kb. Text is in utf-8 .

During viewing after 16 pages (Page Down) text is missing in scrollbox, PageDown is working and scrollbar as well but without text till the end.I have tried to use self["testlabel"].getText() and text is OK - full. It looks that problem is in that component. Very interesting is that I have tried to decrease window for scrolllabel ie. from 218 to 60 points in widget

Source code

1
<widget name="testlabel" position="320,271" size="770,60" font="Regular;22" />

and again only first 16 pages was OK and then text was missing. It was tested in python 2.5 and 2.6 as well – same result.


Is it bug or is there some limitation for number of pages?

Thanks

2

Tuesday, November 23rd 2010, 7:42pm

I have finally found myself where is the bugs:

There are necessery correct two parts -

setText and appendText with following code:

PHP Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#corrected parts 
def setText(selftext): 
... 
 if pages 1: 
  self.long_text.size() # new row 
  self.long_text.resize(eSize(s.width(), self.pageHeight*pages)) # new row 
  self.scrollbar.show() 
  self.total total 
  self.pages pages 
  self.updateScrollbar() 
... 


def appendText(selftext): 
... 
 if pages 1: 
  self.long_text.size() # new row 
  self.long_text.resize(eSize(s.width(), self.pageHeight*pages)) # new row 
  self.scrollbar.show() 
  self.total total 
  self.pages pages 
  self.updateScrollbar() 
...


Dream guys, could you add into enigma source code? Thanks a lot !
petrkl12 has attached the following file:
  • ScrollLabel.py (4.35 kB - 69 times downloaded - latest: May 12th 2013, 9:28pm)

This post has been edited 3 times, last edit by "petrkl12" (Nov 23rd 2010, 10:23pm)


3

Tuesday, November 23rd 2010, 9:36pm

to able run OnlineUpdates in future you can modify and use my Python_patcher.sh
http://www.dream-multimedia-tv.de/board/index.php?page=Thread&threadID=12560
Receivers: dm500; dm7020; 2x dm8000sstt <-Diseq1x4(1.0)<-3x Diseq1x10(1.1)<-
Dishes:
1.8m + 36E;28E;23E;19E;16E;13E;7E
1.6m + 42E;40/39E;36E
1.0m + 10/9E;5E;1W;8W
1.0m + 15W;22W;30W
1.1m + 12W;18W;24W
0.8m + 4/5W
1.1m + 53E;60E
1.0m + 75E;80E
TVs: Philips 42PFL9703h(LCD); Sony KV29c3d(CRT)

4

Tuesday, November 23rd 2010, 10:24pm

you can add there, thanks

5

Friday, November 26th 2010, 7:07am

Dreambox developers, could you add that bug corrections into CVS archive? Or what I can do for it? Thanks a lot.

6

Thursday, April 26th 2012, 4:44pm

Ich habe das gleiche Problem. Vielleicht könnte jemand von dream den Fix mal einpflegen, sollte eigentlich kein großes Problem sein. Alle Scrollboxen auf der Box mit abgeschnittenen Text muss nicht sein.

@petrkl12: Thanks fot the advice.

Fraxinas

Dream-Multimedia

Posts: 261

Location: Aschaffenburg

Occupation: Softwareingenieur

  • Send private message

7

Friday, April 27th 2012, 8:58am

thanks for the patch petrkl12,
your fix will be implemented in the next release

8

Saturday, April 28th 2012, 9:25am

respekt nur 18 monate response time, ihr seit am richtigen weg ;)

Fraxinas

Dream-Multimedia

Posts: 261

Location: Aschaffenburg

Occupation: Softwareingenieur

  • Send private message

9

Saturday, April 28th 2012, 10:10am

blah blah man kann ja auch schonmal was übersehen oder? immerhin wäre der normale weg gewesen, es an die <enigma2-devel@lists.elitedvb.net> mailing list zu übermitteln.

10

Saturday, April 28th 2012, 1:21pm

thanks for the patch petrkl12,
your fix will be implemented in the next release


Thanks Fraxinas :thumbsup:

11

Thursday, May 31st 2012, 12:43am

Auch von meiner Seite Danke!