passing a tuple into a class function as a single argument

2010-11-26 Thread greyw...@gmail.com
Hi everyone, The following program doesn't work as expected: #Python 2.7 wxPython 2.9 import wx class MyFrame(wx.Frame): We simply derive a new class of Frame. def __init__(self, parent, title): wx.Frame.__init__(self, parent, title=title, size=(200,100))

Re: self-aware list of objects able to sense constituent member alterations?

2009-02-06 Thread greyw...@gmail.com
On Jan 28, 4:37 am, John O'Hagan m...@johnohagan.com wrote: On Tue, 27 Jan 2009, Reckoner wrote: I'm not sure this is possible, but I would like to have a list of  objects A=[a,b,c,d,...,z] where,  in the midst of a lot of processing I might do something like,

simple turn-based multiplayer game via TCP server/client

2009-01-03 Thread greyw...@gmail.com
Hi everyone, I'm learning python to get a multiplayer roleplaying game up and running. I didn't see any simple examples of multiplayer games on the web so I thought I'd post mine here. I choose Rock, Paper, Scissors as a first game to experiment with as the game logic/options are easy to

Re: socket send help

2008-12-25 Thread greyw...@gmail.com
Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 24 Dec 2008 03:59:42 -0200, greyw...@gmail.com   greyw...@gmail.com escribió: New guy here.  I'm trying to figure out sockets in order to one day do a multiplayer game.  Here's my problem:  even the simplest examples don't work on my computer

Re: socket send help

2008-12-24 Thread greyw...@gmail.com
, 12:03 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 24 Dec 2008 03:59:42 -0200, greyw...@gmail.com   greyw...@gmail.com escribió: New guy here.  I'm trying to figure out sockets in order to one day do a multiplayer game.  Here's my problem:  even the simplest examples don't

socket send help

2008-12-23 Thread greyw...@gmail.com
Hi everyone, New guy here. I'm trying to figure out sockets in order to one day do a multiplayer game. Here's my problem: even the simplest examples don't work on my computer: A simple server: from socket import * myHost = '' myPort = 21500 s = socket(AF_INET, SOCK_STREAM)# create a TCP