Hi All,
I have been toying for a while with the idea to integrate what my
little tool EventsInStyle does with the wxPython demo. I believe I got
to an interesting point, so I'll share it with you.
Basically, EventsInStyle downloads some data from the wxWidgets trunk
documentation pages here:
http://docs.wxwidgets.org/trunk/
And specifically it downloads information about window styles, extra
styles, events emitted and screenshots for a particular widget. I had
thought I could do the same with the wxPython demo but without
actually connecting to the internet, just by using the CHM help file
(which contains more or less the same data of the wxWidgets
documentation web page) that comes with the wxPython demo.
Unfortunately, I have been unable to find a simple or builtin CHM file
reader for Python.
So, the modified wxPython demo does connect to the web and downloads
the data (if no firewall interference is present), and then it stores
the downloaded data in the user data folder for the wxPython demo so
that it doesn't need to download it every time. These are a couple of
screenshots of the modified demo:
http://img9.imageshack.us/img9/7265/wxpythondemo.png
http://img641.imageshack.us/img641/5796/wxpythondemo2.png
As you can see, the downloaded data are integrated with the "overview
text" already present in the wxPython demo for every widget.
The download option is off by default, and can be enabled with the
menu "Options" => "Allow download of docs". The "Options" menu has
also an option to delete the downloaded docs and get a fresh new copy
of it from the web.
You can find the modified version of the demo here:
http://xoomer.virgilio.it/infinity77/Zipped/Main2.py
It is built against the SVN version of the demo, so for those of you
using wxPython 2.8.10.1 you might need to download also
wx.lib.msgpanel here:
http://svn.wxwidgets.org/viewvc/wx/wxPython/trunk/wx/lib/msgpanel.py?revision=62548&view=markup
Simply put the "Main2.py" inside the wxPython demo folder and start it.
Please let me know if there is any interest in this kind of behaviour
and/or if you run into problems by using it.
Enjoy, wxPython rules
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
http://thedoomedcity.blogspot.com/2010/03/removal-group-nightmare.html <==
···
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en