Hi, I start a new thread, the trouble I encounter has nothing to do with the reencode2 plugin
First of all, I encounter a conflict with idlebar.encoding :

At the end of the freevo startup (that is, when the 'wait bar is nearly on the right of the screen, just before the main screen display), freevo crashes :
Crash!
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/freevo/main.py", line 454, in ?
    MainMenu().getcmd()
File "/usr/lib/python2.4/site-packages/freevo/main.py", line 168, in getcmd
    menuw.pushmenu(mainmenu)
File "/usr/lib/python2.4/site-packages/freevo/menu.py", line 378, in pushmenu
    self.refresh()
File "/usr/lib/python2.4/site-packages/freevo/menu.py", line 406, in refresh
    skin.draw('menu', self, self.menustack[-1])
File "/usr/lib/python2.4/site-packages/freevo/skins/main/main.py", line 526, in draw
    a.draw(settings, object, menu, style, type, self.force_redraw)
File "/usr/lib/python2.4/site-packages/freevo/skins/main/area.py", line 194, in draw
    self.update_content()
File "/usr/lib/python2.4/site-packages/freevo/skins/main/default_areas.py", line 179, in update_content
    p.draw((self.widget_type, self.menuw), self)
File "/usr/lib/python2.4/site-packages/freevo/plugins/idlebar/encoding.py", line 306, in draw osd.write_text(self.jobs, font, None, self.tx, y, self.textw, self.font_h, 'center', 'center') File "/usr/lib/python2.4/site-packages/freevo/skins/main/area.py", line 625, in drawstring
    x = content.x
AttributeError: 'NoneType' object has no attribute 'x'
Disabling the plugin let me go further :

| Only in basic, so none of the _BB skins will work. I think that
| someone like Andrew Flegg can help with the BB skins, he knows quite a
| bit about how they work. My view is that when the buttonbar plugin is
| running then the skins should adapt to the new size.
|
| This seems to work for the idlebar.


Well, I still encounter this trouble, using the blurr display.

I did some investigations :

My troubles come from skins/main/area.py around line 625 : there are made an assumption that content is ever set. But the next lines, we can see that for other tests, the program safely controls if content is set.

I did a small change who permit me to start the idlebar.plugin ... in the top of the screen, in the middle !

Use this change as a proof of concept, no more :-)

BTW, of can I byte compile a py in a pyc file ? Google didn't help me much this time (remember : I'm very bad in python !)

Thanks,


Pascal
diff -u ~freevo/svn/freevo/src/skins/main/area.py /usr/lib/python2.4/site-packages/freevo/skins/main/area.py
--- /home/freevo/svn/freevo/src/skins/main/area.py      2007-01-12 20:38:17.000000000 +0100
+++ /usr/lib/python2.4/site-packages/freevo/skins/main/area.py  2007-01-22 20:55:11.000000000 +0100
@@ -622,9 +622,16 @@

         # set default values from 'content'
         if x == -1:
-            x = content.x
+           if content:
+                x = content.x
+            else:
+                # print "x = -1, content = %s, self = %s" % ( content , self )
+                x = 0
         if y == -1:
-            y = content.y
+            if content:
+                y = content.y
+            else:
+                y = 550

         if width == None:
             width  = content.width
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to