Package horizons :: Package gui :: Package modules :: Module singleplayermenu :: Class SingleplayerMenu
[hide private]
[frames] | no frames]

Class SingleplayerMenu

source code

windows.Window --+
                 |
                SingleplayerMenu

Instance Methods [hide private]
 
__init__(self, windows) source code
 
hide(self)
Hide the window.
source code
 
show(self)
Show the window.
source code
 
on_return(self)
Define what happens when RETURN is pressed.
source code
 
_select_mode(self, mode) source code
 
act(self)
Start the game.
source code
    Inherited from windows.Window
 
_hide_modal_background(self) source code
 
_show_modal_background(self)
Loads transparent background that de facto prohibits access to other gui elements by eating all input events.
source code
 
close(self)
Closes the window.
source code
 
on_escape(self)
Define what happens when ESC is pressed.
source code
 
open(self, **kwargs)
Open the window.
source code
Method Details [hide private]

__init__(self, windows)
(Constructor)

source code 
Overrides: windows.Window.__init__

hide(self)

source code 

Hide the window.

After this call, the window should not be visible anymore. However, it remains in the stack of open windows and will be visible once it becomes the topmost window again.

You should *never* call this directly in your code, other than in `close()` when you overwrote it in your subclass.

Overrides: windows.Window.hide
(inherited documentation)

show(self)

source code 

Show the window.

After this call, the window should be visible. You should *never* call this directly in your code.

Overrides: windows.Window.show
(inherited documentation)

on_return(self)

source code 

Define what happens when RETURN is pressed.

Overrides: windows.Window.on_return
(inherited documentation)

act(self)

source code 

Start the game. Called when OK button is pressed.