
    Hf                         d dl mZ d Zd dl d dlZd dlZ ej                  ej                  ej                         g dZ	 ed      Z
 G d d	      Z G d
 de      Zy)    )Gtkc                     | S N )xs    5/usr/share/system-config-printer/troubleshoot/base.py<lambda>r	      s    q     )*N)domain	localedir)
debugprintget_debuggingset_debuggingQuestionMultichoiceTEXT_start_print_admin_toolzUTo start this tool, select System->Administration->Print Settings from the main menu.c                   @    e Zd Zd
dZd Zd Zd Zd Zd Zd Z	dd	Z
y)r   Nc                 .    || _         rfd| _        y y )Nc                       S r   r   )names   r   r	   z#Question.__init__.<locals>.<lambda>,   s    4 r
   )troubleshooter__str__)selfr   r   s     `r   __init__zQuestion.__init__)   s    ,'DL r
   c                      y)zXReturns True if this page should be displayed, or False
        if it should be skipped.Tr   r   s    r   displayzQuestion.display.   s     r
   c                      y r   r   )r   handlers     r   connect_signalszQuestion.connect_signals3       r
   c                      y r   r   r   s    r   disconnect_signalszQuestion.disconnect_signals6   r"   r
   c                      y)NTr   r   s    r   can_click_forwardzQuestion.can_click_forward9   s    r
   c                     i S r   r   r   s    r   collect_answerzQuestion.collect_answer<   s    	r
   c                      y r   r   r   s    r   cancel_operationzQuestion.cancel_operation?   r"   r
   c                 R   t        j                         }|j                  d       |j                  d       |r	d|z   dz   }nd}||z  }t        j                  |      }|j                  dd       |j                  d       |j                  d       |j                  |ddd       |S )	N   z"<span weight="bold" size="larger">z	</span>

 )labelr   TF)	r   VBoxset_border_widthset_spacingLabelset_alignmentset_line_wrapset_use_markup
pack_start)r   titletextvboxsr.   s         r   initial_vboxzQuestion.initial_vboxC   s    xx{r""4u<}LAA	T			"Q"T"d#ua0r
   r   )r-   r-   )__name__
__module____qualname__r   r   r!   r$   r&   r(   r*   r;   r   r
   r   r   r   (   s*    (

r
   r   c                       e Zd Z	 ddZd Zy)r   Nc                    t         j                  | ||       | j                  ||      }t        j                         }|j                  d       |j                  |ddd       || _        g | _        d }	|D ]y  \  }
}|	r!t        j                  j                  |	|
      }	n t        j                  j                  g |
      }	|j                  |	ddd       | j                  j                  |	|f       { |j                  ||        y )N   Fr   )r   r   r;   r   r/   r1   r6   question_tagwidgetsRadioButtonnew_with_label_from_widgetnew_with_labelappendnew_page)r   r   rB   question_titlequestion_textchoicesr   pagechoice_vboxbuttonchoicetags               r   r   zMultichoice.__init__T   s    46  .-@hhk#eUA6(" 	0KFCCCFFS 77FC""FE5!<LL&#/	0 	t,r
   c                 l    | j                   D ]%  \  }}|j                         s| j                  |ic S  y r   )rC   
get_activerB   )r   rN   
answer_tags      r   r(   zMultichoice.collect_answeri   s7    "&,, 	9FJ  #**J88	9r
   r   )r<   r=   r>   r   r(   r   r
   r   r   r   S   s    /3-*9r
   r   )gi.repositoryr   N_debugconfiggettextinstallPACKAGEr   __all__r   r   r   r   r
   r   <module>r\      sb   .     v~~1A1A B,
 ! "7 8 ) )V9( 9r
   