Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages! You are not logged in. Login here for full access privileges. |
Previous Message | Next Message | Back to Mystic BBS <-- <--- | Return to Home Page |
|
||||||
From | To | Subject | Date/Time | |||
James Coyle | Christian Sacks | [ANSI] Re: Mystic Python |
February 20, 2019 2:18 PM * |
|||
CS> How do you take input from a user in Mystic Python? CS> I tried using something likeFrom testpython .mpy that comes with Mystic def do_input_demo():writeln(" Python Demonstra tion Program > Input Demo|$X79 "write('R Type a string: ');input = getstr(11, 40, 120 , "Default"writeln("REnter characters an d press [ESCAPE] when done:R" while not shutdown():char, extended = getkey(); if extended:if char == KEY_UP:w riteln("you pressed up arrow"elif char == KEY_DOWN: writeln("you pressed down arrow"elif char == KEY_LEFT: writeln("you pressed left arrow"elif char == KEY_RIGHT: writeln("you pressed right arrow"else:write ln("You pressed extended key #" + str(ord(char))) else:if char == KEY_ESCAPE:writeln("you pr essed ESCAPE"break;elif char == KEY_ENTE R:writeln("you pressed enter"elif char = = KEY_TAB:writeln("you pressed tab"else: writeln("you pressed character " + char); --- Mystic BBS v1.12 A43 2019/02/17 (Linux/64) * Origin: Sector 7 (1:129/215) |
||||||
|
Previous Message | Next Message | Back to Mystic BBS <-- <--- | Return to Home Page |
Execution Time: 0.0912 seconds If you experience any problems with this website or need help, contact the webmaster. VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved. Virtual Advanced Copyright © 1995-1997 Roland De Graaf. |