Re: Hacking a Win32 UI without knowing jack

will guaraldi <[email protected]>
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
I don't think I've ever read the wxpython code.  I know the tkui code has
its own thread to handle ui events (mouse clicks, keyboard stuff, ...) and
has a timeout callback which we have pulling from its own event queue.
The Lyntin core dumps messages to the tkui event queue and the timeout
callback reads and processes them.  It's pretty icky, but I couldn't find
a better way to do it that allowed for other ui's.

I think that's what I did--this was all a couple of years ago.

I'll try to find some time to either do a tutorial on building new user
interfaces or making the baseui.py documentation more comprehensive in
terms of what you need to do to implement a new user interface.  I
probably won't get to this for a while, though.

/will


On Wed, 21 Apr 2004 [email protected] wrote:
>
> Quoting [email protected] :
>
> > I wrote a GUI into a compiled Python module (pyd).
> > I show and operate that GUI from kaiui.py a Lyntin ui wrapper.
> >
> > I can currently write to the UI, but I have a dilemma.
>
> Ok. I can see I probably do want wantMainThread to return 1.
> Now I just need to figure what my equivalent of _wx.MainLoop() is.
>
> I figured I just process Win32 messages here indefinitely,
> but that's not quite it apparently.
>
>

-- 
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.