Bridges-Python 3.5.0
Bridges(Python API)
Public Member Functions | List of all members
bridges.data_src_dependent.country.Country Class Reference

This object stores a Country and links to information. More...

Public Member Functions

def __init__ (self, str country)
 Constructor for a specific state. More...
 
def __init__ (self, str name, str alpha2, str alpha3, int numeric3)
 Constructor for a specific state. More...
 
def name (self)
 
def name (self, n)
 
def alpha2_id (self)
 
def alpha2_id (self, id)
 
def alpha3_id (self)
 
def alpha3_id (self, id)
 
def numeric3_id (self)
 
def numeric3_id (self, id)
 
def stroke_color (self)
 
def stroke_color (self, value)
 
def stroke_width (self)
 
def stroke_width (self, value)
 
def fill_color (self)
 
def fill_color (self, value)
 

Detailed Description

This object stores a Country and links to information.

This object is used alongside with the WorldMap object. Each country has a stroke color and fill color.

See tutorial at https://bridgesuncc.github.io/tutorials/WorldMap.html

Author
Kalpathi Subramanian
Date
Last modified June 7, 2025

Constructor & Destructor Documentation

◆ __init__() [1/2]

def bridges.data_src_dependent.country.Country.__init__ (   self,
str  country 
)

Constructor for a specific state.

   @param state sets default values for the state

◆ __init__() [2/2]

def bridges.data_src_dependent.country.Country.__init__ (   self,
str  name,
str  alpha2,
str  alpha3,
int  numeric3 
)

Constructor for a specific state.

   @param sets provided values for the country

Member Function Documentation

◆ alpha2_id() [1/2]

def bridges.data_src_dependent.country.Country.alpha2_id (   self)

◆ alpha2_id() [2/2]

def bridges.data_src_dependent.country.Country.alpha2_id (   self,
  id 
)

◆ alpha3_id() [1/2]

def bridges.data_src_dependent.country.Country.alpha3_id (   self)

◆ alpha3_id() [2/2]

def bridges.data_src_dependent.country.Country.alpha3_id (   self,
  id 
)

◆ fill_color() [1/2]

def bridges.data_src_dependent.country.Country.fill_color (   self)

◆ fill_color() [2/2]

def bridges.data_src_dependent.country.Country.fill_color (   self,
  value 
)

◆ name() [1/2]

def bridges.data_src_dependent.country.Country.name (   self)

◆ name() [2/2]

def bridges.data_src_dependent.country.Country.name (   self,
  n 
)

◆ numeric3_id() [1/2]

def bridges.data_src_dependent.country.Country.numeric3_id (   self)

◆ numeric3_id() [2/2]

def bridges.data_src_dependent.country.Country.numeric3_id (   self,
  id 
)

◆ stroke_color() [1/2]

def bridges.data_src_dependent.country.Country.stroke_color (   self)

◆ stroke_color() [2/2]

def bridges.data_src_dependent.country.Country.stroke_color (   self,
  value 
)

◆ stroke_width() [1/2]

def bridges.data_src_dependent.country.Country.stroke_width (   self)

◆ stroke_width() [2/2]

def bridges.data_src_dependent.country.Country.stroke_width (   self,
  value 
)

The documentation for this class was generated from the following file: