Hi Robin & All,
I was surfing through the latest and greatest wxPython 2.9.3.1,
and I found a few oddities plus a possible goody:
1) The main wx.TreeCtrl looks a bit strange, the line height is way
too short for the big items (i.e. items with big font) although the
style wx.TR_HAS_VARIABLE_ROW_HEIGHT has been specified (see the
screenshot demo.png). If you switch to use CustomTreeCtrl, the line
height is what it is supposed to be.
2) In the wx.Slider demo, I just added the style wx.SL_INVERSE to the
demo. Well, I must say that what I found (attached as slider.png) is a
bit counter-intuitive... The slider value label is correctly shown as
inverted, but what about the slider min/max labels? They don't make
any sense to me.
3) The wx.ListBook still doesn't make enough room to display the
entire labels for the various page tabs (see that you have to scroll
horizontally to see that the page names are actually "Aquamarine",
"Cadet Blue" and so on).
4) When I try to load the PDFViewer demo I get this:
C:\Python27\Lib\site-packages\wx-2.9.3-msw\wxPython2.9 Docs and
Demos\demo>python Main.py
Traceback (most recent call last):
File "Main.py", line 2225, in OnSelChanged
self.LoadDemo(itemText)
File "Main.py", line 2249, in LoadDemo
self.demoModules = DemoModules(demoName)
File "Main.py", line 1316, in __init__
self.LoadFromFile(modOriginal, GetOriginalFilename(name))
File "Main.py", line 1327, in LoadFromFile
self.LoadFromSource(modID, file.read())
File "Main.py", line 1333, in LoadFromSource
self.LoadDict(modID)
File "Main.py", line 1346, in LoadDict
self.modules[modID][4] = DemoError(sys.exc_info())
File "Main.py", line 1445, in __init__
line = line.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
I am not sure (yet) what the problem is but I will investigate tomorrow.
5) I get an AttributeError when trying to load the ActiveX_FlashWindow
demo (see attached flash.png). Can it be because the SWF movie was not
included in the distribution?
6) I get this from the ActiveX_PDFWindow when trying to load a PDF file:
# Generating comtypes.gen._05BFD3F1_6319_4F30_B752_C7A22889BCC4_0_1_0
Traceback (most recent call last):
File "ActiveX_PDFWindow.py", line 135, in OnLoadButton
self.pdf.LoadFile(dlg.GetPath())
File "C:\Python27\lib\site-packages\wx-2.9.3-msw\wx\lib\pdfwin.py",
line 70, in LoadFile
return self.ctrl.LoadFile(fileName)
File "C:\Python27\lib\site-packages\comtypes\__init__.py", line 264,
in __getattr__
raise AttributeError(name)
AttributeError: LoadFile
7) The MediaCtrl sample fails to run, probably because of the missing
movie? (See attached media.png).
8) I get the same error as (4) when I try to run the Cairo demos, but
I guess I will need to onstall the cairo stuff myself. Am I correct?
9) RendererNative: on what platform the + and - images are drawn like
the ones I am seeing (attached as renderer_native_tree.png)? Maybe I
am missing something, but my Windows machine doesn't show tree item
buttons like these...
10) (Goody): Now that I saw the beautiful wx.html2, how about we start
and include somehow the Phoenix docs in the demo itself? I mean,
wx.html could never ever handle the CSS-based Phoenix docs, but it
appears to me that wx.html2 can render them beautifully. Do you think
it would be worth trying and display the Phoenix docs somewhere inside
the "Overview" tab for each widget (if available)?
···
--
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
import PyQt4.QtGui
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named PyQt4.QtGui
import pygtk
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named pygtk
import wx