łň
Ś&×Gc           @   s$  d  d k  Z  d  d k Z d  d k Z d  d k Z d  d k Z d  d k Z d  d k i Z d  d k	 l
 Z
 l Z l Z e i e d e i d    Z e i Z d d g a d g a d   Z d e i f d	     YZ d
 e i f d     YZ d e i f d     YZ d e i f d     YZ d S(   i˙˙˙˙N(   t   generate_ip_listt   drbl_dcst   remote_functionss   ../langs/%s.mot   LANGs   -nlt    c         C   sŹ   t  i t  i  } |  i |  t  i |  d |  } | i t  i d t  i t  i t  i	   | i
 | d t  i t  i Bd  | i
 t  i |  d  d t  i t  i Bd  | S(   Ni˙˙˙˙i   i    i   (   t   wxt   BoxSizert   VERTICALt   SetSizert
   StaticTextt   SetFontt   Fontt   SWISSt   NORMALt   BOLDt   Addt   ALIGN_CENTREt   ALLt
   StaticLinet   EXPAND(   t   wizPgt   titlet   sizer(    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyt   makePageTitle   s    ( ,t   remoteLinuxPagec           B   s>   e  Z d    Z d   Z d   Z d   Z d   Z d   Z RS(   c         C   s  t  i i |  |  d  |  _ |  _ t |  |  |  _ g  } xB t d t	 t
   D]+ } | i t
 | d d t
 | d  qQ Wt i |  d d t i t i | d t i t i B |  _ |  i i |  i d t i t i Bd  |  i t i |  i |  i  |  i i d  t
 d d t d <d  S(   Ni    s      i   i˙˙˙˙R   i2   i   (   t   wizt   PyWizardPaget   __init__t   Nonet   nextt   prevR   R   t   ranget   lenR   t   appendR   t   RadioBoxt   DefaultPositiont   DefaultSizet   RA_SPECIFY_COLSt	   NO_BORDERt   rbR   t   ALIGN_CENTERR   t   Bindt   EVT_RADIOBOXt   EvtRadioBoxt   SetSelectiont   selected_func(   t   selft   parentR   t   listt   i(    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR      s     )7&c         C   s   t  | i   d t d <d  S(   Ni   i    (   R   t   GetSelectionR-   (   R.   t   event(    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR+   '   s    c         C   s   | |  _  d  S(   N(   R   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyt   SetNext*   s    c         C   s   | |  _  d  S(   N(   R   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyt   SetPrev-   s    c         C   s   |  i  S(   N(   R   (   R.   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyt   GetNext0   s    c         C   s   |  i  S(   N(   R   (   R.   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyt   GetPrev3   s    (   t   __name__t
   __module__R   R+   R4   R5   R6   R7   (    (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR      s   					t   setAllClientsPagec           B   s>   e  Z d    Z d   Z d   Z d   Z d   Z d   Z RS(   c      
   C   sý   t  i i |  |  d  |  _ |  _ t |  |  |  _ d |  _ t	 i
 |  d t d  d d d d d
 t	 i t	 i
 |  d t d  d d d d d
 t	 i d d g } t	 i |  d t d  d d | d t	 i t	 i B |  _ |  i t	 i |  i |  i  d  S(   Ni    i˙˙˙˙t*   msg_select_all_clients_or_select_part_themt   posi
   i<   t   sizeiô  id   t   stylet   msg_set_all_clients_desiP   t   Yest   Not   msg_set_all_clientsi   iú   iK   i   (   i
   i<   (   iô  id   (   i
   iP   (   iô  id   (   i
   i   (   iú   iK   (   R   R   R   R   R   R   R   R   t	   fuse_nextR   R	   t   _t   TE_MULTILINER"   R%   R&   R'   R)   R*   R+   (   R.   R/   R   t   ox(    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR   8   s    	..7c         C   sF   | i    d j o d t d <n | i    d j o d t d <n d  S(   Ni    s   -nli   s   -h(   R2   t   selected_clients(   R.   R3   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR+   D   s    c         C   s   | |  _  d  S(   N(   R   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR4   J   s    c         C   s   | |  _  d  S(   N(   R   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR5   M   s    c         C   sy   |  i  } |  i d |  _ |  i d j oL |  i i   d j o2 t i d t t d t d f  | i	   } qu n | S(   Ni   i   i    s   %s %s %s(
   R   RC   R'   R2   t   Commandt   SetLabelR   RG   R-   R6   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR6   P   s    	"c         C   s   d |  _  |  i } | S(   Ni    (   RC   R   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR7   Z   s    		(   R8   R9   R   R+   R4   R5   R6   R7   (    (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR:   7   s   					
t   selectClientsPagec           B   s>   e  Z d    Z d   Z d   Z d   Z d   Z d   Z RS(   c         C   sĐ   t  i i |  |  d  |  _ |  _ t |  |  |  _ g  |  _ d |  _	 d |  _
 |  _ t i t  i   i d  } | i d  t i |  d d	 d
 |  |  _ |  i t i |  i |  i  |  i i d  d  S(   NR   i    s   
i˙˙˙˙i
   i2   iÖ  iú   (   i
   i2   (   iÖ  iú   (   R   R   R   R   R   R   R   R   t   SelectedClientsArrayt   SelectedClientsStrRC   t	   fuse_prevt   ost   popenR    t   readt   splitt   removeR   t   CheckListBoxt   lbR)   t   EVT_CHECKLISTBOXt   EvtCheckListBoxR,   (   R.   R/   R   t   AllClientsArray(    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR   a   s    		c         C   s   | i    } |  i i |  } |  i i |  o |  i i |  n |  i i |  p |  i i |  n |  i i |  d  S(   N(   R2   RT   t	   GetStringt	   IsCheckedRK   R!   RR   R,   (   R.   R3   t   indext   label(    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyRV   p   s    c         C   s   | |  _  d  S(   N(   R   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR4   y   s    c         C   s   | |  _  d  S(   N(   R   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR5   |   s    c      	   C   s  |  i  } d |  _ |  i d |  _ |  i d j oß t d d j oĘ t |  i  d j o> t i |  d d t i t i	 B } | i
   | i   |  Sqx% |  i D] } | d |  i |  _ qĄ Wd |  i d |  _ |  i t d <t i d	 t t d t d t d f  qn | S(
   Ni    i   i   s   -hs   YOU MUST CHOOSE ONE!!s
   WARNNING!!t    s   "s   The commands are : %s %s %s %s(   R   RM   RC   RG   R    RK   R   t   MessageDialogt   OKt   ICON_INFORMATIONt	   ShowModalt   DestroyRL   t
   CommandLogt	   WriteTextR   R-   (   R.   R   t   wart   x(    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR6      s"    		"


 1c         C   s   |  i  } d |  _ | S(   Ni    (   R   RC   (   R.   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR7      s    		(   R8   R9   R   RV   R4   R5   R6   R7   (    (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyRJ   `   s   						t   remoteLinuxFinalPagec           B   s   e  Z d    Z RS(   c         C   s   t  i i |  |  d  |  _ |  _ t |  |  |  _ t i	 |  d d d d d d d	 t i
 a t i |  d d d d d d d	 t i
 t i Ba d  S(   Ni˙˙˙˙R   R<   i
   i<   R=   i   id   R>   iŕ  iČ   (   i
   i<   (   i   id   (   i
   id   (   iŕ  iČ   (   R   R   R   R   R   R   R   R   R   R	   RE   RH   t   TextCtrlt   TE_READONLYRb   (   R.   R/   R   (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyR      s
    *(   R8   R9   R   (    (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pyRf      s   (   R   t   sysRN   t   gettextt   stringt   timet	   wx.wizardt   wizardR   t   configR    R   R   t   GNUTranslationst   opent   getenvt   catRD   RG   R-   R   R   R   R:   RJ   Rf   (    (    (    s.   /home/chris/drbl_ui/menus/remoteLinuxWizard.pys   <module>   s   H"			
 )9