%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/reportlab/graphics/widgets/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/reportlab/graphics/widgets/__pycache__/flags.cpython-312.pyc |
� ��dv � �& � d Z dZddlmZ ddl� ddl� ddlmZmZm Z m Z mZmZm Z mZ ddlmZ ddlmZ ddlZdd lmZmZmZ edd ddd ddddddddddddddddddd d!d"d#d$d%� Zd&Z G d'� d(e� Z G d)� d*e� Zd+� Zd,� Zed-k( r e� yy).z3.3.0a� This file is a collection of flag graphics as widgets. All flags are represented at the ratio of 1:2, even where the official ratio for the flag is something else (such as 3:5 for the German national flag). The only exceptions are for where this would look _very_ wrong, such as the Danish flag whose (ratio is 28:37), or the Swiss flag (which is square). Unless otherwise stated, these flags are all the 'national flags' of the countries, rather than their state flags, naval flags, ensigns or any other variants. (National flags are the flag flown by civilians of a country and the ones usually used to represent a country abroad. State flags are the variants used by the government and by diplomatic missions overseas). To check on how close these are to the 'official' representations of flags, check the World Flag Database at http://www.flags.ndirect.co.uk/ The flags this file contains are: EU Members: United Kingdom, Austria, Belgium, Denmark, Finland, France, Germany, Greece, Ireland, Italy, Luxembourg, Holland (The Netherlands), Spain, Sweden Others: USA, Czech Republic, European Union, Switzerland, Turkey, Brazil (Brazilian flag contributed by Publio da Costa Melo [publio@planetarium.com.br]). � )�colors)�*)�Line�Rect�Polygon�Drawing�Group�String�Circle�Wedge)� renderPDF)�_SymbolN)�sin�cos�pi�UK�USA�Afghanistan�Austria�Belgium�China�Cuba�Denmark�Finland�France�Germany�Greece�Ireland�Italy�Japan� Luxembourg�Holland� Palestine�Portugal�Russia�Spain�Sweden�Norway� CzechRepublic�Turkey�Switzerland�EU�Brazil� Y@c �J � e Zd ZdZ ee eed�� �� ZdZ d� Z d� Zd� Zy ) �StarzyThis draws a 5-pointed star. possible attributes: 'x', 'y', 'size', 'fillColor', 'strokeColor' zangle in degrees��desc)�BASE�angler. c � � t j | � d| _ t j | _ d | _ d| _ y )N�d r )r �__init__�sizer �yellow� fillColor�strokeColorr4 ��selfs �B/usr/lib/python3/dist-packages/reportlab/graphics/widgets/flags.pyr7 z Star.__init__W s1 � �������� ����������� � c �L � t dd� }t � }d|_ d|_ |j |� d}|j t |j |j dz z |j d|z z |j j t j d|� � � |S ) N�� r6 �2 r � � @�333333�?�middle�r: � textAnchor�fontSize)r r0 �x�y�addr r8 � __class__�__name__r �black)r= �D�et� labelFontSizes r>