944,156 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 3765
  • Python RSS
Jun 16th, 2006
0

gui based chat server

Expand Post »
hi i am building a gui base chat server with multi users
using remote = xmlrpclib.ServerProxy(url)
can any one tell how will i remove a user in the list ..and to make a private chat from the user in the list..thax
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hotteaboi is offline Offline
4 posts
since Jun 2006
Feb 29th, 2008
0

Re: gui based chat server

I (being a novice python programmer) would use a loop for your problem. try something like this:
Python Syntax (Toggle Plain Text)
  1. user1 = 'user'
  2. user1loop = 1
  3. while user1loop = 1:
  4. #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)
  1. print 'who would you like to boot?'
  2. print '1) user1'
  3. print '2) user2'
  4. print '3)user3'
  5. print ' 4) the rest of the users'
  6.  
  7. choice = 0
  8. choice = input('choice: ')
  9. if choice == 1:
  10. user1loop = 0
  11. elif choice == 2:
  12. user2loop = 0
  13. elif choic == 3:
  14. user3loop = 0
  15. elif choice == 4:
  16. therestofthepeopleloop = 0
I hope this helps you. I have not tried this out and I hope it works!
Reputation Points: 26
Solved Threads: 5
Light Poster
EAnder is offline Offline
49 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: setting PATH through python
Next Thread in Python Forum Timeline: Dummy Question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC