Module ts3client :: Class CountryFlags
[hide private]
[frames] | no frames]

Class CountryFlags

source code

Offers an interface to get the client's country flags. CountryFlags is also a context manager.

Instance Methods [hide private]
 
__init__(self)
Instantiates a new object.
source code
 
open(self)
Opens the Zipfile for reading.
source code
 
close(self)
Closes the Zipfile.
source code
QPixmap
flag(self, code)
Returns a QPixmap containing the flag of the given country code if exist.
source code
 
__enter__(self) source code
 
__exit__(self, type, value, traceback) source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Instantiates a new object. This will raise an exception, if the Zipfile could not be located.

open(self)

source code 

Opens the Zipfile for reading. This must be called before any flag is requested with flag.

flag(self, code)

source code 

Returns a QPixmap containing the flag of the given country code if exist.

Parameters:
  • code (str) - the country code
Returns: QPixmap
the flag