| | |
gui based chat server
![]() |
•
•
Join Date: Feb 2008
Posts: 37
Reputation:
Solved Threads: 5
I (being a novice python programmer) would use a loop for your problem. try something like this:
... later you would put in an option to perform an action to that user
I hope this helps you. I have not tried this out and I hope it works!
Python Syntax (Toggle Plain Text)
user1 = 'user' user1loop = 1 while user1loop = 1: #some more code here to allow them to use the chat server
... later you would put in an option to perform an action to that user
Python Syntax (Toggle Plain Text)
print 'who would you like to boot?' print '1) user1' print '2) user2' print '3)user3' print ' 4) the rest of the users' choice = 0 choice = input('choice: ') if choice == 1: user1loop = 0 elif choice == 2: user2loop = 0 elif choic == 3: user3loop = 0 elif choice == 4: therestofthepeopleloop = 0
![]() |
Similar Threads
- chat server gui (Java)
- Python Chat Server (Python)
- help for Server Client Porgram (chat Server) (Visual Basic 4 / 5 / 6)
- building instant messenger (Java)
- P2P based chat (C#)
Other Threads in the Python Forum
- Previous Thread: Django and displaying func results
- Next Thread: Dummy Question
| Thread Tools | Search this Thread |
abrupt accessdenied anti apache application approximation argv array beginner book builtin calculator change converter countpasswordentry curved dan08 dictionaries dictionary dynamic edit enter examples file float format function gui heads homework import inches input java keyboard lapse launcher library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric output parameters parsing path phonebook plugin port prime programming projects py2exe pygame pyopengl python random recursion redirect remote reverse scrolledtext session simple software sprite statictext statistics string strings syntax table terminal text textarea threading time tlapse trick tuple tutorial twoup ubuntu unicode unit urllib urllib2 variable wordgame wxpython





