← Back
Editing: table.cpython-311.pyc
� {� g � � � d Z ddlmZ ddlmZ ddlmZ ddlT ddlT ddl m Z G d� de� � Zed k rH e� � � � � Zdd lZe� dg ej � � d �� � d S d S ) z3.3.0� )�Widget)�shapes)�colors)�*)�Drawingc �x � e Zd ZdZ ed4i d eed�� � �d eed�� � �d eed�� � �d eed �� � �d eed�� � �d eed�� � �d eed�� � �d eed�� � �d eed�� � �d eed�� � �d eed�� � �d eed�� � �d edd�� � �d ee d�� � �d ee d!�� � �d" eed#�� � �d$ eed%�� � �d& e ed'd(� � d)�� � �d* e ed+d,d-d.� � d)�� � ��Zd5d0�Z d1� Zd2� Zd3� ZdS )6�TableWidgetz%A two dimensions table of labels �xz x position of left edge of table)�desc�yz"y position of bottom edge of table�widthztable width�heightztable height�borderStrokeColorztable border color� fillColorztable fill color�borderStrokeWidthzborder line width�horizontalDividerStrokeColorz"table inner horizontal lines color�verticalDividerStrokeColorz table inner vertical lines color�horizontalDividerStrokeWidthz"table inner horizontal lines width�verticalDividerStrokeWidthz table inner vertical lines width�dividerDashArrayzDash array for dividerLines.�dataNz6a list of list of strings to be displayed in the cells� boxAnchorz%location of the table anchoring point�fontNameztext font in the table�fontSizezfont size of the table� fontColorz font color� alignment�left�rightzAlignment of text within cells� textAnchor�start�middle�end�numeric� c �B � || _ || _ d| _ d| _ t j | _ d | _ d| _ t j | _ t j | _ d| _ d| _ d | _ g d�g d�g d�g| _ d| _ d | _ t j | _ d | _ d| _ |� � � D ]Z\ }}|t+ | j j � � � � � v rt3 | ||� � �Dt5 d| j z � � �d S ) N�� �d � �?g �?)�North�South�East�West)r'