Package horizons :: Package gui :: Package tabs :: Module barrackstabs :: Class BarracksSwordmanTab
[hide private]
[frames] | no frames]

Class BarracksSwordmanTab

source code

      tabinterface.TabInterface --+            
                                  |            
            overviewtab.OverviewTab --+        
                                      |        
boatbuildertabs.ProducerOverviewTabBase --+    
                                          |    
                          BarracksSelectTab --+
                                              |
                                             BarracksSwordmanTab

Instance Methods [hide private]
    Inherited from BarracksSelectTab
 
build_groundunit_info(self, index, groundunit, prodline) source code
 
init_widget(self)
Initialize widget after it was loaded.
source code
 
start_production(self, prod_line_id) source code
    Inherited from boatbuildertabs.ProducerOverviewTabBase
 
producer(self)
The current instance's Producer compontent.
source code
    Inherited from overviewtab.OverviewTab
 
__init__(self, instance, widget=None, icon_path=None) source code
 
hide(self)
Hides the current widget
source code
 
init_stance_widget(self)
Call this for tabs with stances.
source code
 
on_instance_removed(self) source code
 
refresh(self)
This function is called by the TabWidget to redraw the widget.
source code
 
show(self)
Shows the current widget
source code
    Inherited from tabinterface.TabInterface
 
_get_position(self) source code
 
_schedule_refresh(self)
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
 
_setup_widget(self)
Gets the widget and sets up some attributes and helper.
source code
 
ensure_loaded(self)
Called when a tab is shown, acts as hook for lazy loading
source code
 
get_widget(self)
Loads the filename in self.widget.
source code
 
is_visible(self) source code
Class Methods [hide private]
    Inherited from tabinterface.TabInterface
 
shown_for(cls, instance)
Method for fine-grained control of which tabs to show.
source code
Class Variables [hide private]
  icon_path = 'icons/tabwidget/barracks/swordman'
  helptext = LazyT("Swordman")
  groundunits = [(UNITS.SWORDSMAN, PRODUCTIONLINES.SWORDSMAN),]
    Inherited from BarracksSelectTab
  widget = 'barracks_showcase.xml'
hash(x)
    Inherited from overviewtab.OverviewTab
  has_stance = False
    Inherited from tabinterface.TabInterface
  lazy_loading = True
  position = property(_get_position, _set_position)
  scheduled_update_delay = 0.4