python - How to use wxreactor with twisted Perspective Broker [PB] to write a chat client -


i learning wxpython , twisted's perspective broker. i've been assigned use them produce chat client (i've written server, , console based client.)

this what's stumping me: pb has it's own 'flow' callbacks , such, doesn't intuitively mesh event driven flow of wxpython. kind of program structure should using 2 cooperating?

i've tried using twisted pb client part of program , store info server in local methods wxpython gui can call in response events, , use @ start set list of online users , groups. think i'm running issues sequence--not storing necessary variables before wx code calls them, because both started @ same time. perhaps inserting time delay frame creation , such help, feels clumsy solution, if solution @ all.

another approach pass server reference directly wxpython frame (and sub-panels/notebooks). here i'm running issues because callbacks need different class, , wx needs info in same class...and perhaps there's way force them same mold, again, feels clumsy (plus haven't managed make work yet.

is there resource addresses problem? standard approach?

in case these might illuminate problem approach...

here's server code: http://pastebin.com/84fmhsrv gui client code: http://pastebin.com/uimxe4ry

thank help.

you'll want take @ both of these pages on twisted , wxpython:

i found recipe on topic. wiki link has simple chat program done.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -