Mario Lacunza wrote:
Hello,
I have some problems with de new Demo version:
* When I try to run Supertooltip wxDemo crash:
mario@mario-laptop:~/Programas/wxPython/demo$ python demo.py
(python:12366): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'
Fallo de segmentación
It doesn't crash for me, although I do get the GTK warnings...
* This error with ShapedButton:
Traceback (most recent call last):
File "agw/ShapedButton.py", line 572, in OnButton
self.win = ShapedButtonDemo(self, self.log)
File "agw/ShapedButton.py", line 62, in __init__
self.BuildAudioToolBar()
File "agw/ShapedButton.py", line 140, in BuildAudioToolBar
self.rewind = SBitmapButton(self.panel, -1, upbmp, (48, 48))
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/agw/shapedbutton.py", line 847, in __init__
SButton.__init__(self, parent, id, "", pos, size)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/agw/shapedbutton.py", line 234, in __init__
self._originalup = Image.open(upfile, "r")
File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1889, in open
fp = __builtin__.open(fp, "rb")
IOError: [Errno 2] No existe el fichero ó directorio: '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/agw/UpButton.png'
This is due to the .png files being left out of the distribution...
Andrea, I noticed the comments in shapedbutton.py about losing the alpha channel for those images if you tried to img2py them. Does it make any difference if you alter the source images to to be RGBA files instead of 8-bit files with a palette? If not let me know and I might have a different trick that would work.
* Knobcontrol:
(python:12405): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13
(python:12405): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13
I don't see these, but they are probably harmless.
* I confirm the odd vies with the Treemixin,see image attached.
Ok, I think I know what this is...
* Whe I see the Richtextcontrol and close the demo crash:
Traceback (most recent call last):
File "TreeMixin.py", line 199, in OnPageChanged
oldTree = self.GetPage(event.OldSelection)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 2910, in GetPage
return _controls_.BookCtrlBase_GetPage(*args, **kwargs)
ValueError: in method 'BookCtrlBase_GetPage', expected argument 2 of type 'size_t'
Fallo de segmentación
I'll need more info on this one.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!