gui based chat server

Reply

Join Date: Jun 2006
Posts: 4
Reputation: hotteaboi is an unknown quantity at this point 
Solved Threads: 0
hotteaboi hotteaboi is offline Offline
Newbie Poster

gui based chat server

 
0
  #1
Jun 16th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 37
Reputation: EAnder is an unknown quantity at this point 
Solved Threads: 5
EAnder EAnder is offline Offline
Light Poster

Re: gui based chat server

 
0
  #2
Feb 29th, 2008
I (being a novice python programmer) would use a loop for your problem. try something like this:
  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

  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!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC