Hi David,
Hi Werner,
I recently
came across the following on Mike’s blog.
[http://www.blog.pythonlibrary.org/2011/07/25/wxpython-windows-styles-and-events-hunter/](http://www.blog.pythonlibrary.org/2011/07/25/wxpython-windows-styles-and-events-hunter/)
Would be neat if something like this could be integrated into
the wxPython demo, maybe part of Phoenix?
It's already there in wxPython 2.9, I have implemented the
changes to the demo a while back. Under the “Options” menu,
check if the “Allow download of docs” is checked and watch
what happens when you select one of the (wxWidgets-derived)
controls demo.
The version integrated into the demo works fine but I thought I
would install the stand-alone version and have it pinned to my
Windows 7 task-bar for quick reference to cut down on the need to
use the wxWidgets C++ style docs * so much, but there seems to be a
problem with the version dated 21 Apr 2010 using wx.2.9.2 both on
Windows and OS X (I think the [earlier?] version downloaded from the
above blog was OK). After double clicking the required entry - and
seeing the ‘downloading…’ messages, nothing appears in the
right-hand pane until the left pane is maximised and reduced again.
A suggestion. Would it be possible to make a selection from the tree
with a single click, in the style of selecting in the demo? It isn’t
obvious that a double click is required.
Also, what is the purpose of the **Close** button for the left
hand pane/tree? Once closed , there doesn’t seem to be any way of
re-opening it to do anything else - or is it me being stupid?
Thank you for the suggestions. I haven’t developed further the standalone EventsInStyle application since April 2010, although your comments made me re-think this strategy and I came out with a new version (attached to this message, and also on my webpage: http://xoomer.virgilio.it/infinity77/Zipped/EventsInStyle.py).
I implemented all your suggestions in the tool and made the widgets/events importing dynamic, so there is no need anymore of long list of widgets and event names. With the new version, however, I can not reproduce the issue you mentioned about maximizing/reducing the left pane to get the right pane content. Could you please check if the new version works for you?
Anyway, I tested it on Windows 7 and Windows Vista, wxPython 2.8.12 and 2.9.2.4, Python 2.5 and 2.7. If someone could try it also on Linux and/or Mac, it would be very helpful if you reported back any strange behaviour (i.e., bugs in my crappy code).
* The wxWidget docs seem to have taken a turn for the worse at
version 2.9. In the Index view it used to be possible to click on a
sub-heading, such as a method of a control and go straight to it.
Now everything seems to point to the control’s main entry point,
which is a pain when there are dozens of methods as in wx.Grid - or,
again, is it just me?
No, I agree with you. I’d also add that the CHM file shipped with wxPython has become harder to navigate with respect to the one in the 2.8.11 version (prior to Doxygen? I am not sure about this). Anyway, wxPython docs on Sphinx-mode are finally on sight (time and job and family permitting, possibly for Phoenix only - depending on the future release schedule/plans Robin has).
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 “”, line 1, in
ImportError: No module named PyQt4.QtGui
import pygtk
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named pygtk
EventsInStyle.py (68.7 KB)
···
On 30 September 2011 17:41, David Hughes wrote:
On 28/09/2011 20:07, Andrea Gavana wrote:
On 28 September 2011 17:55, werner wrote:
import wx