Basic GUI
I'm writing a simple GUI that: ..gets info via telnet protocol (and sends) ..gets info via http (and sends) ..gets user-info from (currently) ...Tkinter Text windoze ...Tkinter buttons and such ..displays info in various Tkinter windoze ...graphic AND text... I can accomplish all of these functions individually and now seem to need to set up multi-processes to combine 'em. Back in my C days, I'd have used fork/exec to do so, but I'm confused by the number of modules available in Python. Is there a "best" for portability and simplicity? (Or am I on the wrong track here?) I could solve my problems with the following psuedo-code made into real code: import blah t = blah.fork(runthisprogram.py) #OK still in main t.sendinfo(info) info = t.receiveinfo() #runthisprogram.py def sendinfobacktopapa(): ? eventhere def getinfofrompapa(): ? eventhere It seems to me that propagating events *may* be the best way to communicate. I'm wide open, including to non-multi-process solutions. Thanks for your comments, I searched old posts for a while, various other Python info-sources, and couldn't find an answer. -- don -- http://mail.python.org/mailman/listinfo/python-list
error: (10035, 'The socket operation...
IDLE internal error in runcode() Traceback (most recent call last): File "C:\PYTHON25\lib\idlelib\rpc.py", line 235, in asyncqueue self.putmessage((seq, request)) File "C:\PYTHON25\lib\idlelib\rpc.py", line 332, in putmessage n = self.sock.send(s[:BUFSIZE]) error: (10035, 'The socket operation could not complete without blocking') Does this look familiar to anyone? I can't figure out what to do about it. Python 2.5, windoze. I get it when I execute a Tkinter op that works elsewhere. changing this: t = self.b.create_text( (point.baseX + 1)*self.checkerSize/2 + fudge, y + fudge, text = str(point.occupied), width = self.checkerSize) to t = self.b.create_text( (point.baseX + 1)*self.checkerSize/2 + fudge, y + fudge, text = str(point.occupied), font=("Times", str(self.checkerSize/2), "bold"), width = self.checkerSize) for example. The same code works fine elsewhere. I thought I'd ask here before I try (no clue) increasing BUFSIZE in rpc.py? I'm not crazy about tinkering with code I have no clue about.. -- don -- http://mail.python.org/mailman/listinfo/python-list