Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/f/o/fortunehunter-HEAD/MAFH2/Dungeon.py   fortunehunter(Download)
from Room import Room
from Items import get_item
from constants import (
        MAP_PATH, ENV_PATH, ITEM_PATH, RIGHT, LEFT, NORTH, SOUTH, EAST,
        WEST, UNLOCKED_DOOR, LOCKED_DOOR, PUZZLE_DOOR, LOCKED_PUZZLE_DOOR,
 
            elif newKey=='[6]' or newKey=='right':
                self.game_engine.get_object('profile').turn( RIGHT )
                return True
 

src/g/r/graphite-0.71/axis.py   graphite(Download)
				else:
					labelStyle.vjust = C.CENTER
					labelStyle.hjust = C.RIGHT
 
				if marks.offset: raise NotImplementedError, "TickMarks.offset"
						if startpos[axis] == endpos[axis]:
							labeldist = labeldist * -1
							if labelStyle.hjust == C.RIGHT:
								labelStyle.hjust = C.LEFT
							if labelStyle.vjust == C.TOP:
				else:
					labelStyle.vjust = C.CENTER
					labelStyle.hjust = C.RIGHT
 
				if marks.offset:
						if startpos[axis] == endpos[axis]:
							labeldist = labeldist * -1
							if labelStyle.hjust == C.RIGHT:
								labelStyle.hjust = C.LEFT
							if labelStyle.vjust == C.TOP:

src/s/i/singularity-HEAD/code/graphics/scrollbar.py   singularity(Download)
        elif self.first:
            angle = 0
            self.borders = (constants.LEFT, constants.TOP, constants.RIGHT)
        elif self.horizontal:
            angle = -90
            self.borders = (constants.TOP, constants.RIGHT, constants.BOTTOM)
        else:
            angle = -180
            self.borders = (constants.RIGHT, constants.BOTTOM, constants.LEFT)

src/g/r/graphite-0.71/primitive.py   graphite(Download)
	_properties = {
		'hjust': EnumProperty(C.CENTER, "horizontal justfication: LEFT, CENTER, or RIGHT",
				(C.LEFT, C.CENTER, C.RIGHT)),
		'vjust': EnumProperty(C.CENTER, "vertical justification: TOP, CENTER, or BOTTOM",
				(C.TOP, C.CENTER, C.BOTTOM)),
		if self.style.hjust == C.CENTER:
			wfrac = 0.5
		elif self.style.hjust == C.RIGHT:
			wfrac = 1.0
		elif isinstance(self.style.hjust, C.AlignChar):

src/s/i/singularity-HEAD/code/graphics/slider.py   singularity(Download)
                borders.append(constants.LEFT)
            if real_pos + real_size == self.real_size[0]:
                borders.append(constants.RIGHT)
            self.button.borders = tuple(borders)
        else:
            self.button.pos = (0, -bar_start)
            self.button.size = (-1, -bar_length)
            borders = [constants.LEFT, constants.RIGHT]

src/s/i/singularity-HEAD/code/graphics/widget.py   singularity(Download)
        elif hanchor == constants.CENTER:
            hpos -= my_size[0] // 2
        elif hanchor == constants.RIGHT:
            hpos -= my_size[0]
 
            elif edge == constants.LEFT:
                self.surface.fill(self.border_color, (0, 0, 1, my_size[1]) )
            elif edge == constants.RIGHT:
                self.surface.fill(self.border_color,
                                  (my_size[0]-1, 0) + my_size)

src/f/o/fortunehunter-HEAD/MAFH2/Profile.py   fortunehunter(Download)
from fortuneengine.DrawableFontObject import DrawableFontObject
from fortuneengine.DrawableObject import DrawableObject
from constants import MENU_PATH, NORTH, RIGHT, LEFT
from Hero import Hero
from Dungeon import Dungeon
    def turn(self, dir):
        if dir == RIGHT:
            self.playerFacing = (self.playerFacing - 1) % 4
 
        elif dir == LEFT: