Mind.Imagination

Classes, methods and functions marked with * aren’t for usual cases, they are made to help to the rest of the library.

Part of library for Main Menu.

Mind.Imagination.ARROWS = [(273, 'up'), (274, 'down'), (276, 'left'), (275, 'right')]

List of keys (arrows) for Menu changing index.

Mind.Imagination.HIT = [(13, 'hit'), (32, 'hit')]

List of keys for Menu selecting option.

Mind.Imagination.useless(*useless_args)[source]

Function that doesn’t do anything.

Mind.Imagination.ch_image(new_image)[source]

Returns function which changes pusher image.

Mind.Imagination.ch_text(new_text, error=True)[source]

Returns function which changes pusher text (only for text_pushers).

Mind.Imagination.ch_color(new_color, error=True)[source]

Returns function which changes pusher color (only for text_pushers).

Mind.Imagination.ch_font(new_font, error=True)[source]

Returns function which changes pusher font (only for text_pushers).

Returns function which leads game to onother place.

Mind.Imagination.Quit(obj, self)[source]

Quits game.

Mind.Imagination.joied(List)[source]

Returns function which executes all function in a given list.

Mind.Imagination.equal(image1, image2)[source]

Test if two images are equal.*

class Mind.Imagination.PLACE(active=False)[source]

Bacis class for states of main menu.

activate()[source]

Activates place.

deactivate()[source]

Deactivates place.

class Mind.Imagination.Game(main_place)[source]

Bacis game class main menu.

add_menu(menu)[source]

Adds menu to game.

blit()[source]

Blits game current menu.

change(new)[source]

Change game current menu.

run()[source]

Returns is game still running.

kill()[source]

Ends game running.

class Mind.Imagination.Hyper_game[source]

Game for easy places controlling.

add_menu(menu)[source]

Adds menu to game.

blit()[source]

Blits game current menu.

set_menu(menu)[source]

Sets game current menu.

class Mind.Imagination.Keyboard(definer)[source]

Bacis keyboard class.

extend(extension)[source]

Extends keyboard definer.

update()[source]

Updates keyboard.*

class Mind.Imagination.Main_menu(places, distance, *options, off=(0, 0), off_type='pixel', keyboard=<Mind.Imagination.Keyboard object at 0x01945370>)[source]

Basic menu class.

add_option(option, seted_option=False)[source]

Adds new option to menu.

set_options()[source]

Should be executed on the end of options adding.

set_game(game)[source]

Sets menu to given game.

blit()[source]

Blits menu.

get_keyboard()[source]

Returns game menu keyboard.

reset(*rest)[source]

Turns on all options in Main Menu

class Mind.Imagination.option(image, menu, do1=<function useless at 0x025A1BB8>, do2=<function useless at 0x025A1BB8>, time=0, pos_do=<function useless at 0x025A1BB8>, anti_pos_do=<function useless at 0x025A1BB8>, infinity=0, proces=2)[source]

Bacis menu option class.

set_position(x, y)[source]

Sets option’s position.*

blit()[source]

Blits option.*

hit()[source]

Executed when menu index is on option and when space is pressed.*

bold()[source]

Executed when menu index comes on option.*

un_bold()[source]

Executed when menu index comes out of option.*

class Mind.Imagination.pusher(x1, y1, image, obj, do1=None, do2=None, time=0, pos_do=None, anti_pos_do=None, infinity=0, proces=2)[source]

Bacis independed option class (mostly used in option class).*

blit()[source]

Blits pusher.*

hit()[source]

Executed when menu index is on option and when space is pressed.*

bold()[source]

Executed when menu index comes on option.*

un_bold()[source]

Executed when menu index comes out of option.*

class Mind.Imagination.text_option(font, text, color, menu, do1=<function useless at 0x025A1BB8>, do2=<function useless at 0x025A1BB8>, time=0, pos_do=<function useless at 0x025A1BB8>, anti_pos_do=<function useless at 0x025A1BB8>, infinity=0, proces=2)[source]

Textual menu option class(subclass of option).

set_position(x, y)[source]

Sets option’s position.*

blit()[source]

Blits option.*

class Mind.Imagination.text_pusher(x1, y1, font, text, color, obj, do1, do2, time, pos_do, anti_pos_do, infinity, proces)[source]

Textual independed option class (mostly used in text_option class, subclass of pusher).*

update()[source]

Updates pusher.*

Previous topic

Mind.Orientation

Next topic

Mind 0.2 Tutorial

This Page