Dobry den, potreboval bych poradit se scriptem. Potreboval bych, aby se ve slozce, kde se nachazi nyni dotycny program, se vytvoril soubot serverinfo.py s textem : import serverInfo serverNum=1 serverChannel=1 addr_new = serverInfo.REGION_DICT[0][serverNum]["channel"][serverChannel]["ip"] port_new = serverInfo.REGION_DICT[0][serverNum]["channel"][serverChannel]["tcp_port"] account_addr_new = serverInfo.REGION_AUTH_SERVER_DICT[0][serverNum]["ip"] account_port_new = serverInfo.REGION_AUTH_SERVER_DICT[0][serverNum]["port"] name=serverInfo.REGION_DICT[0][serverNum]["name"] channel=serverInfo.REGION_DICT[0][serverNum]["channel"][serverChannel]["name"] addr=addr_new port=port_new id = "User" pwd = "Password" account_addr = account_addr_new account_port = account_port_new slot = 0 autoLogin = 1 autoSelect = 0 locale = "Czech" . Uzivate, ktery by spustil tento program, by zadal sve ID do textbox1 a heslo do textbox2 a potreboval bych , aby se tyto informace zapsali prave do toho scriptu v serverinfo.py na 12 a 13 radku.
|