Hello,
I'm learning Tkinter, and I have an issue that I'd appreciate help
with. I have a program that initializes a GUI (I'll call this the GUI
process), then spawns another process that listens on a network via
the TCP/IP protocol for incoming strings (I'll call this the server
process).
I should also mention that I'm running Ubuntu 10.04 and Python 2.6.5.
--
http://mail.python.org/mailman/listinfo/python-list
On Sunday 15 August 2010, it occurred to Jerrad Genson to exclaim:
Hello,
I'm learning Tkinter, and I have an issue that I'd appreciate help
with. I have a program that initializes a GUI (I'll call this the GUI
process), then spawns another process that listens on a network via
the TCP/IP
Thank you for the reply. When I said TCP/IP protocol, what I meant
was this: http://en.wikipedia.org/wiki/Internet_Protocol_Suite.
The reason the server is in a separate process is because it needs to
continually be listening for network packets, which would disrupt the
GUI. In any case, that
class MessageServer:
'''Creates a message server object that listens for textual
information
and sends it back to the main program. Intended to be spawned
as a
separate process.
'''
def __init__(self, port_number, server_send, server_receive):
'''@param
def check_message(self, spawn=True):
'''Method for pulling message from server process.'''
if spawn: self.pid2 = os.fork()
if self.pid2 == 0:
if verbose: print('message checker initialized')
# repeat message check forever
while True:
Well, I figured it out. Thanks anyway for your help.
--
http://mail.python.org/mailman/listinfo/python-list