Lines Matching defs:mode
123 'getshapes', 'listen', 'mainloop', 'mode', 'numinput',
156 "mode": "standard", # TurtleScreen
805 Must NOT be used if a script is run from within IDLE in -n mode
965 def __init__(self, cv, mode=_CFG["mode"],
992 self._mode = mode
1035 def mode(self, mode=None):
1036 """Set turtle-mode ('standard', 'logo' or 'world') and perform reset.
1039 mode -- one of the strings 'standard', 'logo' or 'world'
1044 this mode angles appear distorted if x/y unit-ratio doesn't equal 1.
1045 If mode is not given, return the current mode.
1053 >>> mode('logo') # resets turtle heading to north
1054 >>> mode()
1057 if mode is None:
1059 mode = mode.lower()
1060 if mode not in ["standard", "logo", "world"]:
1061 raise TurtleGraphicsError("No turtle-graphics-mode %s" % mode)
1062 self._mode = mode
1063 if mode in ["standard", "logo"]:
1078 Set up user coodinat-system and switch to mode 'world' if necessary.
1079 This performs a screen.reset. If mode 'world' is already active,
1083 distorted. (see Screen.mode())
1091 if self.mode() != "world":
1092 self.mode("world")
1523 def __init__(self, mode=DEFAULT_MODE):
1526 self._mode = mode
1530 self._setmode(mode)
1541 def _setmode(self, mode=None):
1542 """Set turtle-mode to 'standard', 'world' or 'logo'.
1544 if mode is None:
1546 if mode not in ["standard", "logo", "world"]:
1548 self._mode = mode
1549 if mode in ["standard", "world"]:
1552 else: # mode == "logo":
1670 Angle orientation depends on mode. (See this.)
1691 Angle orientation depends on mode. (See this.)
1785 heading to its start-orientation (which depends on mode).
1922 standard - mode: logo-mode:
2542 TNavigator.__init__(self, screen.mode())