After looking in various places, I was unable to find “samples/mainloop/mainloop.py”. Where would I find this?
Also, as a newcomer, I’m a bit lost in the various forms and locations of docs, so where would I find docs for wx.EventLoop? All I found was http://wxpython.org/docs/api/wx.EventLoop-class.html, which is too sketchy for this novice.
···
It is possible to replace the MainLoop. Take a look at the code in
samples/mainloop/mainloop.py and also at the docs for wx.EventLoop. It
can work for situations like this where you need to blend two event
loops, but if you can do it with timers or an alternate thread that
might be a better solution.
If you are running windows then you need to have installed the
documents and samples package for your version of wx and python, you
can get it from ,
if you have allowed the installer to use the default location then
the file will be under:
C:\Program Files\wxPython2.x Docs and Demos
I can’t say off the top of my head where they will be in other OSs
but if you download the source tarball for the documents and demo’s
then they will be where you put them.
Gadget/Steve
···
On 25/06/2012 3:49 AM, Bruce Sherwood
wrote:
After looking in various places, I was unable to find
“samples/mainloop/mainloop.py”. Where would I find this?
Also, as a newcomer, I'm a bit lost in the various forms and
locations of docs, so where would I find docs for wx.EventLoop?
All I found was http://wxpython.org/docs/api/wx.EventLoop-class.html ,
which is too sketchy for this novice.
It is possible to
replace the MainLoop. Take a look at the code in
samples/mainloop/mainloop.py and also at the docs for
wx.EventLoop. It
can work for situations like this where you need to blend two
event
loops, but if you can do it with timers or an alternate thread
that
might be a better solution.
–
To unsubscribe, send email to
or visit
http://www.wxpython.org/download.php
wxPython-users+unsubscribe@googlegroups.com
http://groups.google.com/group/wxPython-users?hl=en
I have the demo and docs package installed on Windows, but I’m unable to figure out how to find in this package the documentation for wx.EventLoop, nor can I find samples/mainloop/mainloop.py. So I repeat, where do I find these materials? Sorry to be so obtuse!
···
On Sunday, June 24, 2012 11:01:17 PM UTC-6, Gadget Steve wrote:
On 25/06/2012 3:49 AM, Bruce Sherwood > wrote:
After looking in various places, I was unable to find
“samples/mainloop/mainloop.py”. Where would I find this?
Also, as a newcomer, I'm a bit lost in the various forms and
locations of docs, so where would I find docs for wx.EventLoop?
All I found was http://wxpython.org/docs/api/wx.EventLoop-class.html ,
which is too sketchy for this novice.
It is possible to
replace the MainLoop. Take a look at the code in
samples/mainloop/mainloop.py and also at the docs for
wx.EventLoop. It
can work for situations like this where you need to blend two
event
loops, but if you can do it with timers or an alternate thread
that
might be a better solution.
–
If you are running windows then you need to have installed the
documents and samples package for your version of wx and python, you
can get it from http://www.wxpython.org/download.php ,
if you have allowed the installer to use the default location then
the file will be under:
C:\Program Files\wxPython2.x Docs and Demos\
I can't say off the top of my head where they will be in other OSs
but if you download the source tarball for the documents and demo’s
then they will be where you put them.
Gadget/Steve
If you are running wxPyton Demo 2.8 then the mainloop.py sample will
be in “C:\Program Files\wxPython2.8 Docs and Demos\samples\mainloop”
providing it was installed to the default location, for versions
other than 2.8 just substitute the number. In the wx help file, normally wx.chm, “C:\Program Files\wxPython2.9
Docs and Demos\docs\wx.chm”, in the index try looking for
wxEventLoopBase.
General tip as the help document, (prior to the phoenix project), is
actually the C++ wxWidgets documentation all wxmethods
will be in there as wx due to the difference in the name
space and naming conventions between C++ and Python.
Gadget/Steve
···
On 25/06/2012 6:33 AM, Bruce Sherwood
wrote:
I have the demo and docs package installed on Windows,
but I’m unable to figure out how to find in this package the
documentation for wx.EventLoop, nor can I
find samples/mainloop/mainloop.py. So I repeat, where do I find
these materials? Sorry to be so obtuse!
**.**XXXX XXXX
Thanks much! I guess I should have found samples/mainloop in the demo and docs package, but I can see why I couldn’t find wxEventLoopBase in wx.chm by searching for EventLoop.
···
On Monday, June 25, 2012 1:31:27 AM UTC-6, Gadget Steve wrote:
On 25/06/2012 6:33 AM, Bruce Sherwood > wrote:
I have the demo and docs package installed on Windows,
but I’m unable to figure out how to find in this package the
documentation for wx.EventLoop, nor can I
find samples/mainloop/ mainloop.py. So I repeat, where do I find
these materials? Sorry to be so obtuse!
If you are running wxPyton Demo 2.8 then the mainloop.py sample will
be in “C:\Program Files\wxPython2.8 Docs and Demos\samples\mainloop”
providing it was installed to the default location, for versions
other than 2.8 just substitute the number.
In the wx help file, normally wx.chm, "C:\Program Files\wxPython2.9
Docs and Demos\docs\wx.chm", in the index try looking for
wxEventLoopBase.
General tip as the help document, (prior to the phoenix project), is
actually the C++ wxWidgets documentation all wx**.XXXX methods
will be in there as wxXXXX due to the difference in the name
space and naming conventions between C++ and Python.
Gadget/Steve
Here’s some helpful hints I put together about finding documentation for wxPython: wxPython Documentation - Mouse Vs Python
Hopefully when Project Phoenix is complete, we can start shoring up the documentation properly. I prefer Andrea’s docs to the wx man pages: http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.EventLoop.html?highlight=eventloop
But I use both as the man pages show up in Google searches.
···
On Monday, June 25, 2012 9:53:29 AM UTC-5, Bruce Sherwood wrote:
Thanks much! I guess I should have found samples/mainloop in the demo and docs package, but I can see why I couldn’t find wxEventLoopBase in wx.chm by searching for EventLoop.
This is due to a "feature" of the windows help engine, it only searches
for whole words by default, you do get matches if you search for
*EventLoop* but not if you leave off the wx or the Base or if you have
the . after the wx...
Gadget/Steve
···
On 25/06/2012 3:53 PM, Bruce Sherwood wrote:
Thanks much! I guess I should have found samples/mainloop in the demo
and docs package, but I can see why I couldn't find wxEventLoopBase in
wx.chm by searching for EventLoop.