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

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

src/s/k/SkyTime-HEAD/SkyTime.py   SkyTime(Download)
    K_LSHIFT, K_RSHIFT, K_BACKSPACE, QUIT, KEYDOWN, K_LEFT, K_RIGHT
 
from constants import width, height, clock_render_left, clock_render_top, \
    box_render_left, time_render_left, jargon_render_left, jargon_render_top, \
    your_time_render_top, HANDS, goal_time_render_top, CLOCK_REWARDS, \
 
                    # Check if the user has earned this reward
                    elif REWARDS_DICT[cur_state][reward]['earned']:
                        border = pygame.image.load(
                            'images/rewards/earned.png')
                    # Display the number of suns the reward costs
                    cost = self.value.render(
                        REWARDS_DICT[cur_state][reward]['value'],
                        False, self.text_color)
                    fw, fh = cost.get_size()
 
                                        if reward_type == 'clock':
                                            REWARDS_DICT['number_clocks'] += 1
                                            REWARDS_DICT[reward_type][
                                                reward]['earned'] = True