mò
ìËGEc           @   s?   d  k  Z  d  k Z e i d ƒ d  k Z d f  d „  ƒ  YZ d  S(   Ns   2.0t   Methodc           B   sD   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   sK   Class to manipulate an object(GTK) to select Method and eventualy precisionc         C   sT  t  i d ƒ |  _ |  i i d ƒ |  i i d d ƒ t  i t d ƒ } | i d ƒ | i	 ƒ  t  i
 d  d ƒ |  _ |  i i d |  i d ƒ |  i i t ƒ | i |  i t t d ƒ |  i i	 ƒ  t  i
 |  i d	 ƒ |  _ |  i i d |  i d
 ƒ |  i i	 ƒ  | i |  i t t d ƒ t  i
 |  i d ƒ |  _ |  i i d |  i d ƒ | i |  i t t d ƒ |  i i	 ƒ  t  i t d ƒ |  _ t  i d ƒ } | i	 ƒ  |  i i | t t d ƒ t  i d d d d d d ƒ |  _ t  i |  i ƒ } | i d ƒ | i	 ƒ  |  i i | t t d ƒ | i |  i t t d ƒ |  i i | ƒ |  i i	 ƒ  d  S(   NR    i
   iá   i  i   t   Allt   toggledt   allt   Pairt   pairt   Exponentialt   exponentiali   s   Precision :i    f1.2f1.0009999999999999f2.2000000000000002f0.01f0.10000000000000001f0.20000000000000001(   t   gtkt   Framet   selft   Method_framet   set_border_widtht   set_size_requestt   VBoxt   Falset
   Method_boxt   showt   RadioButtont   Nonet
   Button_allt   connectt   private_set_methodt
   set_activet   Truet
   pack_startt   Button_pairt   Button_exponentialt   HBoxt   Precision_boxt   Labelt
   Adjustmentt   Adjt   HScalet   Scalet
   set_digitst   add(   R
   R"   R   R   (    (    t    /home/lathuili/fractal/Method.pyt   __init__
   s>    

!
c         C   s/   | d j o |  i i ƒ  n |  i i ƒ  d  S(   NR   (   t   methodR
   R   R   t   hide(   R
   t   widgetR'   (    (    R%   R   >   s    c         C   sˆ   d GH|  i i ƒ  o | i d ƒ n_ |  i i ƒ  o | i d ƒ n> |  i i ƒ  o' | i d ƒ | i |  i i	 ƒ  ƒ n d ‚ d S(   s®   
        Execute the method set_method et set_precision of objet passed in parameter
        Warning : Deprecated!!!
        Prefere use get_method and get_precision
        sC   Warning Use of the Deprecated Method set_method of the class MethodR   R   R   s   Error : this method doesnt exitN(
   R
   R   t
   get_activet   Objett
   set_methodR   R   t   set_precisionR    t	   get_value(   R
   R+   (    (    R%   R,   E   s     c         C   s…   |  i i ƒ  o d |  _ d  |  _ n\ |  i i ƒ  o d |  _ d  |  _ n6 |  i i ƒ  o d |  _ |  i i	 ƒ  |  _ n d ‚ d  S(   NR   R   R   s   Error : this method doesnt exit(
   R
   R   R*   t   method_R   t
   precision_R   R   R    R.   (   R
   (    (    R%   t   update_method_Y   s    			c         C   s   |  i ƒ  |  i |  i f S(   N(   R
   R1   R/   R0   (   R
   (    (    R%   t
   get_methodf   s    
c         C   s   |  i S(   N(   R
   R   (   R
   (    (    R%   t
   get_objectj   s    (	   t   __name__t
   __module__t   __doc__R&   R   R,   R1   R2   R3   (    (    (    R%   R       s    	4				(   t   ost   pygtkt   requireR   R    (   R   R7   R    R8   (    (    R%   t   ?   s   			
