Package horizons :: Package editor :: Module gui :: Class SettingsTab
[hide private]
[frames] | no frames]

Class SettingsTab

source code

gui.tabs.tabinterface.TabInterface --+

Instance Methods [hide private]
__init__(self, world_editor, ingame_gui) source code
_set_cursor_tile(self, tile) source code
_cursor_inside(self) source code
_cursor_outside(self) source code
_get_tile_image(self, tile) source code
_change_brush_size(self, size)
Change the brush size and update the gui.
source code
    Inherited from gui.tabs.tabinterface.TabInterface
_get_position(self) source code
Schedule a refresh soon, dropping all other refresh request, that appear until then.
source code
_set_position(self, value)
Sets the widgets position to tuple *value*
source code
Gets the widget and sets up some attributes and helper.
source code
Called when a tab is shown, acts as hook for lazy loading
source code
Loads the filename in self.widget.
source code
Hides the current widget
source code
Initialize widget after it was loaded.
source code
is_visible(self) source code
This function is called by the TabWidget to redraw the widget.
source code
Shows the current widget
source code
Class Methods [hide private]
    Inherited from gui.tabs.tabinterface.TabInterface
shown_for(cls, instance)
Method for fine-grained control of which tabs to show.
source code
Class Variables [hide private]
  widget = 'editor_settings.xml'
  lazy_loading = False
    Inherited from gui.tabs.tabinterface.TabInterface
  icon_path = 'images/tabwidget/tab'
  position = property(_get_position, _set_position)
  scheduled_update_delay = 0.4
Method Details [hide private]

__init__(self, world_editor, ingame_gui)

source code 
  • widget - filename of a widget. Set this to None if you create your widget in `get_widget`.
  • widget - Filename of widget to load.
  • icon_path - Where to look for ImageButton icons. Note: this is a `path` attribute!
Overrides: gui.tabs.tabinterface.TabInterface.__init__
(inherited documentation)