I've def'ed a handler for EVT_IDLE in the app's main frame. There I'd like
to call the nanothreads' __iter__ method, somehow.
When I copy the __iter__ method into a, say, runOnce() method and call the
next() method of the generator returned by runOnce(), it works. But I can't
get at the __iter__ method, which is already there and therefore should be
used instead of messing up nanothreads with changes of mine.
Any hint welcome
Kind regards
Franz GEIGER 2 1326
F. GEIGER wrote: I've def'ed a handler for EVT_IDLE in the app's main frame. There I'd like to call the nanothreads' __iter__ method, somehow.
When I copy the __iter__ method into a, say, runOnce() method and call the next() method of the generator returned by runOnce(), it works. But I can't get at the __iter__ method, which is already there and therefore should be used instead of messing up nanothreads with changes of mine.
Any hint welcome
The latest version of nanothreads is now in the fibranet package, which
you can download from the cheeseshop: http://cheeseshop.python.org/pypi/FibraNet
To iterate nanothreads from wx, I call the nanothreads.poll() function
from the EVT_IDLE handler, making sure that I call event.RequestMore()
from within the handler, to iterate nanothreads as fast as possible.
HTH, Simon WIttber.
<si**********@gmail.com> schrieb im Newsbeitrag
news:11*********************@z14g2000cwz.googlegro ups.com... F. GEIGER wrote: I've def'ed a handler for EVT_IDLE in the app's main frame. There I'd like to call the nanothreads' __iter__ method, somehow.
When I copy the __iter__ method into a, say, runOnce() method and call the next() method of the generator returned by runOnce(), it works. But I can't get at the __iter__ method, which is already there and therefore should be used instead of messing up nanothreads with changes of mine.
Any hint welcome The latest version of nanothreads is now in the fibranet package, which you can download from the cheeseshop:
http://cheeseshop.python.org/pypi/FibraNet
To iterate nanothreads from wx, I call the nanothreads.poll() function
Yeah, that's what I was looking for. But poll() is new, isn't it?
from the EVT_IDLE handler, making sure that I call event.RequestMore()
Good hint, thanks, I always tend to forget that.
from within the handler, to iterate nanothreads as fast as possible.
HTH, Simon WIttber.
Thanks for your response and kind regards
Franz GEIGER This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: F. GEIGER |
last post by:
I've def'ed a handler for EVT_IDLE in the app's main frame. There I'd like
to call the nanothreads' __iter__ method, somehow.
When I copy the __iter__ method into a, say, runOnce() method and...
|
by: Daniel Jonsson |
last post by:
So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to...
|
by: Steven W. Orr |
last post by:
python-2.3.5
wx-2.6
I just bought the wxPython In Action book and I see that all the examples
say to
import wx
All of our pre-existing code was horribly doing a
from wxPython import *
I...
|
by: rocksportrocker |
last post by:
Hi,
I want to visualize some vtk-files within a wxPython Window. Google
did not help me
very much, I only found some tools for Tk, what is no solution for me.
I'm sure I am not the first one...
|
by: Farsheed Ashouri |
last post by:
Hi everyone. I create a little browser with wxpython and IEHtmlWindow.
But I have a little problem here.
When I press enter in the html page, The focus goes to another panel.
Why this happens?
I...
|
by: Andrea Gavana |
last post by:
Hi Diez & All,
Do you mind explaining "why" you find it *buttugly*? I am asking just
out of curiosity, obviously. I am so biased towards wxPython that I
won't make any comment on this thread...
|
by: mistersulu |
last post by:
Hi all:
I'm using a wx.ListView object with a multi-threaded wxPython app.
The list is dynamically generated and accessed across two or more
threads. In spite of the fact that I have checks to...
|
by: leon.domingo |
last post by:
Hello,
I've installed Eclipse, Python 2.5 and wxPython on Ubuntu 8.04. The
problem is that I can't get code completion for wx module. I don't
know if it occurs the same with other libraries...
|
by: Stef Mientki |
last post by:
Peter Anderson wrote:
In PyScripter, you should run wxPython in the plain remote machine (not
the wxPython remote),
and you should set "reset before run flag" or reset the remote machine
each...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |