changeset 70:7d2d94dd8a6a

Adding default host to menu.
author Rene Dudfield <renesd@gmail.com>
date Sun, 08 Jul 2012 11:36:55 +0200
parents d7d2c570f4c8
children acefa2e2ad36
files zrpn/main.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/zrpn/main.py	Sun Jul 08 10:15:26 2012 +0100
+++ b/zrpn/main.py	Sun Jul 08 11:36:55 2012 +0200
@@ -47,9 +47,11 @@
         ip = menu["ip"].text
         client.Client(ip, 10000).run()
 
+default_host = "zrpn.pygame.org"
+default_host = "localhost"
 menu = MainMenu(menu=("m:Zombies Robots Pirates Ninjas", ("f:single", "Single Player"),
-                      ("w:input_box", "name=ip", "text=localhost",
-                       "label=Enter IP for multiplayer server"),
+                      ("w:input_box", "name=ip", "text={}".format(default_host),
+                       "label=Enter IP for multiplayer server(eg. localhost)"),
                       ("f:multi", "Multiplayer"), ("f:exit", "Quit")))
 
 def main():