monitor socket and AppendText to panel problem

After trying several different attempted solutions I lost my for
statement. It should be

   def GetSocketData(self):
  self.receive_window.AppendText("Inside GetSocketData")

  while self.keeprunning:
      sys.stdout.write(self.prompt)
      sys.stdout.flush()
      inputready, outputready,exceptrdy = select.select([0, self.sock], ,)
      for i in inputready:
    if i == self.sock:
        data = receive(self.sock).strip()
        if not data:
      pass
        else:
      self.receive_window.AppendText('%s\n' %data)

I put this back into what I currently have and still I am not getting
messages to my panel and sending from another client still causes my
window not to kill the socket when exiting.

Thanks for the observation,

Thomas

···

On Tue, Apr 8, 2008 at 5:36 PM, Grant Edwards <grante@visi.com> wrote:

On 2008-04-08, Thomas Bennett <bennetttmg@gmail.com> wrote:

> in GetSocketData:
>
> def GetSocketData(self):
> self.receive_window.AppendText("Inside GetSocketData") # for testing
>
> while self.keeprunning:
> sys.stdout.write(self.prompt)
> sys.stdout.flush()
> inputready, outputready,exceptrdy = select.select([0, self.sock], ,)
> if i == self.sock:

Where does the value of "i" come from?

> data = receive(self.sock).strip()
> if not data:
> pass
> else:
> self.receive_window.AppendText('%s\n' %data)

--
Grant Edwards grante Yow! I'm having fun
                                  at HITCHHIKING to CINCINNATI
                               visi.com or FAR ROCKAWAY!!

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users